LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-18-2004, 05:54 PM   #1
bruj3w
Member
 
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Rep: Reputation: 30
dhcp problem in slackware 10


i've asked this question before, but i'll ask agian in the hope someone can shed some new light on it.

im running slackware 10 and cant get an ip address from my isp for either one of my nic's via dhcp.

my rc.inet1.conf has the dhcp attribute set to 'yes', and when i ./rc.inet1 the dhcp client displays the mac address for both my card but does not manage to get an address from my isp.

i've also used the netconfig tool, but have not had any luck with that either. i dont need to pass any other information about my net connection.

my windows / redhat machine has no problem getting an address from my isp via dhcp. i have tried the nic from that machine in my slackware box with no luck . static address work fine.

is there something fundamental i'm missing? as i've run out of options
 
Old 07-18-2004, 08:19 PM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
How many NICs do you have in the machine?
The one first initialized by the kernel will be eth0 and the second, eth1 if you have more than one.

try this sequence of commands
Code:
killall dhcpcd
ifconfig eth0 down
dhcpcd eth0
ifconfig eth0
mii-tool
ping www.google.com
First, we kill any running instance of the dhcp client daemon.
Then, we bring eth0 down.
Next, we try manually running the dhcp client on your card, and we verify whether or not you got an IP through it.
If dhcpcd eth0 command hangs for a while, there's the rub...
Next, we run mii-tool to see how the link is on your card to your router/modem. Not all cards or drivers are mii enabled, so this may not work.
Finally, we ping google to see if our connection is up and running



See where this gets you.

--Shade

Last edited by Shade; 07-18-2004 at 08:21 PM.
 
Old 07-19-2004, 01:13 PM   #3
bruj3w
Member
 
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Original Poster
Rep: Reputation: 30
i've tried that, or something very similar 100's of times before with no luck, thanks though.

i did a quick install of debian today and had no luck with that either.

i also, as a last gasp attepmpt, stuck redhat9 on there and used the nic from my machine that works and that still didnt work.

im all confused, i cant see a reason that would stop it from working. but it obviously isnt a slackware problem.
 
Old 07-19-2004, 02:28 PM   #4
gensis
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware, Suse, Red Hat, Fedora
Posts: 28

Rep: Reputation: 15
i dunno if u have tried this or not, swap a different nic card out, and check<cat /proc/pci> it could be either a nic hardware failure or your disto did not detect the right nic card.

All fails install windows and trouble shoot from there.
i think its your nic gone bad.
 
Old 07-19-2004, 02:31 PM   #5
bruj3w
Member
 
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Original Poster
Rep: Reputation: 30
i've tried 3 different nics, including one that i know it works fine on. i tried listing the pci cards that way before, and everything seems fine. lsmod seems right too.

both cards work fine with static address's though.

 
Old 07-19-2004, 05:35 PM   #6
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
I am no expert on networking, but I guess you will listen to suggestions from anyone!

It strikes me that dhcpd or its config must be to blame, if a fixed ip address works ok.

so could you confirm that dhcpd is running? If it is sitting there waiting to be granted a lease, then I think it should be listening like this:

root@darkstar:/home/toby# lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
dhcpcd 819 root 4u IPv4 2353 UDP *:bootpc

is this the case on your system?

Also, have you got a firewall running, if so could it be blocking the above?

My rc.inet1.conf starts:

# Config information for eth0:
IPADDR[0]="127.0.0.1"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

I am not saying this is correct, just that it works for me, is yours similar?

I had to install iproute2 which was not installed by default (several versions ago), you may need this if you dont have it already.

Finally, if your redhat box works ok, could you not scour the config files for clues as to what is different? (oops, I guess you already did that)

tobyl
 
Old 07-21-2004, 06:15 AM   #7
bruj3w
Member
 
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Original Poster
Rep: Reputation: 30
yeah, i looked for clues in redhat, but found nothing.

as a last gasp attempt i took the nic from my xp /redhat xo and put it in the slackware box and then put redhat 9 on it, so it was just the same setup as my main box, but this didnt work either.

im all outta ideas :/
 
Old 07-21-2004, 06:32 AM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Did you run netconfig in slackware ? Could you post your rc.inet1.conf ?
 
Old 07-22-2004, 11:01 AM   #9
juxstapose
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
I am having the same exact problem. My Setup was behind a wireless router and it worked fine.
I moved it and connected the cable modem connected directly to my NIC and now I cannot get internet via dhcp.

dmesg | grep eth0 shows and lspci show the hardware drivers are recongnized.
mii-tool shows that eth0 is on my card

But when I try to obtain an ip lease dhcpcd hangs and I cannot get an ip.

I am running Slackware 10 and I have tried all the above suggestions as well. netconfig, etc.

Any ideas why my wireless router would give me an ip via dhcp but not my cable modem directly?
 
Old 08-17-2004, 10:18 PM   #10
karlan
Member
 
Registered: Aug 2003
Location: San Francisco, California
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
I too am having the same problem, rc.inet1.conf is very bare except for DHCP=yes.
When i upgraded from 9.1 to 10.0, no problem. But when i used all the .new config files, shit started to break.
 
Old 08-18-2004, 06:04 AM   #11
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
If you are plugging a machine with slack directly to an ISP PPOE install RoPPOE (roaring penguin) the ppoe client.
Other distros and windor use a WAN mini-port for these connections by default.....
Slack needs one thus RoPPoe....
 
Old 09-06-2004, 02:40 PM   #12
karlan
Member
 
Registered: Aug 2003
Location: San Francisco, California
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
I found out a while back that you just have to edit /etc/rc.d/rc.inet1.conf and add in some address. I have a comcast cable modem to connect to, this is mine:
Code:
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]="255.255.255.0"
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="192.168.1.100"

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY=""

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
Sorry for the late reply, but I still this will help someone googlin away.

Last edited by karlan; 09-06-2004 at 02:41 PM.
 
Old 09-21-2004, 06:28 PM   #13
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Rep: Reputation: 15
Quote:
Originally posted by Shade

Code:
killall dhcpcd
ifconfig eth0 down
dhcpcd eth0
ifconfig eth0
mii-tool
ping www.google.com
thanks.. that got my internet up and running. my card did not support mii-tool
 
  


Reply



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
Gateway / DHCP Server problem on Slackware captain_bogus Linux - Networking 11 11-25-2008 01:28 PM
slackware and dhcp realcr Linux - Networking 1 09-11-2005 05:35 AM
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 09:34 AM
slackware 9.1 dhcp problem d4nr Linux - Networking 1 05-24-2004 06:16 PM
Network not working, slackware 9.1 (DHCP problem?) Havox Linux - Networking 5 11-05-2003 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:53 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
Open Source Consulting | Domain Registration