Centos7.x fixed network IP configuration

1. centos system administrator account password

2.      cd/etc/sysconfig/network-script/

3. ls View

4.vi edit ifcfg-ens33 (different name server NIC fails, you can view specific ip a)

 

5. Press esc, enter: wq (lowercase) save!

6. Restart the network systemctl restart network      

7. ip a network address to see whether the configuration

 

 8. Test whether the network through

ping the gateway or ping 114.114.114.114

Guess you like

Origin www.cnblogs.com/wzhc/p/11388875.html
Recommended