The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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-22-2006 02:20 AM
Static route for hpux 11.22 catwomen HP-UX 2 10-10-2006 08:55 AM
static route ? chaandana IP Networking 3 07-05-2005 02:05 AM
dhcpd.conf keliy1 Linux 1 11-17-2004 04:05 PM
dhcpd.conf and 2 subnets Jody UNIX for Dummies Questions & Answers 2 10-23-2002 04:01 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-13-2007
prvnrk prvnrk is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 138
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
  #2 (permalink)  
Old 08-13-2007
sysgate's Avatar
sysgate sysgate is online now Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
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.
  #3 (permalink)  
Old 08-13-2007
prvnrk prvnrk is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 138
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
  #4 (permalink)  
Old 08-14-2007
sysgate's Avatar
sysgate sysgate is online now Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
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.)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0