我的服务器(Ubuntu 8.04)的主板死了,所以我换了主板,CPU和内存。 现在,我无法使服务器在configuration的networking上工作。
networkingconfiguration不使用DHCP。
路由器IP是10.10.10.1 。 服务器是10.10.10.10 。
/etc/network/interfaces :
auto eth0 iface eth0 inet static address 10.10.10.10 netmask 255.255.255.0 gateway 10.10.10.1
Ping路由器( ping 10.10.10.1 )导致:
PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data. From 10.10.10.10 icmp_seq=1 Destination Host Unreachable From 10.10.10.10 icmp_seq=2 Destination Host Unreachable ...
ifconfig eth0的结果:
eth0 Link encap:Ethernet HWaddr 90:2b:34:a5:c9:af inet addr:10.10.10.10 Bcast: 10.10.10.255 Mask: 255.255.255.0 inet6 addr: fe80... ( skipped typing this ) UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overrruns: 0 frame:0 TX packets:446 errors:0 dropped:0 overrruns: 0 carrier:0 collisions: 0 txqueuelen:1000 RX bytes:o (0.0 B) TX bytes:32324 (31.5kb) Interrupt:220 Base address:0xa00
route的结果:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use iFace 10.10.10.0 * 255.255.255.0 U 0 0 0 eth0 link-local * 255.255.0.0 U 1000 0 0 eth0 default 10.10.10.1 0.0.0.0 UG 100 0 0 eth0
(注:前两个结果立即出现,最后一行(默认路由)出现在大约20秒后,如果我做了route -n所有结果立即显示)。
iptables -L的结果显示没有iptables条目。
/etc/hostname的内容:
Server
/etc/hosts的内容:
127.0.0.1 localhost.localdomain localhost 10.10.10.10 Server.localdomain Server # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
mii-tool结果:
SIOCGMIIPHY on `eth0` failed: Operation not supported SIOCGMIIPHY on `eth1` failed: Operation not supported SIOCGMIIPHY on `eth2` failed: Operation not supported SIOCGMIIPHY on `eth3` failed: Operation not supported SIOCGMIIPHY on `eth4` failed: Operation not supported SIOCGMIIPHY on `eth5` failed: Operation not supported SIOCGMIIPHY on `eth6` failed: Operation not supported SIOCGMIIPHY on `eth7` failed: Operation not supported no MII interfaces found
sudo mii-tool结果:
SIOCGMIIPHY on `eth0` failed: Operation not supported no MII interfaces found
arp -a结果:
? (10.10.10.1) at <incomplete> on eth0
dmesg | grep eth0结果 dmesg | grep eth0 :
[ 22.188268] eth0: RTL8169 at 0xf8888000, 90:2b:34:a5:c9:af, XID 2c900800 IRQ 220 [ 41.919804] r8169: eth0: link up
我已经禁用了IPv6,因为dmesg 在抱怨:
eth0: no IPv6 routers present
我已经尝试了不同的networking电缆和路由器端口。 networking上的其他计算机运行正常(他们也有10.10.10.x范围内的静态IP)。
最初networking设备被命名为eth2。 我删除了/etc/udev/rules.d/70-persistent-net.rules ,它已成功重新生成,新的网卡剩下所需的eth0名称。 谢谢你的build议,Heis Spiter。
任何想法将是一个很大的帮助。 谢谢!
您使用的网卡是否集成在主板上?
那么它被replace了吗?
如果是,请检查您的udev净规则: /etc/udev/rules.d/70-persistent-net.rules 。 您可能需要更新网卡命名。 删除旧的网卡并将其作为eth0切换。 网卡由其MAC地址标识。
删除旧的r8169驱动程序,并安装最新的r8168做的伎俩。
干杯。