20 lines
672 B
Plaintext
20 lines
672 B
Plaintext
# 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
|