今天上午在Dell 920 上配置网络的时候遇见这个情况:
-
[root@localhost Desktop]# service network restart
-
Shutting down interface em1: Error: Device \\\'em\\\' (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: This device is not active
-
[FAILED]
-
Shutting down loopback interface: [ OK ]
-
Bringing up loopback interface: [ OK ]
-
Bringing up interface em1: Error: Connection activation failed: Device not managed by NetworkManager or unavailable
-
[FAILED]
-
[root@localhost Desktop]# chkconfig NetworkManager off ---记得大小写
-
[root@localhost Desktop]# chkconfig network on
-
[root@localhost Desktop]# service NetworkManager stop
-
Stopping NetworkManager daemon: [ OK ]
-
[root@localhost Desktop]# service network start
-
Bringing up loopback interface: [ OK ]
-
Bringing up interface em1: [ OK ]
-
RTNETLINK answers: File exists
-
RTNETLINK answers: File exists
-
RTNETLINK answers: File exists
-
RTNETLINK answers: File exists
-
RTNETLINK answers: File exists
-
RTNETLINK answers: File exists
-
RTNETLINK answers: File exists
-
RTNETLINK answers: File exists
-
RTNETLINK answers: File exists
-
[root@localhost Desktop]# service network restart
-
Shutting down interface em1: [ OK ]
-
Shutting down loopback interface: [ OK ]
-
Bringing up loopback interface: [ OK ]
-
Bringing up interface em1: [ OK ]
-
[root@localhost Desktop]# ifconfig
-
em1 Link encap:Ethernet HWaddr 00:0C:29:A0:C6:44
-
inet addr:172.17.1.188 Bcast:172.17.1.255 Mask:255.255.255.0
-
UP BROADCAST 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:1000
-
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
-
-
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:12 errors:0 dropped:0 overruns:0 frame:0
-
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
-
collisions:0 txqueuelen:0
-
RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)
-
-
[root@localhost Desktop]# iptables -L
-
Chain INPUT (policy ACCEPT)
-
target prot opt source destination
-
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
-
ACCEPT icmp -- anywhere anywhere
-
ACCEPT all -- anywhere anywhere
-
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
-
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
-
-
Chain FORWARD (policy ACCEPT)
-
target prot opt source destination
-
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
-
-
Chain OUTPUT (policy ACCEPT)
-
target prot opt source destination
-
[root@localhost Desktop]# iptables -F
本以为这样就可以了,但是ping其他机器 的时候不通。ping 本机通。
折腾了几个小时,找来了其他几个DBA,最后得出的结果是,Dell机器的网卡顺序不一致。
坑!
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30936525/viewspace-2018393/
,如需转载,请注明出处,否则将追究法律责任。