Networkmanager
Jump to navigation
Jump to search
Setting up network manager to be DHCP profile with a failback to a static profile.
- /etc/NetworkManager/system-connections/
Create two profiles
DHCP profile
'Wired connection 1.nmconnection'
[connection] id=Wired connection 1 uuid=fae7a174-6066-3083-ac48-64732c448a3d type=ethernet autoconnect-priority=1 autoconnect-retries=2 interface-name=end1 timestamp=1706580352 [ethernet] [ipv4] dns-search= method=auto dhcp-timeout=10 may-fail=false [ipv6] addr-gen-mode=default method=disabled [proxy]
Static Profile
'Wired connection 2.nmconnection'
[connection] id=static uuid=fae7a174-6066-3083-ac48-64732c448a3d type=ethernet interface-name=end1 autoconnect-priority=0 autoconnect-retries=-1 [ethernet] [ipv4] address1=192.168.1.2/24,192.168.1.1 dns=192.168.1.1 dns-search= method=manual [ipv6] addr-gen-mode=default method=disabled [proxy]