rhel6 kvm做桥接

摘自:http://hi.baidu.com/naruto6006/blog/item/a08ec902aebca37b3912bb3a.html

关于虚拟化的文章,写的不错,摘其中桥接部分学习...

[root@jsb-ylw-5052 ~]# cd /etc/sysconfig/network-scripts/  
[root@jsb-ylw-5052 network-scripts]# cp ifcfg-eth0 ifcfg-br0
[root@jsb-ylw-5052 network-scripts]# cat ifcfg-eth0
# nVidia Corporation MCP77 Ethernet
DEVICE=eth0
BOOTPROTO=static
HWADDR=90:E6:BA:70:B2:28
IPADDR=192.168.50.24
NETMASK=255.255.255.0
ONBOOT=yes
BRIDGE=br0   //将eth0桥接到br0
[root@jsb-ylw-5052 network-scripts]# cat ifcfg-br0
# nVidia Corporation MCP77 Ethernet
DEVICE=br0
BOOTPROTO=static
HWADDR=90:E6:BA:70:B2:28
IPADDR=192.168.50.24
NETMASK=255.255.255.0
ONBOOT=yes

TYPE=Bridge //br0为桥接

posted @ 2011-07-11 22:29  xiahaitao  阅读(505)  评论(3编辑  收藏  举报