CentOS中KVM桥连设置

之前在设置KVM桥连的时候碰到一个问题,记录下来供以后参考

[root@vane-server ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
NM_CONTROLLED=no
HWADDR=80:c1:6e:74:68:8a
ONBOOT=yes
IPADDR=192.168.1.12
NETMASK=255.255.255.0
DNS2=202.101.172.35
GATEWAY=192.168.1.1
DNS1=192.168.1.1
IPV6INIT=no
USERCTL=no


[root@vane-server ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BRIDGE=br0
BOOTPROTO=none
HWADDR=80:c1:6e:74:68:8a
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Ethernet
UUid="eb460b11-40de-4bd4-8a16-08da64ea1d0f"
IPADDR=192.168.1.12
NETMASK=255.255.255.0
DNS2=202.101.172.35
GATEWAY=192.168.1.1
DNS1=192.168.1.1
IPV6INIT=no
USERCTL=no
#name="System eth0"

相关推荐