LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   DHCP doesn't work on slackware13.0 (https://www.linuxquestions.org/questions/slackware-14/dhcp-doesnt-work-on-slackware13-0-a-751293/)

zyli2006 08-30-2009 01:16 PM

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!

markush 08-30-2009 01:39 PM

Hello,

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

Markus

zyli2006 08-30-2009 07:58 PM

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.

lamosa 08-30-2009 08:16 PM

Quote:

Originally Posted by zyli2006 (Post 3663033)
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=""

Cotobear 08-30-2009 08:55 PM

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

mRgOBLIN 08-30-2009 09:05 PM

Don't happen to have any stray .new files hanging around after the upgrade?

Cotobear 08-30-2009 09:24 PM

Personally I just did a fresh install.

lamosa 08-30-2009 09:32 PM

I installed from DVD. Not upgrade.

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


Is It a bug?

mRgOBLIN 08-30-2009 10:00 PM

Quote:

Originally Posted by lamosa (Post 3663371)
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 (Post 3663371)
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.

hitest 08-30-2009 10:05 PM

DHCP working just fine here on Slackware 13.0.

lamosa 08-30-2009 10:17 PM

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

emgee_1 08-30-2009 11:09 PM

Hi, I have the same problem on 13.0 32 bits.
several reinstall and changing to loopback did not help anything

rworkman 08-30-2009 11:33 PM

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.

debuserua 08-31-2009 05:44 AM

Quote:

Originally Posted by zyli2006 (Post 3663033)
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.

lamosa 08-31-2009 07:00 AM

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


All times are GMT -5. The time now is 01:52 AM.