| |
Exercises: NetworkManager on Ubuntu 18.04
On netplan VM, install NetworkManager, and bring it up:
On netplan VM, edit file /etc/netplan/01-netcfg.yaml
to define NetworkManager as the renderer. The content should show up as follows:
Have the settings applied:
Reboot the VM.
Network settings with nmtui
Run command nmtui to start a configuration menu:
In thye menu, and apply network settings to 'Wired connection 1' as follows:
IPv4 CONFIGURATION: Automatic,
Address: 192.168.122.23/24, Gateway: 192.168.122.1,
DNS servers: 192.168.122.1. Activate the connection.
Check the IP address:
It should show 192.168.122.23 for ens3 interface now.
Reboot the VM and verify that the IP address stays the same.
Network settings with nmcli
See the enabled connections:
Disable 'Wired connection 1':
Create another connection with IP address 192.168.122.44:
Check the active IP address:
Reboot the VM and verify that the IP address shows up the same.
Enable 'Wired connection 1':
|
|