nmcli
CLI des Networkmanager
Geräte
nmcli -p device
nmcli device status
nmcli dev show [NIC]
nmcli device set [NIC] managed no nmcli device set [NIC] managed yes
nmcli dev disconnect [NIC] nmcli dev connect [NIC]
Profilverwaltung
Kurzschreibweise : a : add c : con => connection d : device mod : modify
nmcli connection show nmcli connection show [PROFIL]
nmcli con add type ethernet con-name [PROFIL] ifname [NIC] nmcli con add type ethernet con-name [PROFIL] ifname [NIC] ip4 192.168.0.10/24 gw4 192.168.0.1
nmcli con add bond0 type bond nmcli con add con-name bond0-slave-[NIC] type ethernet ifname [NIC] master bond0
nmcli con modify [PROFIL] ipv4.dns-search "dummy.net internet.org" nmcli con modify [PROFIL] ipv4.gateway "192.168.0.1" nmcli con modify [PROFIL] ipv4.dns "8.8.8.8 8.8.4.4" nmcli con modify [PROFIL] +ipv4.dns "192.168.0.1" nmcli con modify [PROFIL] -ipv4.dns "192.168.0.1"
nmcli con up [PROFIL] nmcli con down [PROFIL]