这几天德阳的一台服务器公网频繁出现updown的情况,down掉的时间随机,基本上每天都会出现一两次,但是down掉时间很短,一秒甚至不到一秒就恢复正常了,查看日志发现:
[161626.745487] ixgbe 0000:05:00.0 eth0: NIC Link is Down
[161627.768198] ixgbe 0000:05:00.0 eth0: NIC Link is Up 10 Gbps, Flow Control: RX/TX
[164096.502778] ixgbe 0000:05:00.0 eth0: NIC Link is Down
[164097.144940] ixgbe 0000:05:00.0 eth0: NIC Link is Up 10 Gbps, Flow Control: RX/TX
………………
都是这样的信息,再通过ifconfig查看:
[changtong@cdndyct01-cache10 ~]$ ifconfig
eth0 Link encap:Ethernet HWaddr 6C:92:BF:04:84:3A
inet addr:220.167.102.19 Bcast:220.167.102.31 Mask:255.255.255.224
inet6 addr: fe80::6e92:bfff:fe04:843a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:438807624 errors:8 dropped:0 overruns:0 frame:8
TX packets:429535921 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:190761454181 (177.6 GiB) TX bytes:51857654572 (48.2 GiB)
………………
发现errors显示为8,初步推断是硬件问题,网卡,网线或是交换机接口松动?然后联系机房检查并重新插拔了下线,问题解决。