View previous topic :: View next topic |
Author |
Message |
amdat n00b
Joined: 26 Aug 2003 Posts: 5
|
Posted: Sun Aug 31, 2003 8:51 pm Post subject: eth0 fails with dhcp but works with static ip |
|
|
Hello!
I know there are a lot of topics about this failure but I could nowhere find a solution to my special problem.
When I boot my gentoo I get
Failed to bring eth0 up
Error: Problem startig needed services "netmount" was not started
I am using a realtek RTL8139 Fast Ethernet and I am connecting to a router (IP 192.168.1.1)
(I loaded the 8139too modul)
With my Suse Linux 8.2 I connect via DHCP, so I know the dhcp server works.
The problem must be somewhere in my dhcp configs, as I am able to connect to the internet when I use a static Ip ( iface_eth0="192.168.1.6 broadcast 192.168.0.255 netmask 255.255.255.0" and gateway="eth0/192.168.1.1")
But if I use the setting iface_eth0="dhcp" I get this netmount error And I just dont know what to do.
I also tried to call dhcpcd eth0 to get the thing started, but it does not change anything at all.
I tried to get some debug info from the dhcpcd, but I failed to do so.
so here a few infos about my config files:
/etc/resolv.conf: nameserver 192.168.1.1
/etc/hostname: alex
/etc/hosts: 127.0.0.1 localhost
192.168.1.6 alex
/etc/conf.d/net iface_eth0="dhcp"
gateway="eth0/192.168.1.1"
Can anyone help me?
Does anyone need some more further information?
I read about a option -d for dhcpcd to get some debug infos in a log, but I dont know where to find this log (I use metalog) ? Can anyone explain to me, how to get some infos about my dhcpcd?
Alex |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Mon Sep 01, 2003 5:21 am Post subject: |
|
|
I might have your solution.
I am also using dhcp and here are a few things that I am NOT doing.
1. Comment the line gateway="..." in /etc/conf.d/net
If you set gateway, then you need to also set the ip
2. In /etc/hosts the ip of your hostname should be the same with the localhost ip. I do not think that this is important for the net, but I have read that it is necessary if you ever want to set a printer.
All the other are the same with mine.
Let me know how it went |
|
Back to top |
|
|
amdat n00b
Joined: 26 Aug 2003 Posts: 5
|
Posted: Mon Sep 01, 2003 8:56 am Post subject: didnt work at all |
|
|
Hello,
I changed my conf.d/net to iface_eth0="dhcp" and commented the gateway
and my hosts to
127.0.0.1 localhost
127.0.0.1 alex
but that does not change anythig at all. Failed to bring eth0 up Problem netmount was not started
Any further idea? How can I get some more information about what the problem is? Can I tell somehow the rc command to give some debug infos? |
|
Back to top |
|
|
MrPyro Tux's lil' helper
Joined: 14 Aug 2003 Posts: 121 Location: Sheffield, England
|
Posted: Mon Sep 01, 2003 2:54 pm Post subject: |
|
|
1) The netmount error is a consequence of the network not being initialised, not a cause: the netmount command needs net to be running, so the network card not starting causes netmount to fail.
2) Have you checked the logs of the machine running the DHCP server to see if it is receiving a request from your computer? The problem could be server side rather than client side, such as DHCP using MAC addresses to confirm computer identity, and with this machine not having its MAC address set up in the dhcpd.conf file on the server. _________________ Back off man, I'm a computer scientist |
|
Back to top |
|
|
DiskDoc Apprentice
Joined: 25 Apr 2002 Posts: 196 Location: Finland
|
Posted: Mon Sep 01, 2003 10:06 pm Post subject: DHCP error |
|
|
Glad I see someone else has my problem but it's always like that with the forums
I set up a Gentoo system for a girl I know.. Tonight we dragged the machine over to her place and I changed from static to dhcp..commented out the static config line and the gateway, enabling the dhcp-line.
Bringing up the network should have worked just fine but it didn't. I looked at /var/log/everything/current and found lots of errors from the dhcpcd daemon.. something about SIOhmm..can't remember. Maybe someone else could check the log, I can't get to it now. I thought I'd remove the "packet socket: mmapped io" and "use PIO instead of MMIO" from the kernel settings and recompile but there wasn't time for it tonight.
Sidenote: the machine is a K6-II 350 with 192Mb RAM but the SIS530 chipset is really dragging things down, especially graphics I think. I'm planning to change to Mandrake once version 9.2 is released and I get a harddisk for her. I want her to be able to handle the system on her own in case I ever fall out of the picture. _________________ "So slay me now! I have little magic left."
- Kallak, leader of the royal mystics |
|
Back to top |
|
|
|