虚拟网桥配置,虚拟网桥


[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

 

相关内容