LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-18-2003, 09:01 PM   #1
ummmm....
LQ Newbie
 
Registered: Dec 2003
Location: Central FL
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
slack 9.1 and dhcp


I am having problems getting dhcp to work on a new install (this doesn't seem uncommon from what I've read). I've tried everything I've found so far to fix it but to no avail. I have Slackware 9.1 (full install) with a 3c905x network card. My router is serving as the dhcp server. I have two WinXP machines on the same network and both work fine. I had this machine working with 9.0 running a sof2 server before with no problems. I've tried netconfig several times, nothing. I've tried manually editing rc.inet1, resolv.conf, and others I cannot think of. When booting I get:

dhcpcd: MAC address = (myMACaddress)
dhcpcd[71]: broadcasting DHCP_DISCOVER

dhcpcd[71]: timed out waiting for a valid DHCP server response

This is what I get when I run ifconfig:

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

and if I run ifconfig eth0 up i get:

eth0 Link encap:Ethernet HWaddr 00:50:04:E3:3D:24
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:2
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:1180 (1.1 Kb)
Interrupt:10 Base address:0xd800

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

I tried forcing an ip on eth0 (192.168.0.5), but when I attempted to ping another computer(192.168.0.2) on the network, it pinged itself (192.168.0.5).

What else can I try? This is becomming annoying.
 
Old 12-19-2003, 12:35 AM   #2
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
( post #22) mark_booze

Well team, you will be glad to hear that I am typing this on my linux box. I found the DHCP configuration on a freeBSD site (www.freebsd.peon.net/quickies/14/) It is buried in etc/sysconfig/network-scripts/ifcfg-eth0. It seemed to require a re-boot (I thought linux didn't need those) to enable connection, but it seems fine now.

-------------------------
that information may help, it may help to search for and read that entire thread. if not keep posting...
 
Old 12-20-2003, 12:04 AM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
I don't think a reboot is required.

Maybe restarting the service or interface would be required.
 
Old 12-20-2003, 12:09 AM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
ummmm...

It sounds like you need to set a default gateway along with the ip address
Code:
ifconfig eth0 192.168.0.5
route add default gw 192.168.0.1
also the nameservers need to be added to /etc/resolv.conf
Code:
nameserver 192.168.0.1  # your dns server ip

I'm not sure what's in Slack these days but maybe this will work
Code:
dhclient eth0
or
Code:
dhcpcd eth0
 
Old 12-20-2003, 10:51 AM   #5
ummmm....
LQ Newbie
 
Registered: Dec 2003
Location: Central FL
Distribution: Slackware
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the help. I entered dhcp -G 192.168.0.1 and all is well now. I guess it just needed some help finding the gateway. It now works even after a reboot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need to setup DHCP on Slack 10 eosophobia Linux - Networking 1 09-15-2004 11:49 AM
slack 10... dhcp problems and a few other misc questions dissolved soul Slackware 3 08-05-2004 03:43 PM
DHCP Not Working With Slack 10 AFI_Flame Slackware 2 06-26-2004 01:33 PM
dhcp config help on slack 9.1 (default) sqn Slackware 5 05-07-2004 06:09 AM
Running DHCP at system startup on Slack 9.1 rcsuk Slackware 4 04-11-2004 09:13 AM


All times are GMT -5. The time now is 03:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration