Hi, I just logged in for the first time on an Ubuntu 22.04 image found here and provided by the user @frank-w.
I want to update the system and install some linux utilities. I would like to plug an ethernet cable into the bpi-r3 and connect the board to my home router and use my internet connection to update the system.
I first tried plugging the ethernet cable into the LAN0 socket and checked the network configuration and the routing table.
root@bpi-r3:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1504
ether 9a:13:4a:5a:ea:d1 txqueuelen 1000 (Ethernet)
RX packets 5576 bytes 477486 (477.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6109 bytes 668677 (668.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 121
he-ipv6: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1480
sit txqueuelen 1000 (IPv6-in-IPv4)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 9a:13:4a:5a:ea:d1 txqueuelen 1000 (Ethernet)
RX packets 306 bytes 36831 (36.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1171 bytes 51374 (51.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 9a:13:4a:5a:ea:d1 txqueuelen 1000 (Ethernet)
RX packets 2194 bytes 176917 (176.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2163 bytes 143399 (143.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lan2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 9a:13:4a:5a:ea:d1 txqueuelen 1000 (Ethernet)
RX packets 3071 bytes 162556 (162.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2690 bytes 366042 (366.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lan3: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 9a:13:4a:5a:ea:d1 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lanbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.19 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::f437:88ff:fe50:d8bd prefixlen 64 scopeid 0x20<link>
ether f6:37:88:50:d8:bd txqueuelen 1000 (Ethernet)
RX packets 5471 bytes 356050 (356.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3525 bytes 451121 (451.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 3065 bytes 247267 (247.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3065 bytes 247267 (247.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vlan500: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.50.19 netmask 255.255.255.0 broadcast 192.168.50.255
inet6 fe80::f437:88ff:fe50:d8bd prefixlen 64 scopeid 0x20<link>
ether f6:37:88:50:d8:bd txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16 bytes 1376 (1.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vlan600: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.60.19 netmask 255.255.255.0 broadcast 192.168.60.255
inet6 fe80::f437:88ff:fe50:d8bd prefixlen 64 scopeid 0x20<link>
ether f6:37:88:50:d8:bd txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16 bytes 1376 (1.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wan: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.19 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::9813:4aff:fe5a:ead1 prefixlen 64 scopeid 0x20<link>
ether 9a:13:4a:5a:ea:d1 txqueuelen 1000 (Ethernet)
RX packets 5 bytes 814 (814.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 53 bytes 3974 (3.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wan.110: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.110.1 netmask 255.255.255.0 broadcast 192.168.110.255
inet6 fe80::11:2ff:fe03:110 prefixlen 64 scopeid 0x20<link>
ether 02:11:02:03:01:10 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11 bytes 1026 (1.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wan.140: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.140.1 netmask 255.255.255.0 broadcast 192.168.140.255
inet6 fe80::11:2ff:fe03:140 prefixlen 64 scopeid 0x20<link>
ether 02:11:02:03:01:40 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11 bytes 1026 (1.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
And the routing table:
root@bpi-r3:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.10 0.0.0.0 UG 0 0 0 lanbr0
0.0.0.0 192.168.0.10 0.0.0.0 UG 0 0 0 wan
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 lanbr0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wan
192.168.50.0 0.0.0.0 255.255.255.0 U 0 0 0 vlan500
192.168.60.0 0.0.0.0 255.255.255.0 U 0 0 0 vlan600
192.168.110.0 0.0.0.0 255.255.255.0 U 0 0 0 wan.110
192.168.140.0 0.0.0.0 255.255.255.0 U 0 0 0 wan.140
Do you have any advice on how to configure the network in order to connect to the internet and update the system? Thank you