Liste der Geräte
Liste der WLAN Verbindungen
if you did not set HostName, set it like follows
IPv4 Adresse setzen
- nmcli connection modify enp1s0 ipv4.method manual ipv4.addresses 10.0.0.30/24
Gateway einstellen
- nmcli connection modify enp1s0 ipv4.gateway 10.0.0.1
DNS setzen
- nmcli connection modify enp1s0 ipv4.dns 10.0.0.10
DNS search
- nmcli connection modify enp1s0 ipv4.dns-search srv.world
Statische Ip
- nmcli connection modify enp1s0 ipv4.method manual
DHCP
- nmcli connection modify enp1s0 ipv4.method auto
Neuladen der Werte
- nmcli connection down enp1s0
- nmcli connection up enp1s0
Anzeigend der Einstellungen
Get info about the current connection
Add a new bridge
- nmcli con add type bridge ifname br0
Create a slave interface
- nmcli con add type bridge-slave ifname eno1 master br0
Turn on br0
löschen eines Devices
- nmcli connection delete bridge-br0
Dummy Device
- nmcli connection add type dummy ifname dummy0
- nmcli connection add type dummy ifname dummy0 ipv4.addresses 10.0.1.1/24
Dummy Arp Workaround
#!/bin/bash
if test "$1" = "dummy0"
then
if test "$2" = "pre-up"
then
ip link set dummy0 arp on
fi
fi
Quellen