最近安装了kvm,手上有几个ip可用,想做一下桥接给几个虚拟机用.
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE="br0"
BOOTPROTO="static"
GATEWAY="172.16.3.1"
IPADDR="172.16.3.64"
IPV6INIT="yes"
MTU="1500"
NETMASK="255.255.255.0"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Bridge"
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
#BOOTPROTO="static"
#GATEWAY="172.16.3.1"
HWADDR="00:23:7D:EB:C9:A4"
#IPADDR="172.16.3.64"
#IPV6INIT="yes"
#MTU="1500"
#NETMASK="255.255.255.0"
#NM_CONTROLLED="yes"
ONBOOT="yes"
#TYPE="Ethernet"
BRIDGE="br0"
[root@localhost ~]#
阅读(306) | 评论(0) | 转发(0) |