Ubuntu has 2 network services enabled by default to obtain an ip address via DHCP
vukitoso opened this issue · 0 comments
vukitoso commented
Hello.
Rock 3a
OS: rock-3a-ubuntu-focal-server-arm64-20220315-1226-gpt.img
I noticed that two services are enabled by default to get the ip address: "dhcpcd" and "NetworkManager".
As a result, Linux asks the router for 2 ip addresses.
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether e2:52:dc:*:*:* brd ff:ff:ff:ff:ff:ff
inet 192.168.1.6/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
valid_lft 86002sec preferred_lft 86002sec
inet 192.168.1.128/24 brd 192.168.1.255 scope global secondary noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 fe80::fe6f:cccf:*:*/64 scope link noprefixroute
valid_lft forever preferred_lft forever
Solution: stop and disable one of the services from autostart. I decided to disable dhcpcd
systemctl stop dhcpcd
systemctl disable dhcpcd