You are not logged in.

#1 2009-12-17 20:04:16

rtx
Member
Registered: 2009-10-31
Posts: 5

dhcp runs without errors but no IP address assigned

Couldn't find an answer to this elsewhere. After /etc/rc.d/network is started, dhcp asks for lease, seems to get it properly and I can see the acknowledgment + IP address assigned by router. Dhcpcd ends by saying

"dhcpcd: eth0: MTU set to 1492"

However, when I try

 ifconfig eth0

, I don't see the ip address, or anything else like broadcast, gw, or netmask
then, expecting "FAIL" I try

 "ping google.com"

, and it meets my expectations!

Next thing I tried:

ifconfig eth0 xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.xxx

and

route add default gw xxx.xxx.xxx.xxx

My rc.local file:

/sbin/dhcpcd -k eth0

rc.conf has the following:

DAEMONS=(syslog-ng network)

I previously had networkmanager and used it via nm-applet under gnome, and it worked fine. I recently uninstalled all that and am interested in working on the command line only...much like I use freebsd (which never gave any such problems in my last 2 years of using it)

P.S. The rc.conf file is not well documented IMHO....what are the various flags for? how many options for variables like DHCP_ARGS are, and what do they all mean? All I see is stuff like  "set DHCP_ARGS=to -q" or change it to -R etc. which are not documented in the dhcpd man page.
Jeez Arch, I really love you guys, but sometimes I prefer FreeBSD

Offline

#2 2009-12-20 22:34:48

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: dhcp runs without errors but no IP address assigned

could you post the NETWORK section of your /etc/rc.conf?


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#3 2009-12-23 08:02:59

jcolinzheng
Member
From: Cambridge, MA
Registered: 2008-08-06
Posts: 50
Website

Re: dhcp runs without errors but no IP address assigned

I had the same problem today.  Examining the dhcpcd log, the carrier is lost once dhcpcd sets the MTU.  A temporary fix is

dhcpcd eth0 --nohook mtu

Looks like an upstream bug?

Offline

#4 2009-12-23 12:24:09

b3nny
Member
From: Leuven, Belgium
Registered: 2009-07-30
Posts: 3

Re: dhcp runs without errors but no IP address assigned

Had the same problem, and apparently it was due to changes in /etc/dhcpcd.conf

These were the changes:
option classless_static_routes -> added
option interface_mtu -> uncommented

Offline

#5 2010-03-30 04:56:04

Alkali
Member
From: United States
Registered: 2006-06-01
Posts: 10

Re: dhcp runs without errors but no IP address assigned

I hate to bump an old topic but I was reading jcolinzheng response to this question and I'm wondering where to add the --nohook mtu option to?  I checked my dhcpd.conf and the rc.conf but I couldn't quite place where to add the option.  Also, my dhcpd.conf has both lines uncommented the b3nny mentions and I'm occasionally getting a eth0 carrier lost message when my internet usage is high.


"If this ends with the both of us dying in a giant explosion killing a Reaper, just remember. I took the kill shot." - Garrus Vakarian

Offline

Board footer

Powered by FluxBB