LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-11-2012, 03:07 PM   #1
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 130

Rep: Reputation: 32
DHCP not working


Brand new 13.37 (64-bit) system when I attempt to get an IP address via DHCP it looks like it works, but then address is not actually assigned. If I assign it a static address the machine works just fine.

Code:
#/etc/rc.d/rc.inet1 restart

Polling for DHCP server on interface eth0:
dhcpcd[3042]: version 5.2.11 starting
dhcpcd[3042]: eth0: broadcasting for a lease
dhcpcd[3042]: eth0: offered 10.0.0.15 from 10.0.0.2
dhcpcd[3042]: eth0: acknowledged 10.0.0.15 from 10.0.0.2
dhcpcd[3042]: eth0: checking for 10.0.0.15
dhcpcd[3042]: eth0: leased 10.0.0.15 for 77751 seconds
dhcpcd: eth0: MTU set to 576
dhcpcd[3042]: forked to background, child pid 3078

#ifconfig eth0

eth0   Link encap:Ethernet  Hardware 00:31:70:cd:40:d1
       UP BROADCAST MULTICAST  MTU:1500  Metric:1
       RX packets:320 errors:0 dropped:66 overruns:0 frame:0
       TX packets:495 errors:0 dropped:0 overruns:0 carrier:0
       collisions:0 txqueuelen:1000
       RX bytes:43884 (42.8 KiB) TX bytes:52796 (51.5 KiB)
       Interrupt:22 Memory:f6fe0000-f7000000
Also if I stare at the HUB where I'm connected I see the link light going up and down constantly and if I do a dmsg I get the following

Code:
[ 1163.611343] ADDRCONF(NETDEV_CHANGE): eth0 link becomes ready
[ 1168.777803] e1000e 0000:00:19.0: eth0 changing MTU from 1500 to 576
[ 1168.945696] e1000e 0000:00:19.0: eth0 changing MTU from 576 to 1500
[ 1170.755959] e1000e: eth0 NIC Link us Up 100 Mbps Full Duplex, Flow Control: RX/TX
[ 1170.755973] e1000e 0000:00:19:0: eth0: 10/100 speed: disabling TSO
[ 1170.757110] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
...
Any help/ideas will be appreciated.

Last edited by l0rddarkf0rce; 06-11-2012 at 03:20 PM.
 
Old 06-11-2012, 04:18 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,279

Rep: Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052Reputation: 3052
Do you get the same results if you launch dhcpcd manually? e.g.
Code:
#/etc/rc.d/rc.inet1 stop
#ifconfig eth0 up #If needed. Here it isn't.
#dhcpcd eth0
 
Old 06-11-2012, 05:29 PM   #3
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
Have you tried:

Code:
# ifconfig eth0 up
# dhclient eth0
as root?

EDIT: I didn't notice that Didier had posted the same code. Apologies

Last edited by ottavio; 06-11-2012 at 05:30 PM.
 
Old 06-11-2012, 11:10 PM   #4
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 130

Original Poster
Rep: Reputation: 32
Yes I tried that as well with same results. I seem to get an IP address from the server and the system keeps dropping it. Also the part about the interface keeps bouncing up/down constantly (yes I tried a different port on the hub/switch and different cables).
 
Old 06-12-2012, 01:11 AM   #5
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 477

Rep: Reputation: 219Reputation: 219Reputation: 219
From Out in Left Field

FWIW - I learned from past experience to no longer assume the client is the problem. I now restart/reboot DHCP servers and switch to a different DHCP server (and kill duplicate DHCP servers ) before digging too far into the problems with a DHCP client.
 
Old 06-12-2012, 03:00 AM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 2,936

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
That's a really odd MTU size.

Take a look at http://forum.porteus.org/viewtopic.php?f=46&t=905
 
Old 06-12-2012, 02:05 PM   #7
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 130

Original Poster
Rep: Reputation: 32
The problem is definitely on the client. I've plugged it to 3 different networks all with the same result.
 
Old 06-12-2012, 02:09 PM   #8
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 130

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Richard Cranium View Post
That's a really odd MTU size.

Take a look at http://forum.porteus.org/viewtopic.php?f=46&t=905
Agreed it's an odd MTU, but if I assign an IP manually everything works as expected.
 
Old 06-12-2012, 02:37 PM   #9
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 130

Original Poster
Rep: Reputation: 32
i guess setting the MTU manually to 576 worked. this is very odd, I have never seen this behavior on any of Slack machines. can this be related at all with running 64-bit vs 32-bit? the reason i ask, is that this is the first time that i run 64-bit.
 
  


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
DHCP not working swiezy Linux - Networking 10 10-23-2007 03:38 AM
DHCP not working :-( erpe Slackware 12 03-24-2006 06:51 PM
dhcp AGAIN... not working... ploptor1 Linux - Networking 1 03-09-2006 05:46 AM
Cant get DHCP working vMatthews Debian 3 10-07-2005 09:59 PM
DHCP is working but still nothing im_not_jose Linux - Networking 12 07-26-2003 06:51 AM

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

All times are GMT -5. The time now is 09: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration