Linux静态IP地址完整配置牛皮

gogogo

1.ifconfig  看看是否存在IP

2.cd  etc/sysconfig/network-scripts/

3.我的是有ifcfg-eth0 你们的应该是没有已经配过了

4.cp ifcfg-ens33 ifcfg-eth0

5.vi ifcfg-eth0

6.红框框里的按照我说的配上  IPADDR就是你要设置的IP  

7. wq! 强制保存出口

8.source ifcfg-eth0

9.service network restart   重启网卡

10.shutdown -r now 重启  完了  ifconfig看看

猜你喜欢

转载自blog.csdn.net/qq_37342374/article/details/79263192
今日推荐