Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
Bronze

Static Route with Tag number

Hi,

Does this command

ip route 10.64.0.0 255.240.0.0 192.168.50.2 20 tag 102

overwrites this command

ip route 10.64.0.0 255.240.0.0 192.168.50.2 10 tag 101

? or vise versa?

Thanks in advance

Abd Alqader

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Static Route with Tag number

Routes must have different next-hop in order to be different, otherwise they're considered as the same route so second command overwrites first one.

6 REPLIES

Re: Static Route with Tag number

Hi,

The tag is use to reference a route in a route map for making policy decision.

You have two floating static route diferrentiated by their administrative distance of 10 and 20. I don't think the routes overwrite each other by the tag.

Regards,

Dandy

Bronze

Re: Static Route with Tag number

Hi Dandy,

Yes, this is right. But, why when i apply these two static routes at Cisco 6509 switch, the last one applied is the one appeared at the show running?

Thanks

Abd Alqader

Re: Static Route with Tag number

Routes must have different next-hop in order to be different, otherwise they're considered as the same route so second command overwrites first one.

Re: Static Route with Tag number

Hi,

I didn't noticed the next hop which is the same. The second one will overwrite the first one with or without tag.

Regards,

Dandy

Bronze

Re: Static Route with Tag number

yes, you are right.

Thanks

New Member

Re: Static Route with Tag number

Hi i have 2 ISP connected to cisco 2811 router, i want to configure a failover on wan side what can i do. i made some configuration on it using route-map ang policy list but it didnt work

my config is

access-list 1 permit 192.168.1.0 0.0.0.255

access-list 2 permit 192.168.2.0 0.0.0.255

!

ip policy-list group1-s1/0 permit

match ip add 1

match int s1/0

!

ip policy-list group1-s1/1 permit

match ip add 1

match int s1/1

!

ip policy-list group2-s1/0 permit

match ip add 2

match int s1/0

!

ip policy-list group2-s1/1 permit

match ip add 2

match int s1/1

!

route-map group 1 permit 1

match policy-list group1-s1/0

match policy-list group1-s1/1

!

route-map group 2 permit

match policy-list group1-s1/0

match policy-list group1-s1/1

!

int s1/0

ip nat outside

ip policy route-map group1

!

int s1/1

ip nat outside

ip policy route-map group2

!

ip nat inside source list route-map group1 int s1/0

ip nat inside source list route-map group2 int s1/1

7103
Views
3
Helpful
6
Replies
CreatePlease to create content