BPI-R4 Lite Ubuntu WAN

Hi @frank-w

The r4lite uses eth1 as WAN interface, so we need to add new network setting specifically for it. Otherwise, the WAN port does not work as usual.

image

Newly added /etc/systemd/network/06-eth1.network:

[Match]
Name=eth1

[Network]
DHCP=yes
LinkLocalAddressing=no
ConfigureWithoutCarrier=true
root@bpi-r4:/# ip a show eth1
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether ca:65:1b:8e:c3:86 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.219/24 metric 1024 brd 192.168.0.255 scope global dynamic eth1
       valid_lft 43168sec preferred_lft 43168sec
root@bpi-r4:/#
root@bpi-r4:/# ping google.com -c 4
PING google.com (142.250.198.78) 56(84) bytes of data.
64 bytes from lctsaa-ab-in-f14.1e100.net (142.250.198.78): icmp_seq=1 ttl=116 time=9.15 ms
64 bytes from lctsaa-ab-in-f14.1e100.net (142.250.198.78): icmp_seq=2 ttl=116 time=2.53 ms
64 bytes from lctsaa-ab-in-f14.1e100.net (142.250.198.78): icmp_seq=3 ttl=116 time=2.31 ms
64 bytes from lctsaa-ab-in-f14.1e100.net (142.250.198.78): icmp_seq=4 ttl=116 time=2.54 ms

--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 2.308/4.132/9.151/2.898 ms
root@bpi-r4:/#

I am not sure if you need to add /conf/bpi-r4lite files to your Images repo.

Basicly i setup dhcp (client) on wan and fixed ip (+dhcp server) on lan. But i have to add config for variants too (only have R4 yet)

Yes, we need the eth1 config such as the 06-eth1.network above for bpi-r4lite.

The current setup (r4lite board runs r4 config) does not work for WAN init.

It may need to be separated from r4.