1. 程式人生 > >VM虛擬機配置固定IP

VM虛擬機配置固定IP

prot bsp bootp broadcast ipa ati res restart ethernet

linux下vmware橋接模式、靜態ip上外網的配置

http://blog.csdn.net/zdh_139/article/details/73456654

虛擬機網絡改成橋接模式

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

DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
BROADCAST=192.168.0.255
HWADDR=00:0C:29:CF:92:BB
IPADDR=192.168.0.71
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS1=202.96.128.166
DNS2=202.96.134.133
IPV6INIT=no
USERCTL=no

重啟

service network restart

測試

ping www.baidu.com

VM虛擬機配置固定IP