LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2005, 03:41 PM   #1
MJatIFAD
LQ Newbie
 
Registered: Aug 2003
Posts: 28

Rep: Reputation: 15
Unhappy Need to setup eth0 again after every reboot


My Mandrake 10.1 has been serving as gateway/firewall on my Lan without problem until I installed a new eth1 network card, which works fine, but I have problems with eth0, which is my Internet connection. However, I need to setup eth0 after every reboot before my Internet conncetion works again. It simply fails to initialize during boot (it uses dhcp). If I turn "hot plugging" off it starts to tell me that it is activated, but it isn't when I try to connect. I am just setting up the network connection again everytime because that is the only way I now, how to make it work again.

Any Ideas what could cause this?

Help is tremendously appreciated.
 
Old 10-29-2005, 08:14 PM   #2
wrw3
LQ Newbie
 
Registered: Aug 2003
Location: Dallas, TX
Distribution: RH
Posts: 16

Rep: Reputation: 0
eth0 fails to configure

MJ:

caveat: I'm not an expert here, but the following strikes me as a logical approach to troubleshooting your current situation.

Have you confirmed that your dhcp client is still running? Perhaps you configured it off when installing and setting up eth1?

Less likely a problem would be the dhcp server, which I presume is running in your ISP's modem.

Check your boot messages to see that your gateway machine is requesting and receiving a dhcp lease. Where is the transaction breaking down?

As root,
Code:
grep dhclient /var/log/syslog
should dump the transactions.

You should see DHCPREQUEST messages followed by DHCPACK acknowledgements, followed by messages binding the delivered addr to eth0.

Hope this helps....

Walt
 
Old 10-30-2005, 04:29 AM   #3
MJatIFAD
LQ Newbie
 
Registered: Aug 2003
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks a lot for the reply.

The log is full of these messages:
....
Oct 30 10:56:40 augustus dhclient: DHCPREQUEST on eth0 to 80.166.139.21 port 67
Oct 30 10:56:40 augustus dhclient: DHCPACK from 80.166.139.21
Oct 30 10:56:40 augustus dhclient: bound to 82.93.131.42 -- renewal in 1657 seconds.
....

I am not sure it has something to do with dhcp since it seems to work. I noticed something else:

My command prompt usually always displays my server name e.g.

[root@augustus]

but currently is uses a name supplied by the dhcp server of the ISP:

[root@0x523f675b.slnxx3.adsl-dhcp.tele.dk]

This means that eth0 is not getting the correct domain name. However, I do not know if this is has anything to do with my problem. I use a different domain name in my server configuration than the one provided by the ISP.

I am currently clueless and I am just trying out different things.
 
Old 10-31-2005, 01:02 AM   #4
kenwih
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
i believe you want to add some lines to the /etc/rc? to get it to automaticaly run when entering ? runlevel. you should be able to do it with some sort of command as well(rc-update add * default for gentoo), but i don't know what that is in mandrake

Last edited by kenwih; 10-31-2005 at 01:06 AM.
 
Old 11-01-2005, 11:10 AM   #5
MJatIFAD
LQ Newbie
 
Registered: Aug 2003
Posts: 28

Original Poster
Rep: Reputation: 15
The problem is caused by the new network card, which is a TrendNet TEG-PCITXR that uses the Realtek 8169 chip for gigabit. After I reinstalled the old card everything worked immediatelly again without that I had to do anything. The driver that came with the card only supported the 2.4.x kernel but I use the 2.6.x kernel. It seems that my kernel used the 8139 driver for the 8169, which seems strange but I might be mistaken. I then tried to install a new driver that I downloaded from realtek's site but that did not work at all. Now I am trying to upgrade the kernel to the one used in Mandriva 2006 to see if it supports the card.

Does anyone have experiences with this card in Mandrake/Mandriva distriution?
 
  


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
I need to reboot to make eth0 work. why? ccico Linux - Networking 9 10-11-2005 04:12 AM
eth0 config auto ;;;;reboot hermouche Ubuntu 1 09-10-2005 09:35 AM
Reboot LFS6.1:Interface eth0 doesn't exist! ukyo Linux From Scratch 4 09-07-2005 06:04 AM
eth0 configuration reset after reboot ChillyWillie Linux - Networking 1 05-31-2005 09:21 PM
eth0 (and eth1) lost on reboot larsonse Slackware 3 10-12-2004 03:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:01 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