虚拟网桥配置

[root@ok network-scripts]# cat ifcfg-eth0 
DEVICE=eth0
HWADDR=54:EE:75:4E:37:D9
TYPE=Ethernet
UUID=ea35184e-8417-4ce4-9843-dfc37a26a363
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
BRIDGE=br0

 

[root@ok network-scripts]# cat ifcfg-eth0 
DEVICE=eth0
HWADDR=54:EE:75:4E:37:D9
TYPE=Ethernet
UUID=ea35184e-8417-4ce4-9843-dfc37a26a363
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
BRIDGE=br0
[root@ok network-scripts]# cat ifcfg-br0 
DEVICE=br0
TYPE=Bridge
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=192.168.1.10
PREFIX=24
GATEWAY=192.168.1.1
DNS1=202.106.196.115
IPV4_FAILURE_FATAL=yes
IPV6INIT=no

 

posted @ 2016-05-15 20:10  bass  阅读(332)  评论(0编辑  收藏  举报