LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-24-2008, 03:54 AM   #1
zhoun
Member
 
Registered: Oct 2007
Location: anywhere
Distribution: slackware64 current & win7 64 on thinkpad X61
Posts: 104

Rep: Reputation: 18
Have to login the root from terminal to enable the network


I have a linux Server in IDC, Slackware 12.1
It had a wired problem.

The server occasionally can't be accessed from outside, and ping it from outside with no response.
It seemed that the server is down. But the server is ok and just can't be accessed.
reboot no use.

I have to go to IDC and link the CRT, keyboard to the box, and use root account to login.
After root login, the network ok immediately, and can ping the server from outside.

The problem occurs one or two times per month.
The server has no firewall.

Why i have to login the root from terminal to enable the network?
some ideas?
 
Old 07-24-2008, 11:26 PM   #2
geek745
Member
 
Registered: Jul 2004
Location: Alton, IL
Distribution: Linux Mint; Slackware; Ubuntu; Slax
Posts: 172
Blog Entries: 2

Rep: Reputation: 34
I had a similar problem on SW11.0 with a more recent kernel (2.6.23 or something). This was on a more-or-less workstation-class machine that I use at home as a fileserver. It seemed to be a hardware anomaly (or driver) that the net interface would die after awhile... I'd have to disconnect power from the box for some arbitrary long amount of time (half an hour) to be sure that I drained power from the system; then fire it up again, but I never had to do the root login.

You said that all you have to do when you lose the network on that server is login as root? Not run any commands that re-enable the network? I assume you've tried this a few times to be sure that it's the same behavior... You should look in the shell-based login scripts to see if there is something that root runs when logging in (/root/.profile, .login, .bashrc, .cshrc, etc... ) You need to know which shell root is using to determine which of those scripts are actually run on login. If there is not an obvious network setup step (like calling /sbin/ifconfig eth0 up or dhclient eth0, I might recommend replacing the NIC.

Also, when you find the machine in this disconnected state, after logging in as root, you should check the system logs to see any problems with the network interface dying. dmesg and syslog should be plenty, though there may be another log specific to the network drivers you are using... search for its files under /var/log/ or /usr/var/log or /usr/local/var/log

Finally it might be the driver, which is a part of the kernel, either compiled in or loaded as a module, manually or automatically... check out your kernel build; maybe upgrade.

Good luck!
 
Old 07-25-2008, 05:01 AM   #3
zhoun
Member
 
Registered: Oct 2007
Location: anywhere
Distribution: slackware64 current & win7 64 on thinkpad X61
Posts: 104

Original Poster
Rep: Reputation: 18
geek745, thanks a lot!

I had checked the log and nothing special happened.
I download the BCM driver from official website and use it to replace the default network driver module (tg3) in kernel.

Hope it works.
 
Old 07-25-2008, 05:36 AM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
For what it's worth, you might want to investigate bios-level power off routines. I've seen some motherboards (mostly on the newer boards) and laptops, especially, provide an option to sleep hardware after a period of inactivity to save power. Of course what happens then is they don't wake up through an external network event.

Let us know how it goes,
- Piete.
 
Old 07-29-2008, 10:07 AM   #5
zhoun
Member
 
Registered: Oct 2007
Location: anywhere
Distribution: slackware64 current & win7 64 on thinkpad X61
Posts: 104

Original Poster
Rep: Reputation: 18
I suspect that that's the network driver problem, so i do the following steps:

1. get BCM network driver source tar ball from the official website, use this kernel module to replace the tg3 module.
2. blacklist ipv6
3. use ethtool to turn auto-negotiation off and set the speed to 100M.
4. ping my dns server(run in background) two times every minute.

I have no idea which step works. Anyway, the server up 5 days and everything is ok.
 
Old 07-30-2008, 12:59 AM   #6
zhoun
Member
 
Registered: Oct 2007
Location: anywhere
Distribution: slackware64 current & win7 64 on thinkpad X61
Posts: 104

Original Poster
Rep: Reputation: 18
The problem still there!

Code:
eth0      Link encap:Ethernet  HWaddr 00:15:58:3d:80:59
          inet addr:61.xxx.xxx.xx  Bcast:61.xxx.xxx.xx  Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4758486 errors:16462 dropped:0 overruns:0 frame:5885
          TX packets:3674873 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:736274139 (702.1 MiB)  TX bytes:426047610 (406.3 MiB)
          Interrupt:20
I found that the eth0 has many RX errors.
So i ping to nba.com from the server is ok.
But when i ping the server's ip from my laptop, about 50% packet loss.
So the TX is ok, RX has errors.

Is it the network card driver problem?

The network card is NetXtreme BCM5788 Gigabit Ethernet.
 
Old 07-30-2008, 01:29 AM   #7
vbisis
Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 250

Rep: Reputation: 34
Can you test another ethernet cable?
In my oppinion this sounds like a broken cable.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable remote root login in /etc/securetty jon_k Linux - Software 5 03-16-2011 11:52 PM
how to enable GUI root login in Mandriva? zebra90210 Mandriva 4 03-13-2008 06:20 AM
How to enable root login on 6.06 dapper? Sjonnie48 Ubuntu 6 06-11-2007 08:36 AM
login as root from network terminal Roberto Amucano Linux - Newbie 2 05-26-2005 08:43 AM
Enable root login in wu-ftpd? Sevoma Linux - Software 5 02-04-2005 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration