Files
notes/divers/rocky9_nmcli_example_01.txt

20 lines
672 B
Plaintext
Raw Permalink Normal View History

2026-03-12 22:01:38 +01:00
# Rocky 9 network interface change IP address and host name example
###################################################################
nmcli connection show
nmcli connection show --active
nmcli connection modify enp1s0 ipv4.address 192.168.0.52/24
nmcli connection modify enp1s0 ipv4.method manual ipv6.method ignore
nmcli connection modify enp1s0 ipv4.gateway 192.168.0.1
nmcli connection modify enp1s0 ipv4.dns 192.168.0.8
nmcli connection modify enp1s0 ipv4.dns-search swgalaxy
nmcli connection modify enp2s0 ipv4.address 192.168.1.52/24 ipv4.method manual ipv6.method ignore
# list host interfaces
hostname -I
# set host name
hostnamectl hostname ithor.swgalaxy