码迷,mamicode.com
首页 > 其他好文 > 详细

NAT下虚拟机集群网络配置

时间:2015-03-14 13:47:41      阅读:267      评论:0      收藏:0      [点我收藏+]

标签:

VMware 设置

技术分享
 技术分享
技术分享
 
技术分享
技术分享
 技术分享技术分享技术分享

物理机(宿主机)设置

技术分享
技术分享技术分享
技术分享
技术分享
技术分享
 

虚拟机网卡设置

[root@hadoop03 gongice]# ifconfig eth0 192.168.153.11
[root@hadoop03 gongice]# ifconfig 
eth0 Link encap:Ethernet HWaddr 00:0C:29:2C:DF:3D 
inet addr:192.168.153.11 Bcast:192.168.153.255 Mask:255.255.255.0 
inet6 addr: fe80::20c:29ff:fe2c:df3d/64 Scope:Link 
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:869 errors:0 dropped:0 overruns:0 frame:0 
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:1000 
RX bytes:73397 (71.6 KiB) TX bytes:6589 (6.4 KiB) 

lo Link encap:Local Loopback 
inet addr:127.0.0.1 Mask:255.0.0.0 
inet6 addr: ::1/128 Scope:Host 
UP LOOPBACK RUNNING MTU:16436 Metric:1 
RX packets:8 errors:0 dropped:0 overruns:0 frame:0 
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:0 
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)
[root@hadoop03 gongice]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=cf758f2c-c53c-4b40-a63e-6bf9cebe39ca
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=00:0C:29:2C:DF:3D
IPADDR=192.168.153.11
PREFIX=24
GATEWAY=192.168.153.2
[root@hadoop03 gongice]# service network restart
[root@hadoop03 gongice]# /etc/init.d/network restart

 

NAT下虚拟机集群网络配置

标签:

原文地址:http://www.cnblogs.com/gongice/p/4337379.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!