cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
972
Views
0
Helpful
5
Replies

Working with PBR

Joris Deprouw
Level 1
Level 1

Hello,

I would like to work with Policy Based Routing on my WS-C4507R-E.

However, the IOS (cat4500e-entservicesk9-mz.122-50.SG.bin) does not recognize the "ip policy route-map" command. I have been told that PBR does not work when ip cef is enabled.

Is this correct?

When disabling if cef and working with PBR's, doesn't this raise the CPU activity on the switch?

Thank you,

Best Regards,

Joris

5 Replies 5

Latchum Naidu
VIP Alumni
VIP Alumni

Hi Joris,

Try to use ip local policy route-map instead, otherwise the router will ignore the policy routing for traffic it generates.


Please rate the helpfull posts.
Regards,
Naidu.

Thank you Naidu,

I will try this.

Best Regards,

Joris

Joris,

If this helps you please click on the correct answer.

Regards,

Naidu.

Hi,

I am indeed able to use the "ip local policy" command. My setup however doesn't seem to work.

I would like to forward traffic from a certain vlan to a second default gateway. This default gateway is connected to my switch trough a point-to-point L3 link.

I have configured the following on my switch.

interface Vlan100
description ### Test ###
ip address 10.0.1.2 255.255.255.0
ip helper-address x

ip helper-address x

standby 100 ip 10.0.1.1
standby 100 preempt delay minimum 120

ip local policy route-map Test
!   

route-map Test permit 10
match ip address 100
set ip default next-hop 192.168.1.2

!

access-list 100 permit 10.0.1.0 0.0.0.255

When I do a sh route-map I receive the output below

switch#sh route-map

route-map Test, permit, sequence 10

  Match clauses:

    ip address (access-lists): 100

  Set clauses:

    ip default next-hop 192.168.1.2

  Policy routing matches: 160 packets, 23776 bytes

Any tips?

Thanks,

Joris

Hi Joris,

The config is looking ok and route map applied as it getting matches, it means the vlan 100 traffic is going to 192.168.1.2 and so far it is ok.

Please check the access between P2P devices.


If this helps you please click on the correct answer.

Regards,
Naidu.

Review Cisco Networking products for a $25 gift card