cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5037
Views
0
Helpful
3
Replies

Need to configure 33 DHCP option 121

giovannipannone
Level 1
Level 1

Hi,

I am trying to configure DHCP OPTION 121 (classless static route) on cisco router.

My problem is that I need to configure 33 static routes...something like that:

 

ip dhcp pool DATA
   network 99.3.88.0 255.255.255.0
   dns-server 195.186.155.1
   option 121 ip 24.100.0.0 99.3.88.1 24.100.0.1 99.3.88.1 24.100.0.2 99.3.88.1 24.100.0.3 99.3.88.1 24.100.0.4 99.3.88.1 24.100.0.5 99.3.88.1 24.100.0.6 99.3.88.1 24.100.0.7 99.3.88.1 24.100.0.8 99.3.88.1 24.100.0.9 99.3.88.1 24.100.0.10 99.3.88.1 24.100.0.11 99.3.88.1 24.100.0.12 99.3.88.1 24.100.0.13 99.3.88.1 24.100.0.14 99.3.88.1 24.100.0.15 99.3.88.1 24.100.0.16 99.3.88.1 24.100.0.17 99.3.88.1 24.100.0.18 99.3.88.1 24.100.0.19 99.3.88.1 24.100.0.20 99.3.88.1 24.100.0.21 99.3.88.1 24.100.0.22 99.3.88.1 24.100.0.23 99.3.88.1 24.100.0.24 99.3.88.1 24.100.0.25 99.3.88.1 24.100.0.26 99.3.88.1 24.100.0.27 99.3.88.1 24.100.0.28 99.3.88.1 24.100.0.29 99.3.88.1 24.100.0.30 99.3.88.1 24.100.0.31 99.3.88.1 24.100.0.32 99.3.88.1

 

When typing the "option 121 ip ..." command, router replies whit an error: "% Invalid input detected at ^ ..."

The command is too long I guess.

 

 I also tried to edit a configuration file whit that option and then copy it to the router via tftp, but it didn't work

 

Any suggestions?

Thanks in advance!

Giovanni

3 Replies 3

Surender Singh
Level 1
Level 1

Hi Giovanni,

Below link may help you.

 

https://supportforums.cisco.com/discussion/11339881/cisco-ios-dhcp-server-classless-static-routes-dhcp-clients

 

Thanks!

Surender

Thank you Surender !

 

I have seen link you sent me, but it did not help me...

I was able to configure just 6 OPTION 121 but I was not able to configure all that I need (33). After entering the 6° option, router show me an error "% Invalid input detected at ^ ...".

Now, as I cannot configure all 33 static route in one shoot, I tried to add 5 rules and then adding other new ones, but cisco router override the old ones.

It seems that it is not possible to "add" option 121.

 

Thank you

Giovanni

Surender Singh
Level 1
Level 1

You may consider this link as well.

 

http://reggle.wordpress.com/2011/10/13/using-dhcp-for-network-services-and-routing/

 

Review Cisco Networking for a $25 gift card