LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-18-2017, 08:33 AM   #1
koloth
Member
 
Registered: Jun 2004
Location: Athens, Greece
Distribution: Slack@Home - RHEL@Work
Posts: 150

Rep: Reputation: 29
DHCPD: how to add multiple static routes to subnet


Hello,
Working on Centos 6.9 running isc-dhcpd-4.1.1-P1, I'm trying to make the dhcp server daemon serve more than one static route for a dhcp request.

I have configured the server to understand option 121 like that:

Code:
rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
I have also added something like the following to my subnet:

Code:
option rfc3442-classless-static-routes X, X,X,X,X, X,X,X,X;
option rfc3442-classless-static-routes Y, Y,Y,Y,Y, Y,Y,Y,Y;
However my dhcp requests only get the second route (the Y one).

Any ideas?
 
Old 10-19-2017, 06:16 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
What happens if you do the following?
Code:
option rfc3442-classless-static-routes X, X,X,X,X, X,X,X,X, Y, Y,Y,Y,Y, Y,Y,Y,Y;
 
1 members found this post helpful.
Old 10-20-2017, 05:12 AM   #3
koloth
Member
 
Registered: Jun 2004
Location: Athens, Greece
Distribution: Slack@Home - RHEL@Work
Posts: 150

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by ferrari View Post
What happens if you do the following?
Code:
option rfc3442-classless-static-routes X, X,X,X,X, X,X,X,X, Y, Y,Y,Y,Y, Y,Y,Y,Y;
Works like a charm!

Tanks a lot mate!
 
Old 10-20-2017, 03:13 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Glad to have been of help!
 
  


Reply

Tags
dhcp server, static route



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
Why static routes set using 'ip route add' and 'route add' commands are not used for routing packets within the same network? kanak@tetcos.com Linux - Networking 7 04-25-2017 05:52 AM
add static routes to be persistent on reboot cjashu Linux - Server 2 03-18-2014 10:12 AM
Split network using firewall, trying to add static routes irreverentryan Linux - Networking 4 06-14-2013 08:24 AM
Problem with dhcpd and static routes barbacchi Linux - Server 3 03-20-2008 03:43 AM
dhcpd.conf multiple subnet / single physical network configuration kovert Linux - Server 0 09-02-2006 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:28 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
Open Source Consulting | Domain Registration