centos 虛擬機上網設置

1/設置自動獲取:html

http://jingyan.baidu.com/article/90808022dc25a1fd91c80fa5.htmlspa

net start "VMware DHCP Service"
net start "VMware NAT Service"
pauserest


service NetworkManager stop
service network restart
service NetworkManager starthtm

2/配置網卡信息 只保留下面的五個ip

vi  /etc/sysconfig/network-scripts/ifcfg-eth0配置

DEVICE=eth0
#HWADDR=00:0C:29:62:CE:71
TYPE=Ethernet
#UUID=ec49539a-5b1e-4843-a09a-2e25d392a039
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcpnetwork


重啓:service

service network restartd3

相關文章
相關標籤/搜索