Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-03-2005, 09:20 AM
|
#1
|
LQ Newbie
Registered: Oct 2005
Posts: 6
Rep:
|
I need to reboot to make eth0 work. why?
Hi everybody!
I'm not a very experienced user. My dual-boot Debian (sarge) / Win2000 system works just fine, but:
1.
when I boot Linux, eth0 does not work. During boot time, it sends
different DHCPREQUESTS to the dhcp server and finally gives up with
the NO DHCPOFFERS RECEIVED message. In order to make it work,
I reboot the computer - on this second attempt, a DHCPOFFER is
always received with no problem from the dhcp server and eth0 is
brought up all right.
2.
when I boot Win2000 first, the network always works normally.
If I now reboot and choose Linux, eth0 gets the DHCPOFFER as
it should and everything is o.k. again.
I feel silly because when I come to work and want to start right
away with Linux, I need to turn my computer on, wait for it to boot,
then reboot and only then start working.
I thought that the problem was in the communication between the
dhcp server and my computer, so in the file /etc/network/interfaces,
I substituted the line
iface eth0 inet dhcp
with the following:
iface eth0 inet static
address ... blah blah
netmask ... blah blah
gateway ... blah blah
nameservers ... blah blah
where "blah blah" stands for the correct IP addresses.
But everything remained just the same: failure on first boot, success
after reboot.
The ethernet card is a 3Com EtherLink XL Cyclone (3c905B),
the driver I use is 3c59x. My kernel is 2.6.13, comes from kernel.org,
compiled with no problems. The driver is compiled right into the kernel,
not as a module. When I installed Debian, there was a 2.4 kernel in the
installation package, but this problem was already present from the
beginning.
Can anybody help? Thanks a lot in advance.
ccico
|
|
|
10-03-2005, 09:28 AM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
Which dhcp client does debian use?
I am not sure why you're not getting an IP at boot time. But there is no need to reboot. (There is rarely a need to reboot under Linux.)
You could tell whatever dhcp client you're using to send another request to get an IP after you've booted. Or you could use and then
|
|
|
10-03-2005, 11:13 AM
|
#3
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
Most of the servers are controlled in /etc/init.d so in the case of the network you can |start|stop|restart the server by doing as root from a consol /etc/init.d/networking restart. This applies to any of the servers in /etc/init.d
|
|
|
10-03-2005, 11:58 AM
|
#4
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
Are you turning on your modem at the same time as you turn on your PC?
The modem takes time to boot, establish a connection, authenticate etc.
Maybe win boots slowly and the modem has time to settle down, and perhaps linux is interrogating the modem sooner, before it is ready.
If you boot win first, then linux it will work the second time because the modem has had time to get ready.
So, try powering up your modem first, then starting your PC.
HTH
|
|
|
10-04-2005, 04:44 AM
|
#5
|
LQ Newbie
Registered: Oct 2005
Posts: 6
Original Poster
Rep:
|
Hello everybody,
sorry, but nothing has worked. I will try to answer to all your messages:
anomie: I use the DHCP client from version 2 of the Internet Software Consortium DHCP package. This is what I got in the Debian installation CD - the package is named dhcp-client and the version is 2.0pl5-19.1.
I tried to write "ifdown eth0" and the system responded that eth0 was not up, so nothing happened. Then I tried "ifup eth0" and the DHCP
client failed to get an IP address, just like at boot time.
TigerOC: I typed "/etc/init.d/networking restart" but the DHCP client
again failed to get an IP address, just like at boot time.
tredegar: I do not use a modem, the computer is connected to the gateway with an optical fiber. At first, I also thought that the problem
was in the fact that the ethernet card had not been powered up yet
when the computer needed it. But if that was the case, the advices
from anomie or TigerOC would have worked, I guess...
One more observation for you to consider: if I do a HARD reboot
(i.e. with power off), the ethernet card fails to work again. I have to
do a SOFT reboot in order to make it work. In other words, the power
to the computer cannot be interrupted. Only then does eth0 initialize
properly.
Now I realize that I should tell you what the system actually says:
sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:04:76:e6:fc:78
Sending on LPF/eth0/00:04:76:e6:fc:78
Sending on Socket/fallback/fallback-net
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database.
Exiting.
Failed to bring up eth0.
Could you have another look at this problem, please?
Thank you very much,
ccico
|
|
|
10-04-2005, 10:21 AM
|
#6
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
Do you have the line;
auto eth0
in the /etc/network/interfaces?
|
|
|
10-04-2005, 11:28 AM
|
#7
|
LQ Newbie
Registered: Oct 2005
Posts: 6
Original Poster
Rep:
|
Yes, I do. The file contains only 4 lines (except for comments and blank lines). Here it is:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
Regards,
ccico
|
|
|
10-04-2005, 12:11 PM
|
#8
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
I would hazard a guess that what is causing most of your problems is likely to be the ethernet card. Check your log files, dmesg or syslog and find out if the card is borking. If its causing problems get a cheap realtek or similar card. I have a similar problem with one of my laptops that requires a network restart for the pcmcia card.
|
|
|
10-04-2005, 12:26 PM
|
#9
|
Member
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184
Rep:
|
I've noticed a similair problem with SuSE 9.3. If I make any changes to the network card settings such as the SSID, the card will not receive an IP until I reboot the machine. Restarting the network interface doesn't help. I wonder if SuSE and your Debian use the same DHCP client program.
|
|
|
10-11-2005, 04:12 AM
|
#10
|
LQ Newbie
Registered: Oct 2005
Posts: 6
Original Poster
Rep:
|
The problem has been solved. Thank you guys!
I removed the 3Com Fast Etherlink XL PCI card (3C905B - COMBO),
and inserted a 3Com Etherlink XL PCI card (3C900B - COMBO).
This hardware downgrade paid off very well. Note that I did not even need
to recompile the kernel, since both cards use the same driver. Everything started
to work all right automatically.
Many thanks to everybody!
ccico
|
|
|
All times are GMT -5. The time now is 06:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|