LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   DHCP not working :-( (https://www.linuxquestions.org/questions/slackware-14/dhcp-not-working-428087/)

erpe 03-24-2006 01:07 PM

DHCP not working :-(
 
I can't get my DHCP working. I tried every thing but to no avail. Who can help me?

odevans 03-24-2006 01:12 PM

Quote:

Originally Posted by erpe
I can't get my DHCP working. I tried every thing but to no avail. Who can help me?

Could you be a little less vague please? What have you tried? Do you have the necessary dhcp packages installed?

Did you try the command "dhcpcd eth0" (if eth0 is your NIC)?

Check for the packages with "ls -l /var/log/packages | grep -i dhcp"

Check your NIC is recognised with "ifconfig -a"

erpe 03-24-2006 02:36 PM

dhcpcd eth0 Didn't do anything.

ls -l /var/log/packages | grep -i dhcpgives me:
-rw-r--r-- 1 root root 1809 2006-03-24 20:42 dhcp-3.0.3-i486-1
-rw-r--r-- 1 root root 1500 2006-03-24 20:42 dhcpcd-1.3.22pl4-i486-2

ifconfig -a gives me:
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:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6952 (6.7 Kb) TX bytes:6952 (6.7 Kb)

Hope this helps!

odevans 03-24-2006 02:49 PM

What NIC do you have? It may be that the kernel module (driver) isn't loaded.

dutra2418 03-24-2006 02:55 PM

as root type '/etc/rc.d/rc.inet1 start' and see if that will start it up

erpe 03-24-2006 03:16 PM

/etc/rc.d/rc.inet1 start Doesn't work

I have a Marvel Yukon ethernetcard.

odevans 03-24-2006 03:28 PM

Have you tried Marvell's Linux driver?

http://www.marvell.com/drivers/search.do

urka58 03-24-2006 04:01 PM

First make sure the driver is loaded by your system
dmesg | grep eth0
and
lsmod | grep sk98lin (the name of the driver)
should give you the necessary info.
How did you configure your network ? Did use use netconfig or are trying to configure it manually ?. The second requires you edit your /etc/rc.d/rc.inet1.conf.
Ciao

odevans 03-24-2006 04:09 PM

D'oh, forgot about sk98lin.

If it doesn't show up in lsmod, add it with "modprobe sk98lin".

dunric 03-24-2006 04:23 PM

Code:

ifconfig -a
would also reveal if your NIC is recognized by the kernel.

erpe 03-24-2006 06:03 PM

Quote:

Originally Posted by urka58
First make sure the driver is loaded by your system
dmesg | grep eth0
and
lsmod | grep sk98lin (the name of the driver)
should give you the necessary info.
How did you configure your network ? Did use use netconfig or are trying to configure it manually ?. The second requires you edit your /etc/rc.d/rc.inet1.conf.
Ciao

I used netconfig to setup my dhcp connection. What I don't understand is that slackware is as far as I know the only distro not to support my networkcard. Any thoughts on how this can be?

P.S. Thanks for all the tips!

Alien Bob 03-24-2006 06:20 PM

Quote:

ifconfig -a gives me:
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:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6952 (6.7 Kb) TX bytes:6952 (6.7 Kb)
That clearly shows that the driver for the card is not loaded (or else you would have seen eth0 mentioned).
Have you tried running
Code:

modprobe sk98lin
followed by
Code:

ifconfig -a
to see if that gives you eth0?
Running netconfig and setting up eth0 does not mean that eth0 is thereby ready to go. Configured yes, but loading the driver is either the task of the hotplug subsystem, or you add a "modprobe" command in the file /etc/rc.d/rc.netdevice yourself if hotplug does not recognize the card for whatever reason. That file "rc.netdevice" may not yet exist by the way. If the Slackware installer had recognized your card it would have setup that file for you. So, let's do it now:
Code:

vi /etc/rc.d/rc.netdevice
Add this single line to it:
Code:

/sbin/modprobe sk98lin
And after saving the file, make it executable:
Code:

chmod +x /etc/rc.d/rc.netdevice
Now, try to reboot and see what happens.

Eric

erpe 03-24-2006 06:51 PM

Quote:

Originally Posted by Alien Bob
That clearly shows that the driver for the card is not loaded (or else you would have seen eth0 mentioned).
Have you tried running
Code:

modprobe sk98lin
followed by
Code:

ifconfig -a
to see if that gives you eth0?
Running netconfig and setting up eth0 does not mean that eth0 is thereby ready to go. Configured yes, but loading the driver is either the task of the hotplug subsystem, or you add a "modprobe" command in the file /etc/rc.d/rc.netdevice yourself if hotplug does not recognize the card for whatever reason. That file "rc.netdevice" may not yet exist by the way. If the Slackware installer had recognized your card it would have setup that file for you. So, let's do it now:
Code:

vi /etc/rc.d/rc.netdevice
Add this single line to it:
Code:

/sbin/modprobe sk98lin
And after saving the file, make it executable:
Code:

chmod +x /etc/rc.d/rc.netdevice
Now, try to reboot and see what happens.

Eric

I followed your instructions to the letter, and its working! (I am typing this from my fresh slackware install :) ) Thanks everyone who helped me, now i am going to dug a little deeper into slack :study: :D


All times are GMT -5. The time now is 11:53 PM.