LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-28-2003, 02:30 PM   #1
AndyJ
LQ Newbie
 
Registered: Feb 2003
Location: Milton Keynes, UK
Distribution: Suse 8.1 Pro
Posts: 10

Rep: Reputation: 0
DHCP excluding IP addresses


It's a bit strange this one. I have a home network with an ADSL router (Solwise SAR110) acting as a DHCP server. There are upto 4 pcs on the network: 1 win XP box, 1 OSX powerbook, 1 win 2k laptop (occasionally), and 1 Suse 8.1 Linux box. The machines are regularly turned off. All the boxes except the Linux box work fine, this is the symptom I am having with Linux:

When it starts up it requests an IP address from the DHCP server and receives one. When I restart it, it requests an IP address from the DHCP server and receives one IF ONE IS AVAILABLE. What is happening, is that the old IP address is going into the DHCP server's excluded address list (when I turn off the Linux box I think), so the Linux box is receiving a different address each time. It never receives an address previously used by one of the other machines (which always receive the same address). Eventually the DHCP server runs out of addresses and the Linux box is unable to connect to the network. I have to manually remove the excluded addresses from the server and reboot the server and the Linux box.

Can anyone tell me why the server might be automatically excluding the IP address and how I might resolve it?
 
Old 02-28-2003, 08:24 PM   #2
andresurzagasti
Member
 
Registered: Sep 2002
Location: Reconquista
Distribution: RedHat, Fedora
Posts: 38

Rep: Reputation: 15
Arrow dhcpd.conf

Hi. Can you post or send to me your dhcpd.conf ?
 
Old 03-02-2003, 04:47 PM   #3
AndyJ
LQ Newbie
 
Registered: Feb 2003
Location: Milton Keynes, UK
Distribution: Suse 8.1 Pro
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry it's taken so long but I've been away over the weekend. I've attached a copy of the file. I've also noticed that during bootup when it is trying to obtain an address from the DHCP server that it times out and backgrounds the operation - this still succeeds if there is an address available

I don't have a dhcpd.conf file but then if the Linux box is running as a dhcp client would it need one? Doesn't it use dhcpcd? I don't know what, if any, configuration file that uses otherwise I would post it.

If you could point me as to whether I need to install anything or any possible solutions I would be grateful.

thanks
 
Old 03-03-2003, 10:33 AM   #4
andresurzagasti
Member
 
Registered: Sep 2002
Location: Reconquista
Distribution: RedHat, Fedora
Posts: 38

Rep: Reputation: 15
Sorry, I thinked that the dhcp server are Linux box (... read very fast...)

I cannot help to you with the ADSL router, because I cannot these configuration. Sow, if you converts the linux box in a DHCPD server, itīs not problem for me the configuration.

Regards,
Andres.
 
Old 03-03-2003, 01:31 PM   #5
AndyJ
LQ Newbie
 
Registered: Feb 2003
Location: Milton Keynes, UK
Distribution: Suse 8.1 Pro
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks anyway.
 
Old 03-03-2003, 02:16 PM   #6
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
Andy, what kind of error are you getting? Is your Provider use pppoe? If so, I assumed it's setup on your Linux box. When your linux box finished booting up. Could you manually obtain an IP from the router?
 
Old 03-03-2003, 02:33 PM   #7
AndyJ
LQ Newbie
 
Registered: Feb 2003
Location: Milton Keynes, UK
Distribution: Suse 8.1 Pro
Posts: 10

Original Poster
Rep: Reputation: 0
I'm not getting an error as such. During bootup I see that it backgrounds the DHCP request after waiting a little while, but it always does that. It works whilst there are spare ip addresses in the routers address range, but on each boot, the last address is added to the excluded list by the router itself and a new one issued. Eventually the router runs out of addresses and then if I ping a machine, for example, it tells me that the network is unavailable.

It uses PPoA VC-Mux.
 
Old 03-03-2003, 03:12 PM   #8
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
I'm don't know anything about your router. But, it sound like a setting in your router is not releasing the IP properly with linux. Have you look into your router setting yet? As far as I know, dhcp client doesn't do much beside optain an IP from you dhcp server(ADSL router). Usually, dhcp client will use the same IP everytime it bootup anyway. You could always assign a static to your linux box. I couldn't find anything about your router on the web at all. Sorry, I can't be anymore helpful.
 
Old 03-03-2003, 04:09 PM   #9
AndyJ
LQ Newbie
 
Registered: Feb 2003
Location: Milton Keynes, UK
Distribution: Suse 8.1 Pro
Posts: 10

Original Poster
Rep: Reputation: 0
No problems - thanks for your time.

There aren't many settings to get wrong on the router and it works for the other two pcs connected. AFAIK, the client requests an address using its MAC address - this is then stored in the address table along with the assigned address for as long as the lease lasts (which isn't very long in this case!!). The server uses this MAC address to find a currently active lease to reassign.

I can only think it must be something with the config on the Linux box. IP Spoofing? Firewall? I've noticed in the boot log that IP forwarding is disabled. The dhcpcd command executed is
/sbin/dhcpcd -H -D -N -Y -t 999999 -h linux eth0

I've asked on the Solwise forum to see what circumstances cause the router to auto add entries to the excluded list to see if that gives me any clues.
 
  


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
Automatically renewing DHCP addresses? irishbear Linux - Networking 6 01-21-2005 12:53 PM
Multiple addresses on one NIC via DHCP - possible? babzog Linux - Networking 0 03-25-2004 11:43 AM
DHCP: 1 hostname, 2 IP addresses, only 1 is reachable? agl Linux - Networking 2 09-21-2003 09:46 PM
5 DHCP addresses and 7 machines GAVollink Linux - Networking 2 01-25-2003 05:23 PM
Finding all ip addresses from your dhcp servers J-Stew Linux - Networking 1 08-27-2002 08:19 AM


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