Nmcli rocky: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (Thomas.will verschob die Seite Nmcli fedora nach Nmcli rocky) |
|||
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| + | =Manuelles Setzen - Ergebnis überlebt einen Reboot= | ||
| + | ;IP setzen | ||
*nmcli connection modify enp0s3 ipv4.method manual ipv4.addresses 192.168.34.11/24 | *nmcli connection modify enp0s3 ipv4.method manual ipv4.addresses 192.168.34.11/24 | ||
| + | ;Gateway einstellen | ||
| + | *nmcli connection modify enp0s3 ipv4.gateway 192.168.34.1 | ||
| + | ;Nameserver einstellen | ||
*nmcli connection modify enp0s3 ipv4.dns 192.168.34.1 | *nmcli connection modify enp0s3 ipv4.dns 192.168.34.1 | ||
| + | ;Search Domain einstellen | ||
*nmcli connection modify enp0s3 ipv4.dns-search hack.lab | *nmcli connection modify enp0s3 ipv4.dns-search hack.lab | ||
| + | ;Aktivieren | ||
*nmcli connection down enp0s3 ; nmcli connection up enp0s3 | *nmcli connection down enp0s3 ; nmcli connection up enp0s3 | ||
| + | =Ergebnis wird hier gespeichtert= | ||
| + | *cat /etc/NetworkManager/system-connections/enp0s3.nmconnection | ||
| + | <pre> | ||
| + | [connection] | ||
| + | id=enp0s3 | ||
| + | uuid=dc69b0fb-f2cf-3985-bd39-b7b0217356e2 | ||
| + | type=ethernet | ||
| + | autoconnect-priority=-999 | ||
| + | interface-name=enp0s3 | ||
| + | timestamp=1676645176 | ||
| + | |||
| + | [ethernet] | ||
| + | |||
| + | [ipv4] | ||
| + | address1=192.168.34.11/24,192.168.34.1 | ||
| + | dns=192.168.34.1; | ||
| + | dns-search=hack.lab; | ||
| + | method=manual | ||
| + | |||
| + | [ipv6] | ||
| + | addr-gen-mode=eui64 | ||
| + | method=auto | ||
| + | |||
| + | [proxy] | ||
| + | </pre> | ||
Aktuelle Version vom 10. März 2025, 17:29 Uhr
Manuelles Setzen - Ergebnis überlebt einen Reboot
- IP setzen
- nmcli connection modify enp0s3 ipv4.method manual ipv4.addresses 192.168.34.11/24
- Gateway einstellen
- nmcli connection modify enp0s3 ipv4.gateway 192.168.34.1
- Nameserver einstellen
- nmcli connection modify enp0s3 ipv4.dns 192.168.34.1
- Search Domain einstellen
- nmcli connection modify enp0s3 ipv4.dns-search hack.lab
- Aktivieren
- nmcli connection down enp0s3 ; nmcli connection up enp0s3
Ergebnis wird hier gespeichtert
- cat /etc/NetworkManager/system-connections/enp0s3.nmconnection
[connection] id=enp0s3 uuid=dc69b0fb-f2cf-3985-bd39-b7b0217356e2 type=ethernet autoconnect-priority=-999 interface-name=enp0s3 timestamp=1676645176 [ethernet] [ipv4] address1=192.168.34.11/24,192.168.34.1 dns=192.168.34.1; dns-search=hack.lab; method=manual [ipv6] addr-gen-mode=eui64 method=auto [proxy]