Hello
I wondered why sudo netplan apply did not updte the LAN IP as expected.
I have 01-netcfg.yaml and 01-network-manager-all.yaml under /etc/netplan in Ubuntu.
The content of /etc/netplan/01-netcfg.yaml is:
Code:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: no
addresses:
- 192.168.1.80/24
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
and
The content of /etc/netplan/01-network-manager-all.yaml is:
Code:
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
Then I realized that when I do "sudo netplan apply", the LAN IP address only gets updated in case I remove the file /etc/netplan/01-network-manager-all.yaml in advance.
I do not want to remove /etc/netplan/01-network-manager-all.yaml because it was in that location after Ubuntu installation and I do not want to break anything.
What should I do so that "sudo netplan apply" worked to change the LAN IP even if the file /etc/netplan/01-network-manager-all.yaml exists?
Thanks in advance
Bookmarks