你的位置:首页 > 操作系统

[操作系统]虚拟网桥配置


[root@ok network-scripts]# cat ifcfg-eth0 DEVICE=eth0HWADDR=54:EE:75:4E:37:D9TYPE=EthernetUUID=ea35184e-8417-4ce4-9843-dfc37a26a363ONBOOT=yesNM_CONTROLLED=noBOOTPROTO=noneBRIDGE=br0

 

[root@ok network-scripts]# cat ifcfg-eth0 DEVICE=eth0HWADDR=54:EE:75:4E:37:D9TYPE=EthernetUUID=ea35184e-8417-4ce4-9843-dfc37a26a363ONBOOT=yesNM_CONTROLLED=noBOOTPROTO=noneBRIDGE=br0[root@ok network-scripts]# cat ifcfg-br0 DEVICE=br0TYPE=BridgeONBOOT=yesNM_CONTROLLED=noBOOTPROTO=noneIPADDR=192.168.1.10PREFIX=24GATEWAY=192.168.1.1DNS1=202.106.196.115IPV4_FAILURE_FATAL=yesIPV6INIT=no