You are not logged in.

#1 2010-06-18 03:16:53

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

[SOLVED] idle headless arch, disables wired lan

Hey,

I've recently installed a headless arch linux thats works near-perfectly.
Although, once its booted I have about 5 minutes to ssh to it without the network disconnecting
I say disconnecting, because I can't ping it, and as it boot headless i can't connect a monitor to it.
I've got the same hardware configuration on another arch linux, with a gui - and it runs fine.

I've set the following in both ssh_config, sshd_config (server and client):
TCPKeeplAlive yes
ServerAliveInterval 5

I dont know if this matters but the computer only has power and network connected to it.

How do I keep the network alive?

[X@redhat ~]$ ssh 192.168.1.100 -l root
root@192.168.1.100's password:
Last login: Thu Jun 17 23:40:19 2010 from 192.168.1.109
[root@Archer ~]#Timeout, server not responding.  //left idle for 5 minutes
[X@redhat ~]$ ssh 192.168.1.100 -l root
ssh: connect to host 192.168.1.100 port 22: No route to host
[X@redhat ~]$ ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
From 192.168.1.109 icmp_seq=1 Destination Host Unreachable
From 192.168.1.109 icmp_seq=2 Destination Host Unreachable
From 192.168.1.109 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.1.100 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4427ms
pipe 3
[X@redhat ~]$

Last edited by scarletxfi (2010-07-19 02:48:10)

Offline

#2 2010-06-20 08:22:39

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

Re: [SOLVED] idle headless arch, disables wired lan

more info :

dmesg before drop

Jun 20 00:58:18 Archer init: Entering runlevel: 3
Jun 20 00:58:18 Archer dhcpcd: version 5.2.2 starting
Jun 20 00:58:18 Archer dhcpcd: eth0: rebinding lease of 192.168.1.102
Jun 20 00:58:18 Archer dhcpcd: eth0: acknowledged 192.168.1.102 from 192.168.1.1
Jun 20 00:58:18 Archer dhcpcd: eth0: checking for 192.168.1.102
Jun 20 00:58:23 Archer dhcpcd: eth0: leased 192.168.1.102 for 86400 seconds
Jun 20 00:58:23 Archer dhcpcd: forking to background
Jun 20 16:04:36 Archer kernel: Initializing cgroup subsys cpuset

syslog

Jun 20 00:54:40 Archer syslog-ng[2173]: syslog-ng shutting down; version='3.1.1'
Jun 20 00:58:18 Archer syslog-ng[1431]: syslog-ng starting up; version='3.1.1'
Jun 20 16:04:36 Archer syslog-ng[1443]: syslog-ng starting up; version='3.1.1'
Jun 20 16:10:10 Archer syslog-ng[1443]: Termination requested via signal, terminating;
Jun 20 16:10:10 Archer syslog-ng[1443]: syslog-ng shutting down; version='3.1.1'
Jun 20 16:10:45 Archer syslog-ng[1432]: syslog-ng starting up; version='3.1.1'

kernel.log

Jun 20 00:58:18 Archer kernel: e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
Jun 20 00:58:18 Archer kernel: e100: Copyright(c) 1999-2006 Intel Corporation
Jun 20 00:58:18 Archer kernel: e100 0000:05:08.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
Jun 20 00:58:18 Archer kernel: [drm] set up 15M of stolen space
Jun 20 00:58:18 Archer kernel: [drm] initialized overlay support
Jun 20 00:58:18 Archer kernel: e100 0000:05:08.0: PME# disabled
Jun 20 00:58:18 Archer kernel: e100: eth0: e100_probe: addr 0xf8900000, irq 20, MAC addr 00:08:02:c2:53:99
Jun 20 00:58:18 Archer kernel: No connectors reported connected with modes
Jun 20 00:58:18 Archer kernel: [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
Jun 20 00:58:18 Archer kernel: EXT4-fs (sda4): mounted filesystem with ordered data mode
Jun 20 00:58:18 Archer kernel: Adding 265064k swap on /dev/sda2.  Priority:-1 extents:1 across:265064k 
Jun 20 00:58:18 Archer kernel: e100: eth0 NIC Link is Up 100 Mbps Full Duplex
Jun 20 16:04:36 Archer kernel: Initializing cgroup subsys cpuset

messages

Jun 20 00:58:18 Archer init: Entering runlevel: 3
Jun 20 00:58:18 Archer dhcpcd: version 5.2.2 starting
Jun 20 00:58:18 Archer dhcpcd: eth0: rebinding lease of 192.168.1.102
Jun 20 00:58:18 Archer dhcpcd: eth0: acknowledged 192.168.1.102 from 192.168.1.1
Jun 20 00:58:18 Archer dhcpcd: eth0: checking for 192.168.1.102
Jun 20 00:58:23 Archer dhcpcd: eth0: leased 192.168.1.102 for 86400 seconds

if needed i will provide more info.

Offline

#3 2010-06-22 12:43:48

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: [SOLVED] idle headless arch, disables wired lan

since even ping stops after your disconnection, it means that the problem can either be a firewall setting, or a faulty ethernet card or even a bad ethernet wire. it could also be dhcpcd itself loosing the leases, try setting your system to a static ip.

Offline

#4 2010-06-23 06:08:04

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

Re: [SOLVED] idle headless arch, disables wired lan

changed cables, same thing.

I set static IP and that does'nt help either.

[X@redhat ~]$ ssh 192.168.1.102 -l root
root@192.168.1.102's password: 
Last login: Wed Jun 23 15:42:57 2010 from 192.168.1.109
Archer
[root@Archer ~]# date
Wed Jun 23 15:51:10 EST 2010
[root@Archer ~]# Timeout, server not responding.
[X@redhat ~]$ date
Wed Jun 23 16:02:32 EST 2010

dmesg (had to reset):

Jun 23 15:51:01 Archer init: Entering runlevel: 3
Jun 23 15:51:01 Archer crond[1459]: /usr/sbin/crond 4.4 dillon's cron daemon, started with loglevel info
Jun 23 16:03:53 Archer syslog-ng[1485]: syslog-ng starting up; version='3.1.1'

Last edited by scarletxfi (2010-06-23 06:10:05)

Offline

#5 2010-06-23 13:31:54

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

Re: [SOLVED] idle headless arch, disables wired lan

fixed with adding "acpi=off noacpi" to GRUB options

thanks for the help.

Offline

#6 2010-07-18 10:12:57

h2vnteam
Member
From: Saigon - vietnam
Registered: 2009-09-23
Posts: 10
Website

Re: [SOLVED] idle headless arch, disables wired lan

Wow, that does the trick scarletxfi, I had the same thing, checked the cable and the NIC several times, but still the same, now it's steady.

Thanks for your time experimenting.

Last edited by h2vnteam (2010-07-18 10:13:29)

Offline

#7 2010-07-18 10:58:50

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

Re: [SOLVED] idle headless arch, disables wired lan

experiment with apm. when I have these in the menu.lst, and I issue "shutdown -h now" the computer halts at "powering off".
to fix that add the options:

apm=power-off acpi=off

to menu.lst (ie apm=power-off instead of noacpi )

Offline

#8 2010-07-19 02:32:25

h2vnteam
Member
From: Saigon - vietnam
Registered: 2009-09-23
Posts: 10
Website

Re: [SOLVED] idle headless arch, disables wired lan

I tried your fix last night, but when I left it with poweroff command, the machine hung and refused to shut. Was struggling, but luckily you've just solved the problem so quickly.

All those options scarletxfi has mentioned above, should be landed before "ro" in the menu.lst

Anyway, my student will stop moaning that he cann't shutdown his machine.

Thanks for all the hard work!

Last edited by h2vnteam (2010-07-19 02:33:28)

Offline

Board footer

Powered by FluxBB