Nmcli anwenden: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 22: | Zeile 22: | ||
=Route setzen= | =Route setzen= | ||
*nmcli connection modify dummy-dummy0 +ipv4.routes "192.168.34.0/24 192.168.33.1" | *nmcli connection modify dummy-dummy0 +ipv4.routes "192.168.34.0/24 192.168.33.1" | ||
| − | |||
=Anzeigend der Einstellungen= | =Anzeigend der Einstellungen= | ||
*nmcli device show enp1s0 | *nmcli device show enp1s0 | ||
=Get info about the current connection= | =Get info about the current connection= | ||
*nmcli con show | *nmcli con show | ||
| − | + | ||
| − | + | *[[nmcli bridge]] | |
| − | + | ||
| − | |||
| − | |||
| − | *nmcli | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=Wireguard import= | =Wireguard import= | ||
*nmcli connection import type wireguard file wg0.conf | *nmcli connection import type wireguard file wg0.conf | ||
| Zeile 55: | Zeile 34: | ||
=Hostspot= | =Hostspot= | ||
*[[nmcli Hotspot]] | *[[nmcli Hotspot]] | ||
| + | *[[AP nmcli]] | ||
=Quellen= | =Quellen= | ||
Aktuelle Version vom 15. August 2023, 14:53 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.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
Route setzen
- nmcli connection modify dummy-dummy0 +ipv4.routes "192.168.34.0/24 192.168.33.1"
Anzeigend der Einstellungen
- nmcli device show enp1s0
Get info about the current connection
- nmcli con show
Wireguard import
- nmcli connection import type wireguard file wg0.conf
- nmcli connection delete wg0