Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

policy based routing

Hi,

I need to route to a destination (10.1.2.2) only when two interfaces are up(vlan 1 & vlan 2) and when any one of these interfaces are down packets must use a floating static route .is it possible?

3 REPLIES
Cisco Employee

Re: policy based routing

Hi Raj,

Yes thats possible. Under policy map give a condition as "Match Interface " and then set the route which you want.

So only when match condition will return TRUE value it will go to this route or elase will follow normal routing table.

HTH

Ankur

New Member

Re: policy based routing

hi

please find the below config and letme know y it's not working.

Both these interfaces are connected to another switch and pining the directly connected interfaces.with static route the particular destination (10.1.1.2) is also pining. but policy based routing is not working y so?

interface Vlan500

ip address 10.17.17.1 255.255.255.0

ip policy route-map test

!

interface Vlan600

ip address 10.16.16.1 255.255.255.0

ip policy route-map test

route-map test permit 10

match interface Vlan500 Vlan600

set ip next-hop 10.16.16.2

router#ping 10.1.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:

.....

Success rate is 0 percent (0/5)

router#

Re: policy based routing

Hi rajiv,

Policy routing does not affect the packets originated by the router.

You need to add the following command in the global configuration mode to test it from the router

(config)#ip local policy route-map test

HTH, rate if it does

Narayan

108
Views
0
Helpful
3
Replies