LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-24-2003, 10:50 AM   #1
WeNdeL
Member
 
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344

Rep: Reputation: 30
DHCP Routing Question


If I configure an interface to use DHCP (say for an ADSL connection), will the routing table update itself when the IP changes?

I plan on setting a DHCP connection as the default route and was wondering what would happen when the IP changes...

Thanks in advance!
 
Old 09-24-2003, 11:14 AM   #2
Gilion
Member
 
Registered: Sep 2003
Location: Netherlands
Distribution: Debian 3.0
Posts: 78

Rep: Reputation: 15
I am not a pro myself, but in my experience:

DHCP will create a complete routing table after acquiring a lease. So your default route to the internet will be available after configuring the network card with dhcp. You won't need to edit the routing table manualy. I think this is done after each new lease you get. Also, your dhcp client keeps a database with old leases which wil be tried at first, the dhcp.leases file. Practically this means it wil always try to get the old ip again. Unless the dhcp server blocks this, you will have an almost static IP.

Regards,

Gilion
 
Old 09-24-2003, 01:00 PM   #3
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Rep: Reputation: 30
yep, i think gil's right. when you have a LAN setup, you only have to set the default gateway from a client computer running dhcpcd once and it should stick in the routing table. from then on, the routing table will be modified around the lease received from dhcpd (the DHCP server daemon).
 
Old 09-24-2003, 01:18 PM   #4
WeNdeL
Member
 
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344

Original Poster
Rep: Reputation: 30
cool... thanks...
 
  


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
routing problem with dhcp and localhost drowstar Linux - Networking 0 01-03-2005 09:23 AM
dhcp ipmasq routing problem? ravenst1 Linux - Networking 0 08-27-2004 08:04 AM
interface ok, dhcp ok, routing gw not ok- help sokar Linux - Wireless Networking 4 02-04-2004 11:39 AM
Redhat 9 and DHCP/Routing Morthoseph Linux - Networking 7 04-26-2003 06:41 PM
Mac & Linux Routing/DHCP TheMuffinMan Linux - Networking 1 09-19-2002 11:39 PM


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