配置linux ip
linux下查看ip指令:
ip addr
![博客目录](https://github.com/BrightSails/pic/raw/master/setContos_network/cfcentos_net_1.png)
配置ip:
1.进入
cd etc/sysconfig/network-scripts
![network](https://github.com/BrightSails/pic/raw/master/setContos_network/cfcentos_net_2.png)
2.打开文件
vi ifcfg-ens33
3.编辑文件
![ens33](https://img-blog.csdnimg.cn/img_convert/167894958dcd13e8a733e4fc30cd1fc3.png)
4.重新启动
service network restart
vmware及本地配置
![博客目录](https://img-blog.csdnimg.cn/img_convert/29cc9e1f4ea24d6ac946c9958423d276.png)
![博客目录](https://img-blog.csdnimg.cn/img_convert/fe97cbf7452b2ae63365bb145108563d.png)
![博客目录](https://img-blog.csdnimg.cn/img_convert/5d30e4d51946b9cd18fadc2f3cb78db0.png)
![博客目录](https://img-blog.csdnimg.cn/img_convert/7a748b989be92c600ddd0e4741d2a78a.png)
linux下查看ip指令:
ip addr
配置ip:
cd etc/sysconfig/network-scripts
vi ifcfg-ens33
service network restart