在redhat7.1上建立3台vm
http://blog.sina.com.cn/s/blog_53923f940100x1b1.html
[code="java"]
# cat ifcfg-br1
DEVICE=br1
ONBOOT=yes
TYPE=Bridge
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.137.105
NETMASK=255.255.255.0
GATEWAY=192.168.137.1
STP=on
DELAY=0.0
[/code]
[code="java"]
# cat ifcfg-p4p1
DEVICE=p4p1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
BRIDGE=br1
[/code]
http://blog.sina.com.cn/s/blog_53923f940100x1b1.html
[code="java"]
# cat ifcfg-br1
DEVICE=br1
ONBOOT=yes
TYPE=Bridge
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.137.105
NETMASK=255.255.255.0
GATEWAY=192.168.137.1
STP=on
DELAY=0.0
[/code]
[code="java"]
# cat ifcfg-p4p1
DEVICE=p4p1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
BRIDGE=br1
[/code]