美文网首页
CentOS6.6 配置静态 IP 和可访问外网

CentOS6.6 配置静态 IP 和可访问外网

作者: ly稻草 | 来源:发表于2018-05-02 14:59 被阅读0次

1.关闭 Windos10 防火墙 

2.关闭 CentOS6.6 防火墙

# service iptables stop

# chkconfig iptables off

3.开启两个服务VMware DHCP Service  ;VMware NAT Service 

右击“此电脑”(WIN10),单击“管理”,打开计算机管理,启动图中圈出的两个服务

4.无线网卡的网络(或者插网线的网络)上设置网络共享,选择 VM8

5.使用 ipconfig -all 命令查看 DNS、IPv4 等信息

6.配置VM8的选择使用配置ip

7.进入 vm10,单击菜单栏的编辑-->虚拟网络编辑器

8.hadoop-01 配置 NAT 网络

9.进入 hadoop-01,编辑 ifcfg-eth0 vi /etc/sysconfig/network-scripts/ifcfg-eth0 

10. 进入 hadoop-01,重启网络 执行命令:

service network restart

11. 进入 hadoop-01,检查网络

相关文章

网友评论

      本文标题:CentOS6.6 配置静态 IP 和可访问外网

      本文链接:https://www.haomeiwen.com/subject/mofcrftx.html