03-14-2011 02:44 AM - edited 03-06-2019 04:04 PM
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
03-14-2011 03:19 AM
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.
03-14-2011 03:21 AM
Thank you Naidu,
I will try this.
Best Regards,
Joris
03-14-2011 03:25 AM
Joris,
If this helps you please click on the correct answer.
Regards,
Naidu.
03-16-2011 04:51 AM
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
03-16-2011 05:06 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide