1桥接网络连不上,配置system-etho0
cd /etc/sysconfig/network-scriptsvi ifcfg-eth0或者直接编辑vi /etc/sysconfig/network-scripts/ifcfg-eth0
2.ifcfg-eth0文件
DEVICE=eth0TYPE=EthernetUUID=c8d9531a-dc3b-4be3-8b0a-ab2cf71ee9dbHWADDR=00:0c:29:bc:4a:d7ONBOOT=yesBOOTPROTO=staticIPADDR=172.20.17.108NETNASK=255.255.0.0GATEWAY=172.20.18.1DNS1=172.20.18.1注:BOOTPROTO=static //静态ipIPADDR //虚拟主机机器ipNETMASK //本地子网掩码 主机NETWORK //主机网络BOOTCAST //主机默认网关NAME //网络名称
3.重启服务
/etc/init.d/network restart或者service network restart