配置 br0 橋接後,eth0 與 br0 均報錯:
eth0: Connection activation failed: Master connection not found or invalid
br0: Connection activation failed: Failed to determine connection's virtual interface name
桌面環境安裝了 NetworkManager,其管理機制與傳統 network 服務衝突,導致橋接配置不生效。
service NetworkManager stop
chkconfig NetworkManager offservice network restartbrctl show 顯示 br0 掛載 eth0TYPE=Bridge
BOOTPROTO=static
IPADDR=172.16.10.177
NETMASK=255.255.255.0
PREFIX=24
GATEWAY=172.16.10.1
NAME="System br0"
ONBOOT=yes
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
IPADDR=172.16.10.177
NETMASK=255.255.255.0
PREFIX=24
GATEWAY=172.16.10.1
DNS1=8.8.8.8
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=00:1B:78:3B:38:0C
BRIDGE="br0"
network 服務而非 NetworkManager