PBR help needed

Unanswered Question
Jan 10th, 2008
User Badges:

What would the pbr policy be using 6506 switch

I need to create a pbr on an interface vlan that checks this:

If traffic is destined for then set the next hop to router A, else continue as normal?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Jon Marshall Thu, 01/10/2008 - 15:14
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN


Are you sure that this is the address you want to route to because you shouldn't get packets with this as a destination address.


Edison Ortiz Thu, 01/10/2008 - 15:17
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

You are looking for the set ip default next-hop instead of the set ip next-hop.

The set ip default next-hop will examine the routing table first and if destination address isn't there, it will use the PBR for the next hop while the set ip next-hop will use the PBR first and routing table second.




cisconoobie Thu, 01/10/2008 - 15:36
User Badges:

Thanks but what if I already have a default route in the routing table that already points to for example and I want the default route changed specifically for hosts on vlan 200 to

All other vlans, 100 and 300 will use the default route of

Any ideas? And keep pbr routing in hardware and not in software?

cisconoobie Thu, 01/10/2008 - 19:31
User Badges:

I'm still kind of confused why it would not use the default route thats in the routing table.

The definition for this is as follows:

default next-hop: Sets next hop to which to route the packet if there is no explicit route for this destination.

If I create this:

Routing table

Gateway of last resort is to network

O [110/2000] via, 1d01h, Port-channel18

O [110/2000] via, 1d01h, Port-channel28

C is directly connected, Vlan200

C is directly connected, Vlan400

S* [1/0] via, 1d01h, Port-channel18

access-list 1 permit

interface vlan 200

ip address

ip policy route-map new_route

route-map new_route permit 10

match ip address 1

set ip default next-hop

If the route map gets processed for a packet with source address and destination of, your saying that it should ignore the static route of and proceed to ???

cisconoobie Thu, 01/10/2008 - 19:59
User Badges:

I read that article but am confused how this access list would look in my situation?

Are extended access lists allowed in route maps?

Looking at my last post, how can I make the pbr work so that the packet get forwarded to instead of ??

s.arunkumar Thu, 01/10/2008 - 20:21
User Badges:
  • Bronze, 100 points or more

i am not sure if deny works with pbr ,but 4rm my logic..

access-list 100 permit any

access-list 100 deny any

access-list 100 deny any

access-list 100 permit any any

(( as u have entry in routing table 4 and rest is consideras default here))

apply this to ur pbr..

cisconoobie Fri, 01/11/2008 - 11:25
User Badges:

I will try this but dont want to mess up a production network :(

Edison Ortiz Fri, 01/11/2008 - 12:59
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

You tried and it didn't work?

Care to post debugs from the PBR?

I don't have the time to duplicate your environment at the moment hence the questions.



This Discussion