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. And see here for current known issues.

New Member

PBR question

Hi All

My question is that if The command "set ip defualt next-hop X" and "ip route 0.0.0.0 0.0.0.0 X" is some effect ?

thank you .

4 REPLIES

Re: PBR question

Hi,

it appears the word "default gets confused with default route , both commands have different effects and usage, "set ip default next-hop " in PBR does not by any means defines a default route, however, if next hop IP router have a default route or gateway of last resort the router you are applying the PBR will forward the traffic to that router who has "IP route 0.0.0.0 0.0.0.0 x.x.x.x " command or gateway of last resort .

Using IP route 0.0.0.0 0.0.0.0 x simply defines gateway of last resort on a router.

you may configure set ip default next-hop x.x.x.x with a defualt route through the ACL of PBR.

Here are couple of PBR basic examples that can clarify much more your question.

http://www.cisco.com/en/US/tech/tk364/technologies_configuration_example09186a00801f3b54.shtml#intro

HTH

Jorge

New Member

Re: PBR question

Hi Jorge

I have read the doc, can I understand if both "ip route 0.0.0.0 0.0.0.0 A" and "set ip default next-hop B or A" without match are configured on router ,the "set ip default" without match is more priority ?

Re: PBR question

"Set ip default next-hop x.x.x.x", defines next-hop for those packets which matches the condition in the "match" command of the PBR.

While "ip route 0.0.0.0 0.0.0.0 x.x.x.x", defines the next hop for those pkts which doent match the PBR.

Re: PBR question

'ip route 0.0.0.0 0.0.0.0' is like applying unconditional (no 'match') PBR to all interfaces, but such use of PBR is rare and hardly justified.

If a packet didn't match any of the blocks of your PBR route-map then it falls back to normal routing lookup. Whether it will use default route or not, depends on your routing table.

On the other hand, if packet matches your match statements and there is specific route in the routing table, which would have been used otherwise then you need 'set ip next-hop X' (notice, no 'default'). If route-map matches, but there is no explicit route to the destination, then you should use 'set ip default next-hop'.

/iLya

220
Views
0
Helpful
4
Replies