LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2009, 11:12 AM   #1
drydo
LQ Newbie
 
Registered: May 2009
Posts: 27

Rep: Reputation: 16
Loses network connectivity on boot...


Hi

I'm running a deiban live-cd (with persistance) running on Lenny but for some reason my LAN connection isn't working correctly. When the machine first boots up it flashes up with...

Quote:
hotlink (?) : renamed network interface eth0 to eth1
...which I'm guessing is just reassigning that device ID - although from my searching 'ETH0' should be the default port / device assignment. If I perform a 'ifconfig' I get the following...

Quote:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
...with a dmesg | grep eth I get the following...

Quote:
[ 3.600418] eth0: RealTek RTL8139 at 0xf200, 00:21:97:97:08:6f, IRQ 17
[ 3.600476] eth0: Identified 8139 chip type 'RTL-8100B/8139D'
[ 11.243499] Driver 'sd' needs updating - please use bus_type methods
[ 49.305698] udev: renamed network interface eth0 to eth1
...and if I run 'mii-tool eth0' I get...

Quote:
SIOCGMIIPHY on 'eth0' failed: No such device
and 'mii-tool eth1' gives...

Quote:
SIOCGMIIPHY on 'eth1' failed: Invalid argument
But if I run 'dhclient eth1' - it either a) refreshes or b) invokes DCHP assigns itself a IP address and works fine.

Of course, what I want is for the device to bootup in a ready and working mode rather than jumping through hoops. From the looks of things it is reassigning itself from eth0 to eth1 (why though?) and not properly configuring the itself or firing DHCP? I've tried setting a static address but that didn't do anything and to be quite frank I'm a linux newbie in all this and feeling lost again.

Can anyone point me in the right direction?

M
 
Old 08-10-2009, 12:12 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,613

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
drydo:

Have you ascertained the system uses the right nic card driver?
 
Old 08-10-2009, 12:18 PM   #3
drydo
LQ Newbie
 
Registered: May 2009
Posts: 27

Original Poster
Rep: Reputation: 16
AFAIK, it reports the matching driver and its the correct one. Plus I'm guessing that when the 'dhclient eth1' is executed if I had the wrong driver it would choke on that? + There's only one on-board NIC.
 
Old 08-10-2009, 12:47 PM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
You can use an udev rule to make it stick to eth0 http://www.debianhelp.co.uk/udev.htm
 
Old 08-10-2009, 01:47 PM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,613

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
drydo,

try again: --#: ifconfig -a
If eth0 or eth1 are not present, like the which you have posted above, there is big chance that the card is not mounted properly in the system.

to counter check:
try examine --#: cat /proc/net/route [find out which is what]
also try ----#: cat /proc/net/arp [which is using what number]

the obstacle maybe lies in the fact that your system is run from CD there is no way we can employ a final fix that guarantees to run the next boot. Unless maybe if you will finally install this debian into the hard drive. You will need extra hop each time you wanted to go online through the NIC, except when your new configuration is burned into another cd wherein you availed the udev rule solution into the new cd.

HOnestly I gave time to ponder over the problem, but since I am not a guru my capability to help you is only limited to that.

Overall, if the NIC driver is good (is it normal to report IRQ 17 in Linux?), and the hardware connection is healthy, then it is the CD, not your machine.

hope this helps.

good luck.

may a guru come to help you.
ameyn.
 
Old 08-11-2009, 05:52 AM   #6
drydo
LQ Newbie
 
Registered: May 2009
Posts: 27

Original Poster
Rep: Reputation: 16
Well I managed to crack and you both put me on the right path. Here's how I sorted it...

I pretty much agreed with malekmustaq that the device wasn't being mounted correctly and was being a pest but I was fumbling about until I read the link that makuyl posted. I had a nose into the /etc/udev/rules.d directory and found that the file '70-persistent-net.rules' files was referencing four different MAC addresses and assigning the real mac address to eth1. I commented out the other 3 lines referencing the other mac address and reset the line to eth0. Rebooted and hey presto I've got internet connectivity!

+ I'm running live-cd from a usb key so the change was proven straight away.

Thank you both for pointing me in the right direction...
 
Old 08-11-2009, 07:01 AM   #7
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,613

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
drydo,

Congratulations! you got it right.

Q--"+ I'm running live-cd from a usb key so the change was proven straight away."

Reply: Ow! yea I didn't notice its a USB I thought twas a CD. Right on of course. Good Luck!
 
  


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
LXer: A response to Patrick Durusau: Who Loses If OpenXML Loses? LXer Syndicated Linux News 0 03-26-2008 12:50 PM
LXer: A response to Patrick Durusau: Who Loses If OpenXML Loses? LXer Syndicated Linux News 0 03-26-2008 10:20 AM
LXer: A response to Patrick Durusau: Who Loses If OpenXML Loses? LXer Syndicated Linux News 0 03-26-2008 09:20 AM
LXer: A response to Patrick Durusau: Who Loses If OpenXML Loses? LXer Syndicated Linux News 0 03-26-2008 06:21 AM
Smoothwall 1.0 loses connectivity after an hour mdkelly Linux - Networking 5 06-03-2003 11:28 AM


All times are GMT -5. The time now is 04:55 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration