The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell/Perl Script to edit dhcpd.conf sahilb Shell Programming and Scripting 4 11-21-2006 11:20 PM
Static route for hpux 11.22 catwomen HP-UX 2 10-10-2006 05:55 AM
static route ? chaandana IP Networking 3 07-04-2005 11:05 PM
dhcpd.conf keliy1 Linux 1 11-17-2004 01:05 PM
dhcpd.conf and 2 subnets Jody UNIX for Dummies Questions & Answers 2 10-23-2002 01:01 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-12-2007
Registered User
 

Join Date: Jul 2007
Posts: 110
dhcpd.conf - static route

Hi,

I've setup DHCP Server on RH linux AS3 and everything works fine except static routes. They are not getting effected on client systems.

My dhcpd.conf:

+++++++++++

ddns-update-style interim;
ddns-updates off;
option domain-name-servers 192.168.116.122;
option domain-name "abc.com";
option subnet-mask 255.255.255.0;
# abc_lan
subnet 192.168.116.0 netmask 255.255.255.0 {
option domain-name "abc.com";
option static-routes 172.16.1.0 192.168.116.2;
allow unknown-clients;
ddns-updates off;
range 192.168.116.152 192.168.116.198;
}

++++++

Any help would highly be appreciated

TIA

Prvn
Reply With Quote
Forum Sponsor
  #2  
Old 08-13-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,197
Hello, you can read this man page and especially the part for "option static-routes". If it doesn't help, use the "routers" options as suggested, in the body of each subnet, add the line:
option router your-ip-here;
This will configure the default gateway to be the one you have selected above.
Edit : looking back into the forum's base, I found this article, I hope it will be useful.
Reply With Quote
  #3  
Old 08-13-2007
Registered User
 

Join Date: Jul 2007
Posts: 110
Hi Sysgate,

thanks for all the help but sorry to say that they don't work for my requirement. I need to configure "static route" only NOT "default route" as the requirement is to setup 5 static routes and 1 default gateway. I already used "option routers" for default gateway (not specified in dhcpd.conf to make my requirement clear to all). As you know, we cant have more than 1 default gateway on any system(the other thread you have referred was about 2 different subnets where each with ONE router only).

Though i could solve this issue by mentioning all the static routes in my ROUTER (the default gateway) itself and use "option routers" but my organization does not want it that way to restrict a group of systems.

So the only option i have, is to use "option static-routes" but this is somehow not working in my case though syntax seems to be just fine.

Regards,

Prvn
Reply With Quote
  #4  
Old 08-14-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,197
from the man pages :
Quote:
The routes consist of a list of IP address pairs. The first address
is the destination address, and the second address is the router for
the destination.
If you are sure you have the correct IPs, I'll suggest looking at the log file. Oh, and don't forget to restart the DHCP after you make changes (I'm almost sure you did this, but just in case.)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0