centos7 set up automatic ip

1. To enter into network-scripts file

 1 cd etc/sysconfig/network-scripts 

2.ls view files have a file ifcfg-ens33

3. vi ifcfg-ens33 ONBOOT = no modification is provided to enter the press is yes i 

4.Esc quit: wq save

5. Reboot init 6

Guess you like

Origin www.cnblogs.com/wangmeng960111/p/10985747.html