Network Managers
====================================================================================
Ubuntu - Netplan
Netplan uses .yaml files for network configuration, these are stored in /etc/netplan
Check DHCP IP leases info
netplan ip leases interfacename
Changes to interfaces are made in the .yaml files, once changes have been made they need to be applied.
To test changes, use the try command. This essentially implements the change for a set amount of time, after which the change is reverted.
netplan try
You can also set a custom timeout time using the below command:
netplan try --timeout=15
To permanently apply a change, use the below command:
netplan apply
====================================================================================
RHEL - nmcli
network configuration files are stored in /etc/syconfig/network-scripts
View interface connections
nmcli connection show
Delete a connection
nmcli connection delete connectionname
Add an additional IP to a connection
nmcli connection modify connectionname ipv4.addresses oldIP, newIP
Once changes have been made via nmcli, the interface will need restarting
nmcli connection down
nmcli connection up
====================================================================================
OpenSUSE - Wicked
Network configuration files are stored in /etc/sysconfig/XXXXXXXXXXXXXXXnetworks
systemctl status network
Show all interfaces
wicked show all
Show info for specific interface
wicked show eth1
Take interface down or up
wicked ifdown eth1
wicked ifup eth1