08-31-2014 08:25 PM - edited 03-11-2019 09:41 PM
Hi All,
Is it possible to configure static route with 2 Dynamic IPs by ISP DHCP with ASA ?
If possible, how the configuration should be ?
For example :
To route 1.2.3.4 via ISP-1 (dynamic IP)
To route 3.4.5.6 via ISP-2 (dynamic IP)
ASA Ver 8.2(5)
Thanks
Solved! Go to Solution.
09-01-2014 12:43 AM
Well, I would think that the ISP default gateway would be a static IP, so whatever IP you receive as the default route (using the setroute command) could be used as the next hop. It would not make sense that the ISP would be using a dynamic IP for its default gateway configuration in the DHCP server. The same should go for the second ISP uplink also. So if you don't see the next hops using the show route command I suggest calling your ISP / ISPs and ask them to provide you with the next hop and then punch that into your config.
--
Please remember to select a correct answer and rate helpful posts
09-01-2014 12:15 AM
Yes this is possible. The only thing that is not possible is to have 2 default routes that point out different interfaces. In this case only one of the default routes would be active.
To configure the static routes do the following:
route outside1 1.2.3.4 255.255.255.255 1.1.1.1 1
route outside2 5.6.7.8 255.255.255.255 2.2.2.2 1
ciscoasa(config)# show route
S 1.2.3.4 255.255.255.255 [1/0] via 1.1.1.1, outside1
S 5.6.7.8 255.255.255.255 [1/0] via 2.2.2.2, outside2
--
Please remember to select a correct answer and rate helpful posts
09-01-2014 12:36 AM
Thanks,
Those commands work well with Static IP ISPs.
However for Dynamic IP which getting IP from "ip address dhcp setroute"
I could not set those static route config as the next hop is getting from DHCP.
Any advise ?
09-01-2014 12:43 AM
Well, I would think that the ISP default gateway would be a static IP, so whatever IP you receive as the default route (using the setroute command) could be used as the next hop. It would not make sense that the ISP would be using a dynamic IP for its default gateway configuration in the DHCP server. The same should go for the second ISP uplink also. So if you don't see the next hops using the show route command I suggest calling your ISP / ISPs and ask them to provide you with the next hop and then punch that into your config.
--
Please remember to select a correct answer and rate helpful posts
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide