2168575 发表于 2015-4-10 13:23:30

rhel6 kvm做桥接

摘自:http://hi.baidu.com/naruto6006/blog/item/a08ec902aebca37b3912bb3a.html  关于虚拟化的文章,写的不错,摘其中桥接部分学习...

  # cd /etc/sysconfig/network-scripts/   
# cp ifcfg-eth0 ifcfg-br0
# 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
# 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为桥接
页: [1]
查看完整版本: rhel6 kvm做桥接