dhcpd.conf - static route


 
Thread Tools Search this Thread
Operating Systems Linux dhcpd.conf - static route
# 1  
Old 08-13-2007
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  
Old 08-13-2007
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  
Old 08-13-2007
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  
Old 08-14-2007
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.)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Changes in dhcpd.conf do not make a difference in DHCP service behaviour

Hi Experts, Our DHCP server currently answers the DHCP Discover requests from ServerX. In our dhcpd.conf file there are parameters defined for ServerX. Now we introduced some additional Servers into the network and want them to get service from the same DHCP server. Similar configuration... (13 Replies)
Discussion started by: ekorgur
13 Replies

2. Shell Programming and Scripting

Listing IPs from the dhcpd.conf

Hy everybody, Within a dhcpd.conf file, we got some fixed IP adresses from 192.168.0.1 - 192.168.0.254. Sample: #ddns-update-style interim; ddns-update-style none; ignore client-updates; deny client-updates; authoritative; #### By red for PXE Booting allow booting; allow bootp; ###... (17 Replies)
Discussion started by: hermouche
17 Replies

3. Linux

dhcpd failover with static IP

Hi I am a bit confused, I want to setup failover within dhcpd. There are multiple subnets and hosts with static IP's. however it seems I need to set up an IP range for the subnets for failover to work is this correct or am I missing something (1 Reply)
Discussion started by: eeisken
1 Replies

4. Shell Programming and Scripting

Help with Perl to change dhcpd.conf file

Hi all, I am too new for this stuff and i am lost in perl tutorials. I need help to change dhcp entries in .conf file with a perl script. The file entries are like below : host bertha-clp-0 { hardware ethernet AA:0A:A0:00:6c:40; fixed-address 10.10.10.72; option... (6 Replies)
Discussion started by: ekckabatop
6 Replies

5. IP Networking

When to use static route on server?

Hi guys, sorry for asking noob question. When do we really need to add a static route on the server? I encounter this situation whereby a client trigger a network packet to the destination but the destination does not know how to return the traffic back to the client (source). The issue was... (4 Replies)
Discussion started by: DrivesMeCrazy
4 Replies

6. AIX

removing static route

#netstat -nr (shows the following with more static routes) 192.168.18.202 10.129.155.1 UGH 0 29 en0 - - and i just want to remove the above one i tried #smitty rmroute destination type= net dest add = 192.168.18.202 default gateway= 10.129.155.1 net... (1 Reply)
Discussion started by: pchangba1
1 Replies

7. UNIX for Dummies Questions & Answers

Static Route

Hi, Request you to please tell me the command or the process to add the static route in redhat linux. Thanks in Advance. Regards Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

8. Shell Programming and Scripting

Shell/Perl Script to edit dhcpd.conf

Hi, I need to get a script together to edit the dhcp service configuration file dhcpd.conf. Mac addresses are defined in classes ex. class "HOST1" { match if substring (hardware, 1,18)=00:11:11:FF:FF:FF;} class "HOST2" ... class "HOST3" ... ... followed by allow or deny statements:... (4 Replies)
Discussion started by: sahilb
4 Replies

9. IP Networking

static route ?

Hi, I have a machine that sits on 10.2 network. I need to ssh from this to another box that is on both 10.125 & 10.140 VLANs what should I need to do? Thanks! (3 Replies)
Discussion started by: chaandana
3 Replies

10. Linux

dhcpd.conf

I have intall a REdhat 9.0 as a server and Ive configure to act as a DHCP however Im having technical problems b/c the file /etc/dhcpd.conf does not exists. I went to the text edit and I created : subnet 192.192.168.100.0 netmask 255.255.255.0 { range 192.168.100.10 192.168.100.150;... (1 Reply)
Discussion started by: keliy1
1 Replies
Login or Register to Ask a Question