问题背景:
用1U服务器搭建预演环境,单台物理服务器上部署多个KVM虚拟机,宿主机操作系统部署完毕,支持虚拟化所用软件包安装完毕,宿主机和虚拟机连接的网卡br100配置完毕,需要启动,在启动br100和eth1时,突然报错如下:
[root@maker network-scripts]# ifup br100
错误:激活连接失败:Failed to determine connection's virtual interface name
[root@maker network-scripts]# ifup eth1
错误:激活连接失败:Master connection not found or invalid
解决办法:
[root@maker network-scripts]# chkconfig NetworkManager off
[root@maker network-scripts]# service NetworkManager stop
停止 NetworkManager 守护进程: [确定]
[root@maker network-scripts]# ifup eth1
[root@maker network-scripts]# ifup br100
[root@maker network-scripts]# ifconfig
br100 Link encap:Ethernet HWaddr F8:0F:41:F3:CC:95
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::fa0f:41ff:fef3:cc95/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2342 (2.2 KiB) TX bytes:650 (650.0 b)
eth0 Link encap:Ethernet HWaddr F8:0F:41:F3:CC:94
inet addr:172.168.1.10 Bcast:172.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::fa0f:41ff:fef3:cc94/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2237 errors:0 dropped:0 overruns:0 frame:0
TX packets:1388 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:195995 (191.4 KiB) TX bytes:269871 (263.5 KiB)
Memory:dfe20000-dfe40000
eth1 Link encap:Ethernet HWaddr F8:0F:41:F3:CC:95
inet6 addr: fe80::fa0f:41ff:fef3:cc95/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:667 errors:0 dropped:0 overruns:0 frame:0
TX packets:325 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:67077 (65.5 KiB) TX bytes:44911 (43.8 KiB)
Memory:dfe00000-dfe20000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240 (240.0 b) TX bytes:240 (240.0 b)
virbr0 Link encap:Ethernet HWaddr 52:54:00:EB:4F:F9
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)