[j-nsp] Static routing Cisco - juniper
Yuki Arif (JA/EID)
yuki.arif at ericsson.com
Wed Jun 23 06:24:28 EDT 2004
Hello,
I am newbie in Juniper router.
I read in this link about static routing in cisco.
http://www.experts-exchange.com/Hardware/Routers/Q_20890957.html <http://www.experts-exchange.com/Hardware/Routers/Q_20890957.html>
It uses distance parameter to install preffered static routing into routing table. Is this available in Juniper router (M10, M20)?
# Question
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Solution Title: Static Route Metric
Author: jimm123 <http://www.experts-exchange.com/M_116272.html>
Points: 100 Grade: A
Date: 02/19/2004 09:34AM PST
Is <http://www.experts-exchange.com/Hardware/Routers/searchPreview.jsp> this what you are
looking for?
If not, try our Search
Hello,
I am using a Cisco <http://www.experts-exchange.com/Hardware/Routers/Q_20890957.html#> 2600 router <http://www.experts-exchange.com/Hardware/Routers/Q_20890957.html#>
I have added two static routes
ip <http://www.experts-exchange.com/Hardware/Routers/Q_20890957.html#> route 194.5.35.18 255.255.255.255 192.168.1.3 permanent
ip route 194.5.35.18 255.255.255.255 172.20.10.3 permanent
How can I add higher weight or priority for route 2 over route 1? I read that you can use a metric command but I am unsure of how to apply it to each route.
Thank you.
# Answer
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BM_10405749Accepted Answer from JFrederick29 <http://www.experts-exchange.com/M_1536861.html>
Date: 02/19/2004 11:48AM PST
Accepted Answer
You can add a lower administrative distance on the one you want to be used first. You should not use the permanent keyword as it will remain in the routing <http://www.experts-exchange.com/Hardware/Routers/Q_20890957.html#> table even if that interface goes down.
ip route 194.5.35.18 255.255.255.255 192.168.1.3 10 <-----administrative distance (lowest will be added to routing table first)
ip route 194.5.35.18 255.255.255.255 172.20.10.3 20 <-----will be added to the routing table if the first route is removed/interface goes down
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Best Regards
Yuki
More information about the juniper-nsp
mailing list