我有2个centos 5服务器,通过以太网电缆直接连接(不知道它是一个交叉电缆或直通),但他们不能ping通对方。 这确实有用,但我相信昨天停止了工作。
不幸的是,这是一个远程服务器,所以我只能通过ssh或远程控制台访问进行testing,即我不能更换电缆。
ethtool和mii-tool都显示nics连接,自动协商在1000 /满。 iptablesclosures,selinux被禁用。
我已经尝试重新启动networking接口,迫使他们重新谈判,甚至重新启动两台服务器。 没有任何东西在configuration中看起来不合我的地方,所以我在这里不知所措。
Server1configuration:
路线-n:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 10.90.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 10.90.250.1 0.0.0.0 UG 0 0 0 eth0
ifcfg文件:
DEVICE=eth1 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.1.7 NETMASK=255.255.255.0 NETWORK=192.168.1.0 BROADCAST=192.168.1.255 IPV6_AUTOCONF=yes
ifconfig输出:
eth1 Link encap:Ethernet HWaddr 00:15:17:66:99:C5 inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe66:99c5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2633 errors:0 dropped:0 overruns:0 frame:0 TX packets:1530 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:168952 (164.9 KiB) TX bytes:137137 (133.9 KiB) Base address:0x2000 Memory:b8800000-b8820000
Server2configuration:
路线-n:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 10.90.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 10.90.250.1 0.0.0.0 UG 0 0 0 eth0
ifcfg文件:
DEVICE=eth1 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.1.8 NETMASK=255.255.255.0 NETWORK=192.168.1.0 BROADCAST=192.168.1.255 IPV6_AUTOCONF=yes
ifconfig输出:
eth1 Link encap:Ethernet HWaddr 00:15:17:66:9A:2D inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe66:9a2d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5857 errors:0 dropped:0 overruns:0 frame:0 TX packets:7035 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:375200 (366.4 KiB) TX bytes:728319 (711.2 KiB) Base address:0x2000 Memory:b8800000-b8820000
任何想法或build议将不胜感激。
当CentOS驱动程序不完全支持网卡时,例如HP Proliant服务器的某些networking适配器,我看到类似的问题。 尝试search卡制造商或集成商提供的驱动程序并应用它。
原来答案是人为错误。 一位现场技术人员认为服务器应该连接到交换机上,并且改变了这些服务器而没有提及任何人。 感谢您的build议polynomial和joechip。