LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-30-2009, 01:16 PM   #1
zyli2006
LQ Newbie
 
Registered: May 2009
Posts: 15

Rep: Reputation: 0
DHCP doesn't work on slackware13.0


After upgrading to 13.0 from 12.2 following the instructions in UPGRADE.txt, everything worked fine except the DHCP.

I ran netconfig again, and specify the DHCP server address, didn't work.
I modified /etc/rc.d/rc.inet1, changing the time-out time to 30, didn't work.
Then I did a clean installation of slackware 13.0, still didn't work.

Then I ran netconfig again, and using static ip (the last ip I got from the dhcp server), it is working now.

But I still want the DHCP to work. Any hints? Thanks!
 
Old 08-30-2009, 01:39 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello,

please post the eth0-part of your /etc/rc.d/rc.inet1.conf. (if you use a wired network).

Markus
 
Old 08-30-2009, 07:58 PM   #3
zyli2006
LQ Newbie
 
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Before I changed to static ip, it looked like:

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


Now I am using static ip, so its different.
 
Old 08-30-2009, 08:16 PM   #4
lamosa
LQ Newbie
 
Registered: Aug 2009
Distribution: Slackwarex64 13.0
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by zyli2006 View Post
After upgrading to 13.0 from 12.2 following the instructions in UPGRADE.txt, everything worked fine except the DHCP.

I ran netconfig again, and specify the DHCP server address, didn't work.
I modified /etc/rc.d/rc.inet1, changing the time-out time to 30, didn't work.
Then I did a clean installation of slackware 13.0, still didn't work.

Then I ran netconfig again, and using static ip (the last ip I got from the dhcp server), it is working now.

But I still want the DHCP to work. Any hints? Thanks!
I have the same problem. DHCP didn't work.

My rc.inet1.conf (create for command netconfig):

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

.
.
.

# Default gateway IP address:
GATEWAY=""
 
Old 08-30-2009, 08:55 PM   #5
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
Hmm. Interesting. I have a similar problem where DHCP fails to obtain an IP address. I thought it was probably the network I was trying to connect to that was causing problems (in 12.2 there were no problems... but who knows.)

I've tried wicd as well with similar timeout issues. I'm connecting with my wireless card (wlan0). The rc.inet1.conf file looks like this:

IFNAME[4]="wlan0"
IPADDR[4]=""
USE_DHCP[4]="yes"
DHCP_TIMEOUT[4]=30
WLAN_ESSID[4]=ResNet-Open
WLAN_MODE[4]=Managed
WLAN_CHANNEL[4]="auto"

I've tried increasing the timeout to 120 seconds without luck. The network requires no authentication.

Coto
 
Old 08-30-2009, 09:05 PM   #6
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Don't happen to have any stray .new files hanging around after the upgrade?
 
Old 08-30-2009, 09:24 PM   #7
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
Personally I just did a fresh install.
 
Old 08-30-2009, 09:32 PM   #8
lamosa
LQ Newbie
 
Registered: Aug 2009
Distribution: Slackwarex64 13.0
Posts: 5

Rep: Reputation: 0
I installed from DVD. Not upgrade.

Running command "dhclient eth0":
.
.
.
No DHCPOFFERS received.
No working leases in persistent database - sleeping.


Is It a bug?
 
Old 08-30-2009, 10:00 PM   #9
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by lamosa View Post
I installed from DVD. Not upgrade.
Well the OP stated that they upgraded from 12.2 and then did a clean install but others omitted that detail

There is also the chance that some just grab the configs from the previous version and replace them wholesale.


Quote:
Originally Posted by lamosa View Post
Is It a bug?
It's certainly possible, it is however working fine for me and I would assume for many others or this thread would be rather busy by now.

So probably be nice to find something in common for the people having the issue.

dhcpcd gives a lot of info if you set

Code:
DHCP_DEBUG[0]="yes"
in /etc/rc.d/rc.inet1.conf.

Might give a clue as to what is happening.
 
Old 08-30-2009, 10:05 PM   #10
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
DHCP working just fine here on Slackware 13.0.
 
Old 08-30-2009, 10:17 PM   #11
lamosa
LQ Newbie
 
Registered: Aug 2009
Distribution: Slackwarex64 13.0
Posts: 5

Rep: Reputation: 0
I think that really is a bug. I tried other alternatives like running the command "/sbin/dhcpcd -d -T -noipv4ll eth0" and did not work.

The slackware version is x64 13.0

Last edited by lamosa; 08-30-2009 at 10:18 PM.
 
Old 08-30-2009, 11:09 PM   #12
emgee_1
Member
 
Registered: Aug 2009
Location: Nijmegen, The Netherlands
Distribution: Slackware 14
Posts: 42

Rep: Reputation: 6
Hi, I have the same problem on 13.0 32 bits.
several reinstall and changing to loopback did not help anything
 
Old 08-30-2009, 11:33 PM   #13
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
There's a known bug in dhcpcd-3.x that very few people ran across during hte -current cycle, but it was too late to consider an upgrade to dhcpcd-5.0.x. You might consider trying to build and install it instead, but probably it's easier to just try dhclient instead.
 
Old 08-31-2009, 05:44 AM   #14
debuserua
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 1
Quote:
Originally Posted by zyli2006 View Post
After upgrading to 13.0 from 12.2 following the instructions in UPGRADE.txt, everything worked fine except the DHCP.

I ran netconfig again, and specify the DHCP server address, didn't work.
I modified /etc/rc.d/rc.inet1, changing the time-out time to 30, didn't work.
Then I did a clean installation of slackware 13.0, still didn't work.

Then I ran netconfig again, and using static ip (the last ip I got from the dhcp server), it is working now.

But I still want the DHCP to work. Any hints? Thanks!
I had same problem on Slackware 13.0 (32 - bit), but after netconfig I select DHCP when it was suggested and then run dhclient, which version is 3.1.2p1. After this, ifconfig tell me that my eth0 has IP-adress (before that there was), but ping is not go - 60 % packages was lost, maybe it's problem of provider. Then I restart system (should note that all this do on VirtualBox) and FireFox download local sites, but with noticeable delay, but it work!
Sorry for my english - I from Ukraine, and my explaine - I new in Linux and network system.
 
Old 08-31-2009, 07:00 AM   #15
lamosa
LQ Newbie
 
Registered: Aug 2009
Distribution: Slackwarex64 13.0
Posts: 5

Rep: Reputation: 0
I updated the dhcpcd to version 5.0.7 and also tried to use dhclient command. In both cases did not work.

Sorry for my English. I'm Brazilian.

Thanks
Lamosa
 
  


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
slackware13 amd64 + external drive = kernel panic alexiy Slackware 2 08-21-2009 09:17 AM
slackware13-RC1: how to setup up a german keyboard? wingevil Slackware 4 07-04-2009 08:08 AM
New pkg zipping algorithm for Slackware13 ? grissiom Slackware 1 04-14-2009 06:42 PM
DHCP Won't Work Damien295x Linux - Networking 1 10-27-2005 05:40 AM
DHCP.. How does it work ? qwijibow Linux - Networking 1 07-20-2004 03:30 PM

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

All times are GMT -5. The time now is 04:30 AM.

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