LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-14-2004, 06:15 PM   #1
endersdouble
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Rep: Reputation: 0
Slackware 10.0 networking--network card not picking up IP address


Hey, I have a slack 10 installation. Seems to be working fine...but I plugged it into my network, and I can't get it to work.
I ran the network setup thing that Setup itself ran, but wasn't sure what to put in for domain, name, etc, so I used arbitrary values (hfl for both. the name is what I want it to be, I have no idea what to do w/r/t the domain...is it like my windows workgroup?)...I'm just running a simple home network, DHCP on a D-link DI-524. My 2 windows computers aren't having any trouble, so I think the network isn't the problem.

When I hit the commandline as root and run "ifconfig", only lo shows up. If I run "ifconfig -a" lo and eth0 shows (my ethernet card is something like a Kingston kne-100tx or the like. Not sure off the top of my head, but eth0 exists, so I don't think that's the problem.)

Eth0, as shown by "ifconfig -a", has no IP address--not 0.0.0.0 as the linux wiki suggested might happen, but none at all.
the ifconfig entry looks *something* like this. (this was just copy/pasted from the wiki with the relevant lines removed, so not actually.)
eth0 Link encap:Ethernet HWaddr 00:90:F5:03:4B:69
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:911573 errors:0 dropped:0 overruns:0 frame:0
TX packets:656393 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:604721438 (576.7 Mb) TX bytes:58964684 (56.2 Mb)
Interrupt:10 Base address:0xf000

I tried pinging my router's IP (192.168.0.1), but got a "network is unreachable" error.

What am I doing wrong, and how can I fix it? What should I put in for my domain? How can I get the box to hit my router, pick up dhcp, and reach the internet? Thanks.
 
Old 10-14-2004, 08:56 PM   #2
Oderus
Member
 
Registered: Sep 2004
Posts: 52

Rep: Reputation: 15
try ifconfig etho up
if you then type ifconfig and you see lo and eth0 .. try this.
dhcpcd eth0

Does the link light show up on your router when you type ifconfig eth0 up?
Does your router support 10 and 100? Does the card as well? Have you swapped network cables?
 
Old 10-14-2004, 09:04 PM   #3
endersdouble
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
A friend of mine gave me some help...I seemed to have gotten it up with a static IP address by typing...
ifconfig eth0 192.168.0.200 broadcast 192.168.0.255 netmask 255.255.255.0
followed by...
then route add -net default gw 192.168.0.1 netmask 0.0.0.0 eth0
and adding my comcast nameserver to /etc/resolv.conf
Don't know if this is the best solution, but it seems to work...I can load websites, the like........anything else I should do? (I seem to remember hearing something about /etc/rc.d/rc.inet1 or the like w/r/t getting this to work after a reboot....am I correct?
 
Old 10-14-2004, 09:23 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Well you can do two things now, or configure /etc/rc.d/rc.inet1.conf to put the ip for you or put the ifconfig command in /etc/rc.d/rc.local.
 
Old 10-15-2004, 03:38 AM   #5
phase9
Member
 
Registered: Mar 2004
Location: austria, vienna
Distribution: slackware-10.2
Posts: 89

Rep: Reputation: 15
Hi!

I am having the same problem. After booting Slack-10.0, the eth0 gets no IP adress from the my Router (Netgear FR114P) and there is the same "network is unreachable" error message.
But after manually running '/etc/rc.d/rc.inet1 restart' (as root) eth0 gets a proper IP adress.

For now I have put the folllowing line to /etc/rc.d/rc.local: '/etc/rc.d/rc.inet1 restart' and now everything is right. This seems to be a Slack-10.0 problem only, because neither Slack-9.1 nor Win2000 did make any problems.
 
Old 10-15-2004, 09:17 AM   #6
Oderus
Member
 
Registered: Sep 2004
Posts: 52

Rep: Reputation: 15
phase9: same here. I had created a batch file wirelessh and wirelessw (home and work) with different keys and settings so I could run them manually.. wirelessh runs by default and all is well.

I wonder if it's a timing issue .. something isn't loading quick enough so dhcpcd times out only to work later?
 
Old 10-15-2004, 10:02 AM   #7
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Probably the timeout set by Slackware rc.inet1 script is too short. You can edit the /etc/rc.d/rc.inet1 script to change that. The default is 10 secs.
Code:
Look for this line:

/sbin/dhcpcd -d -t 10 -h ${DHCP_HOSTNAME[$1]} eth${1}

Change that for example to:

/sbin/dhcpcd -d -t 30 -h ${DHCP_HOSTNAME[$1]} eth${1}
That should give the dhcp server more time to respond to the DHCP request.
 
Old 10-20-2004, 12:07 PM   #8
phase9
Member
 
Registered: Mar 2004
Location: austria, vienna
Distribution: slackware-10.2
Posts: 89

Rep: Reputation: 15
Hi!

Oderus and rotvogel: It seems you both where right about the timing issue with dhcpd.
I changed, as rotvogel suggested, the timeout to 30s and the problem didn't occur anymore when starting slack-10.0

Thanks to both of you.
 
  


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
Changing Mac Address on Network Card? neopiper Linux - Networking 10 11-21-2007 02:14 AM
suse 9.1 network card setup with fixed ip address reinhard Linux - Networking 11 06-23-2004 01:11 PM
Wireless Network card DHCP wont get address debugging and troubleshooting help uuplunkeruu Linux - Wireless Networking 2 03-27-2004 04:08 PM
Problem activating network card with no IP address Olusegun Linux - Networking 1 12-30-2002 03:38 PM
help: network card seems to work, but can't get ip address via dhcp. aidano Linux - Networking 1 10-30-2001 11:27 PM

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

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