Nmcli anwenden: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 3: | Zeile 3: | ||
=Liste der WLAN Verbindungen= | =Liste der WLAN Verbindungen= | ||
*nmcli connection | *nmcli connection | ||
| + | if you did not set HostName, set it like follows | ||
| + | =IPv4 Adresse setzen= | ||
| + | *nmcli connection modify enp1s0 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= | ||
| + | *nmcli device show enp1s0 | ||
| + | =Quellen= | ||
| + | *https://www.server-world.info/en/note?os=Fedora_35&p=ntp&f=1 | ||
Version vom 14. November 2022, 18:32 Uhr
Liste der Geräte
- nmcli device
Liste der WLAN Verbindungen
- nmcli connection
if you did not set HostName, set it like follows
IPv4 Adresse setzen
- nmcli connection modify enp1s0 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
- nmcli device show enp1s0