2026-03-12 21:01:38
This commit is contained in:
19
divers/rocky9_nmcli_example_01.txt
Normal file
19
divers/rocky9_nmcli_example_01.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user