克隆虚拟机、启动、配置网络、重启网络服务遇到如下问题:
[root@localhost ~]# service network restartLoading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-eth0 insteadLoading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-eth1 insteadShutting down loopback interface: [ OK ]Bringing up loopback interface: lo: Disabled Privacy Extensions [ OK ]Bringing up interface eth0: e1000 device eth0 does not seem to be present, delaying initialization. [FAILED]Bringing up interface eth1: e1000 device eth1 does not seem to be present, delaying initialization. [FAILED]
查看网络接口,结果如下:
1: lo:mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever2: eth3: mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:0c:29:9e:85:f7 brd ff:ff:ff:ff:ff:ff3: eth2: mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:0c:29:9e:85:01 brd ff:ff:ff:ff:ff:ff
发现重启网络失败了,相应接口没有启起来,这里应该是eth0和eth1,但是却有eth2和eth3
解决方法见: