12
回答
无法连接服务器,所有服务无法访问
终于搞明白,存储TCO原来是这样算的>>>   
最近服务器总是无法连接上,能ping通,服务器上的所有服务都无法访问,但过一会又可以访问,当正在服务器上时,也发生这种情况,所有服务都无法访问但正在连接的ssh不会掉,另外开启又无法连接,服务端口都开启了,哪位大哥遇到过这种问题啊???
SSH
举报
joeluo
发帖于6年前 12回/5K+阅
共有12个答案 最后回答: 6年前

引用来自“红薯”的答案

服务器无法访问是什么状况,错误信息?
没错误,就是外面的用户无法访问所有开启的服务,但服务正在运行

不知道是不是网卡的问题,机器是DELL R710 ,系统是ubuntu10.04,网卡 Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20),系统启动日志显示的网卡信息是:

[   12.281823] Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.0.2 (Aug 21, 2009)

[   12.281851]   alloc irq_desc for 36 on node -1

[   12.281856]   alloc kstat_irqs on node -1

[   12.281867] bnx2 0000:01:00.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36

[   12.281879] bnx2 0000:01:00.0: setting latency timer to 64

[   12.282094] bnx2 0000:01:00.0: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j3.fw

[   12.286480] ACPI Error: No handler for Region [IPMI] (ffff880227010240) [IPMI] (20090903/evregion-319)

[   12.286491] ACPI Error: Region IPMI(7) has no handler (20090903/exfldio-295)

[   12.286505] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PMI0._GHL] (Node ffff88042fc1ec60), AE_NOT_EXIST

[   12.286550] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PMI0._PMC] (Node ffff88042fc1ebe0), AE_NOT_EXIST

[   12.286590] ACPI Exception: AE_NOT_EXIST, Evaluating _PMC (20090903/power_meter-772)

[   12.292983] vga16fb: initializing

[   12.292987] vga16fb: mapped to 0xffff8800000a0000

[   12.293043] fb0: VGA16 VGA frame buffer device

[   12.299464] dcdbas dcdbas: Dell Systems Management Base Driver (version 5.6.0-3.2)

[   12.300387] dell-wmi: No known WMI GUID found

[   12.316217] bnx2 0000:01:00.0: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j3.fw

[   12.318357] eth0: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem d6000000, IRQ 36, node addr 78:2b:cb:12:45:b9

[   12.318386]   alloc irq_desc for 48 on node -1

[   12.318389]   alloc kstat_irqs on node -1

[   12.318396] bnx2 0000:01:00.1: PCI INT B -> GSI 48 (level, low) -> IRQ 48

[   12.318404] bnx2 0000:01:00.1: setting latency timer to 64

[   12.318619] bnx2 0000:01:00.1: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j3.fw

[   12.320154] bnx2 0000:01:00.1: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j3.fw

[   12.511247] Console: switching to colour frame buffer device 80x30

[   12.519062] type=1505 audit(1310724687.691:2):  operation="profile_load" pid=678 name="/sbin/dhclient3"

[   12.519756] type=1505 audit(1310724687.691:3):  operation="profile_load" pid=678 name="/usr/lib/NetworkManager/nm-dhcp-client.action"

[   12.520136] type=1505 audit(1310724687.691:4):  operation="profile_load" pid=678 name="/usr/lib/connman/scripts/dhclient-script"

[   12.520476] eth1: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem d8000000, IRQ 48, node addr 78:2b:cb:12:45:bb

[   12.520499]   alloc irq_desc for 32 on node -1

[   12.520501]   alloc kstat_irqs on node -1

[   12.520507] bnx2 0000:02:00.0: PCI INT A -> GSI 32 (level, low) -> IRQ 32

[   12.520513] bnx2 0000:02:00.0: setting latency timer to 64

[   12.520651] bnx2 0000:02:00.0: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j3.fw

[   12.528950] bnx2 0000:02:00.0: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j3.fw

[   12.532238] eth2: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem da000000, IRQ 32, node addr 78:2b:cb:12:45:bd

[   12.532261]   alloc irq_desc for 42 on node -1

[   12.532263]   alloc kstat_irqs on node -1

[   12.532270] bnx2 0000:02:00.1: PCI INT B -> GSI 42 (level, low) -> IRQ 42

[   12.532276] bnx2 0000:02:00.1: setting latency timer to 64

[   12.532400] bnx2 0000:02:00.1: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j3.fw

[   12.533857] bnx2 0000:02:00.1: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j3.fw

[   12.536676] eth3: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem dc000000, IRQ 42, node addr 78:2b:cb:12:45:bf

[   12.540955]   alloc irq_desc for 63 on node -1

[   12.540959]   alloc kstat_irqs on node -1

[   12.540966] bnx2 0000:01:00.1: irq 63 for MSI/MSI-X

[   12.540968]   alloc irq_desc for 64 on node -1

[   12.540970]   alloc kstat_irqs on node -1

[   12.540973] bnx2 0000:01:00.1: irq 64 for MSI/MSI-X

[   12.540975]   alloc irq_desc for 65 on node -1

[   12.540977]   alloc kstat_irqs on node -1

[   12.540980] bnx2 0000:01:00.1: irq 65 for MSI/MSI-X

[   12.540982]   alloc irq_desc for 66 on node -1

[   12.540984]   alloc kstat_irqs on node -1

[   12.540987] bnx2 0000:01:00.1: irq 66 for MSI/MSI-X

[   12.540989]   alloc irq_desc for 67 on node -1

[   12.540991]   alloc kstat_irqs on node -1

[   12.540994] bnx2 0000:01:00.1: irq 67 for MSI/MSI-X

[   12.540996]   alloc irq_desc for 68 on node -1

[   12.540998]   alloc kstat_irqs on node -1

[   12.541001] bnx2 0000:01:00.1: irq 68 for MSI/MSI-X

[   12.541003]   alloc irq_desc for 69 on node -1

[   12.541005]   alloc kstat_irqs on node -1

[   12.541008] bnx2 0000:01:00.1: irq 69 for MSI/MSI-X

[   12.541010]   alloc irq_desc for 70 on node -1

[   12.541012]   alloc kstat_irqs on node -1

[   12.541015] bnx2 0000:01:00.1: irq 70 for MSI/MSI-X

[   12.541017]   alloc irq_desc for 71 on node -1

[   12.541018]   alloc kstat_irqs on node -1

[   12.541021] bnx2 0000:01:00.1: irq 71 for MSI/MSI-X

[   12.602575] bnx2: eth1: using MSIX

[   12.604384] ADDRCONF(NETDEV_UP): eth1: link is not ready

[   12.641270]   alloc irq_desc for 72 on node -1

[   12.641274]   alloc kstat_irqs on node -1

[   12.641283] bnx2 0000:01:00.0: irq 72 for MSI/MSI-X

[   12.641286]   alloc irq_desc for 73 on node -1

[   12.641289]   alloc kstat_irqs on node -1

[   12.641293] bnx2 0000:01:00.0: irq 73 for MSI/MSI-X

[   12.641296]   alloc irq_desc for 74 on node -1

[   12.641299]   alloc kstat_irqs on node -1

[   12.641303] bnx2 0000:01:00.0: irq 74 for MSI/MSI-X

[   12.641306]   alloc irq_desc for 75 on node -1

[   12.641309]   alloc kstat_irqs on node -1

[   12.641313] bnx2 0000:01:00.0: irq 75 for MSI/MSI-X

[   12.641316]   alloc irq_desc for 76 on node -1

[   12.641318]   alloc kstat_irqs on node -1

[   12.641323] bnx2 0000:01:00.0: irq 76 for MSI/MSI-X

[   12.641326]   alloc irq_desc for 77 on node -1

[   12.641328]   alloc kstat_irqs on node -1

[   12.641333] bnx2 0000:01:00.0: irq 77 for MSI/MSI-X

[   12.641335]   alloc irq_desc for 78 on node -1

[   12.641338]   alloc kstat_irqs on node -1

[   12.641342] bnx2 0000:01:00.0: irq 78 for MSI/MSI-X

[   12.641345]   alloc irq_desc for 79 on node -1

[   12.641348]   alloc kstat_irqs on node -1

[   12.641352] bnx2 0000:01:00.0: irq 79 for MSI/MSI-X

[   12.641355]   alloc irq_desc for 80 on node -1

[   12.641357]   alloc kstat_irqs on node -1

[   12.641362] bnx2 0000:01:00.0: irq 80 for MSI/MSI-X

[   12.701144] type=1505 audit(1310724687.871:5):  operation="profile_load" pid=882 name="/usr/sbin/mysqld"

[   12.701188] type=1505 audit(1310724687.871:6):  operation="profile_load" pid=883 name="/usr/sbin/tcpdump"

[   12.701388] type=1505 audit(1310724687.871:7):  operation="profile_replace" pid=881 name="/sbin/dhclient3"

[   12.702080] type=1505 audit(1310724687.871:8):  operation="profile_replace" pid=881 name="/usr/lib/NetworkManager/nm-dhcp-client.action"

[   12.702467] type=1505 audit(1310724687.871:9):  operation="profile_replace" pid=881 name="/usr/lib/connman/scripts/dhclient-script"

[   12.710068] bnx2: eth0: using MSIX

[   12.711885] ADDRCONF(NETDEV_UP): eth0: link is not ready

有谁用DELL R710 的有遇到这种情况吗???开启了两块网卡????

你的意思是,服务器连着连着就突然断开了?无论是 SSH 还是 WEB 或者是邮件之类的?但断开的时候,服务器依旧是能 PING 通的? 如果是,很有可能是机房有ARP攻击。

引用来自“范堡”的答案

你的意思是,服务器连着连着就突然断开了?无论是 SSH 还是 WEB 或者是邮件之类的?但断开的时候,服务器依旧是能 PING 通的? 如果是,很有可能是机房有ARP攻击。

对,ssh在线的话不会强制退出,但从新连的话就连不上了,要等一会所有服务又可以了,一直都可以ping通

引用来自“joeluo”的答案

引用来自“范堡”的答案

你的意思是,服务器连着连着就突然断开了?无论是 SSH 还是 WEB 或者是邮件之类的?但断开的时候,服务器依旧是能 PING 通的? 如果是,很有可能是机房有ARP攻击。

对,ssh在线的话不会强制退出,但从新连的话就连不上了,要等一会所有服务又可以了,一直都可以ping通

这么有 80% 的可能是机房有 ARP 攻击!!!!
确诊方法是,在服务器正常的时候,使用 arp -a 查看当前网关 ip 的 mac 地址,记下来。

等候下次不行的时候,从其他途径让服务器记录当前的 arp 地址,两个对照。

或咨询托管商他们的设备号是否与实际的一致。如不一致,立马就能确诊。

 

顶部