![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
from the man pages :
Quote:
|
||||
| Google The UNIX and Linux Forums |