这篇文章给大家介绍CentOS6.5怎么配置静态IP和可访问外网,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。
![](/upload/ad_content/xuanchuantu-14.jpg)
我们提供的服务有:
成都网站建设、成都做网站、微信公众号开发、网站优化、网站认证、
波密ssl等。为近1000家企事业单位解决了网站和推广的问题。提供周到的售前咨询和贴心的售后服务,是有科学管理、有技术的
波密网站制作公司 1.关闭Windos7防火墙
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129293.png)
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129294.png)
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129295.png)
2.开启VMware DHCP Service和VMware NAT Service两个服务
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129296.png)
3.无线网卡的网络(或者插网线的网络)上设置网络共享,选择VM8
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129297.png)
4.使用ipconfig -all命令查看DNS、IPv4等信息
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129298.png)
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129299.png)
5.配置VM8的选择 使用配置ip
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129300.png)
6.进入vm8,单击菜单栏的编辑-->虚拟网络编辑器
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129301.png)
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129302.png)
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129303.png)
7. hadoop000 右键--》设置,配置NAT网络
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129304.png)
8. 进入hadoop000命令界面,编辑ifcfg-eth0
vi
/etc/sysconfig/network-scripts/ifcfg-eth0
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129305.png)
9. 重启网络
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129306.png)
10. 进入hadoop000,检查网络 :访问百度域名失败,用IP访问百度成功。说明网络是配置成功的,访问不了百度域名是因为公司的网络环境导致。
直接访问百度域名失败:
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129307.png)
用IP访问百度OK:
![CentOS6.5怎么配置静态IP和可访问外网](/upload/otherpic26/129308.png)
关于CentOS6.5怎么配置静态IP和可访问外网就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。
标题名称:CentOS6.5怎么配置静态IP和可访问外网-创新互联
URL链接:
http://shouzuofang.com/article/didchi.html