LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-17-2011, 01:38 PM   #1
/dev/me
Member
 
Registered: May 2008
Distribution: Slackware 13
Posts: 116

Rep: Reputation: 20
New ISP, trouble getting DHCP lease


Hi,

I'm switching ISP's, and right now in transition I have two modems and thus two connections.

The old modem is a cable modem. It still works, although it's probably going to be cut off today or tomorrow.
The new one is a router that provides ADSL over copper (telephony).


My server, that I use as gateway, mail- and webserver is my reliable headless Slackware 13.0 machine, with two NIC's. One NIC I let udev name ethLAN (for the LAN part) and the other ethWAN (for the WAN part).


Now when I have the network cable from ethWAN into the cable modem and I issue `dhcpcd ethWAN` or `dhclient ethWAN` this works normally and as expected. It gets a new lease reliably.
But when I plug it in to the new 'copper modem' and do the same, I don't get a lease. It times out and falls back to some 169.x.x.x default IPV4LL address.


When I hook up my laptop, Slackware 12.2, directly to the copper modem, and do `dhcpcd eth0` or `dhclient eth0` it sometimes gets a lease and internet works.
But more often it complains about 'no network' and internet doesn't work. When that happens I also can't configure my network settings statically, and I can't ping the router. I tried two different network cables between laptop and router and also different ports on the router.

This is my laptop, correctly plugged in to the new modem:
Code:
7 root@wilnix:/home/me $dhcpcd -k eth0
7 root@wilnix:/home/me $dhcpcd -R eth0
Broadcasting DHCP_DISCOVER
recvfrom: Network is down
7 root@wilnix:/home/me $dhcpcd -R eth0
          ****  dhcpcd: already running
          ****  dhcpcd: if not then delete /etc/dhcpc/dhcpcd-eth0.pid file
7 root@wilnix:/home/me $dhcpcd -k eth0
7 root@wilnix:/home/me $dhcpcd -R eth0
Broadcasting DHCP_DISCOVER
recvfrom: Network is down
7 root@wilnix:/home/me $dhcpcd -k eth0
7 root@wilnix:/home/me $dhcpcd eth0
Broadcasting DHCP_DISCOVER
recvfrom: Network is down
7 root@wilnix:/home/me $dhcpcd eth0
          ****  dhcpcd: already running
          ****  dhcpcd: if not then delete /etc/dhcpc/dhcpcd-eth0.pid file
7 root@wilnix:/home/me $dhcpcd -k eth0
7 root@wilnix:/home/me $dhcpcd eth0
          ****  dhcpcd: already running
          ****  dhcpcd: if not then delete /etc/dhcpc/dhcpcd-eth0.pid file
7 root@wilnix:/home/me $dhcpcd -k eth0
7 root@wilnix:/home/me $dhcpcd eth0
Broadcasting DHCP_DISCOVER
broadcastAddr option is missing in DHCP server response. Assuming 192.168.1.255
dhcpIPaddrLeaseTime=86400 in DHCP server response.
dhcpT1value is missing in DHCP server response. Assuming 43200 sec
dhcpT2value is missing in DHCP server response. Assuming 75600 sec
DHCP_OFFER received from  (192.168.1.254)
Broadcasting DHCP_REQUEST for 192.168.1.8
dhcpIPaddrLeaseTime=86400 in DHCP server response.
dhcpT1value is missing in DHCP server response. Assuming 43200 sec
dhcpT2value is missing in DHCP server response. Assuming 75600 sec
DHCP_ACK received from  (192.168.1.254)
Broadcasting ARPOP_REQUEST for 192.168.1.8
arpCheck: recvfrom: Network is down
requested 192.168.1.8 address is in use
Broadcasting DHCP_DECLINE
dhcpDecline: sendto: Network is down
Broadcasting DHCP_DISCOVER
sendto: Network is down
7 root@wilnix:/home/me $ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1b:xx:xx:xx:xx
          inet addr:192.168.1.8  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:38ff:fecb:c585/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1200 (1.1 KiB)  TX bytes:2142 (2.0 KiB)
          Interrupt:17

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:406338 errors:0 dropped:0 overruns:0 frame:0
          TX packets:406338 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:21435658 (20.4 MiB)  TX bytes:21435658 (20.4 MiB)

For what it's worth, the cable modem is a direct connection, whereas the new modem is a NAT router. I don't think it should make a difference, but I'm not sure anymore.
The troublesome modem is a Davolink DV-2020

Any thoughts on how to approach this?

Last edited by /dev/me; 08-17-2011 at 01:40 PM.
 
Old 08-17-2011, 10:04 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi /dev/me, Have you tried setting a static IP then accessing the web interface to configure the router? Try the 192.168.1.2 or 192.168.1.3 and subnet 255.255.255.0 then try accessing the web interface of the router to set it up.

Good luck. ;-)
 
Old 08-17-2011, 10:11 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If you use dhcpd it should automatically grab an available IP from the router for eth0 if you use that as the primary NIC for external networking and eth1 as internal.

Check your router to see if it has the DHCP and DNS service running and the router is running as a router for PPPoE and not a bridge.
 
Old 08-17-2011, 10:48 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Are you sure you're using the right protocol? DSL typically uses PPPoE, not DHCP, for network setup.
 
Old 08-18-2011, 01:35 AM   #5
/dev/me
Member
 
Registered: May 2008
Distribution: Slackware 13
Posts: 116

Original Poster
Rep: Reputation: 20
I was making it too complicated... too long at it I suppose.


It boils down to this, this NAT router should be just a matter of plugging in and go. It is connected tot the internet, so you just hook up your laptop and ask for a DHCP lease. That should be all there is to it. But this doesn't work reliable. I have to ask several times before I get one. And then it works perfectly.
But with my s/headelss server/glorified PC/g this doesn't work at all. It gets no lease.



Quote:
Originally Posted by rknichols
Are you sure you're using the right protocol? DSL typically uses PPPoE, not DHCP, for network setup.
That is a good point, but the ADSL router is preconfigured NAT router. And it works for my laptop, but not reliably.



Quote:
Originally Posted by Peacedog
Hi /dev/me, Have you tried setting a static IP then accessing the web interface to configure the router? Try the 192.168.1.2 or 192.168.1.3 and subnet 255.255.255.0 then try accessing the web interface of the router to set it up.
No, when I can't get a lease, I can't access the router or the internet if I define IP address, subnet and gateway statically. I can't ping it either. Otherwise I can access the webinterface just fine.
 
Old 08-18-2011, 10:58 AM   #6
/dev/me
Member
 
Registered: May 2008
Distribution: Slackware 13
Posts: 116

Original Poster
Rep: Reputation: 20
/hangs head in shame


I got RTFM'ed by the helpdesk. The routers LAN ports 1&2 would have provided digital television, had I opted for that service. No wonder no DHCP server was listening on those ports. Or at least, this should have been obvious to anyone who had read page 25 of the manual.

Last edited by /dev/me; 08-18-2011 at 11:00 AM.
 
Old 08-18-2011, 07:48 PM   #7
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Nice! =D Glad you got it sorted.

Good luck. ;-)
 
  


Reply



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 lease unavailable bwilliam79 Linux - Networking 9 01-31-2008 05:37 AM
DHCP lease same IP prashanlk Linux - Networking 2 01-31-2008 03:22 AM
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
DHCP Lease Delete! kofi Linux - Networking 2 07-29-2004 07:00 PM
view isp dhcp lease jimieee Linux - Networking 1 11-06-2003 03:23 PM

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

All times are GMT -5. The time now is 05:59 PM.

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