Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add multiple route with priority

How to add multiple route with priority

Hi,

i have one 5412zl switch which is connected to cisco.
one link from 5412 is connected to one cisco switch 3750&one more link is connected to another cisco switch 3750 this two cisco switch is connected to core switch 4506.

now my concern is i want to add multiple route in 5412 saying that.
1.first link is connected to one cisco switch 3750 if this goes down then automatically the traffic sholud pass from secondary link which is connected to one more cisco switch.

can any one suggets me how configure 5412 in this case.
5412-192.168.10.1
cisco 3750-172.16.110.1
cisco 3750-172.10.200.1
core 4506-172.9.300.1
1 REPLY
Natasha Samoylenko
Trusted Contributor

Re: How to add multiple route with priority

Hi

You can play with metric or administrative distance values.

Examples with distance:
sw(config)# ip route 172.9.300.1/32 172.16.110.1 distance 10
sw(config)# ip route 172.9.300.1/32 172.16.200.1 distance 20

If 172.16.110.1 is up (link is up), then traffic will go through it.
If 172.16.110.1 go down then second route through 172.16.200.1 will replace it.