Configuration Example, Routing

Policy-Based Routing Catalyst 3560

René Jorissen on June 30, 2008 13 Comments • Tags: #3560 #based #pbr #policy #route-map #routing

Today I visited a customer where the power a Cisco Catalyst 3548XL blew up. The switch had a manufacture date of December 2000. It is an old one, but still I haven’t seen a power supply being blown up from a Cisco switch from that age.

But oké, the switch needed to be replaced. The customer ordered some 3560 switches, so all the 3548 switches could be replaced. The customer was also using a Cisco 2650XL router for routing between the different VLAN’s. Because they purchased some layer 3 switches, I also wanted to remove the Cisco 2650XL router.

The configuration of the router wasn’t that spectacular, there was only some policy-based routing (PBR) configured. The switches had IP base images, so I had to upgrade one switch with IP services firmware. After upgrading the switch, I configured the ACL and route-map as listed below.

ip access-list extended ACL-PBR
permit ip 10.10.10.0 0.0.0.255 any

!

route-map RM-PBR permit 10
match ip address ACL-PBR
set ip default next-hop 10.10.10.253

Next I wanted to apply the route-map to the correct interface, but that resultant in the following syslog message.

%PLATFORM_PBR-4-SDM_MISMATCH: PBR requires sdm template routing

Looking at the internet for a PBR example on a Cisco Catalyst 3560, I found that I had to change the SDM (Switch Database Management) template. The SDM manages the layer 2 and layer 3 switching information that is maintained in the Ternary Content Addressable Memory (TCAM). The TCAM is used for forwarding lookups.

Looking at the default configuration the switch had the following SDM configuration.

SW01-L3(config)#do sh sdm prefer
The current template is “desktop default” template.
The selected template optimizes the resources in
the switch to support this level of features for
8 routed interfaces and 1024 VLANs.

number of unicast mac addresses:                  6K
number of IPv4 IGMP groups + multicast routes:    1K
number of IPv4 unicast routes:                    8K
number of directly-connected IPv4 hosts:        6K
number of indirect IPv4 routes:                 2K
number of IPv4 policy based routing aces:         0
number of IPv4/MAC qos aces:                      0.75K
number of IPv4/MAC security aces:                 1K

Looking at the output, there is no memory configured for IPv4 policy based routing aces. This means that I have to change the SDM template to routing. This is achieved be entering the global configuration command:

sdm prefer routing

The execution of the command requires a switch reboot. After the reboot I checked the SDM configuration and noticed that memory is allocated for PBR, like displayed below:

SW01-L3(config)#do sh sdm prefer
The current template is “desktop routing” template.
The selected template optimizes the resources in
the switch to support this level of features for
8 routed interfaces and 1024 VLANs.

number of unicast mac addresses:                  3K
number of IPv4 IGMP groups + multicast routes:    1K
number of IPv4 unicast routes:                    11K
number of directly-connected IPv4 hosts:        3K
number of indirect IPv4 routes:                 8K
number of IPv4 policy based routing aces:         0.5K
number of IPv4/MAC qos aces:                      0.75K
number of IPv4/MAC security aces:                 1K

So I try to apply the route-map to the specific interface, but this resulted in another syslog message.

%PLATFORM_PBR-3-UNSUPPORTED_RMAP: Route-map RM-PBR not supported for Policy-Based Routing

Seems that the PBR configuration is not supported on the switch. At least some commands are not supported. Checking the internet again, I found a document with Unsupported Route Map Commands for a Catalyst 3550.

I had to change the next-hop configuration. I replaced the route-map with the following commands.

route-map RM-PBR permit 10
match ip address ACL-PBR
set ip next-hop 10.10.10.253

Finally, after changing the route-map it could be applied to the interface. After replacing the components I tested the route-map and it is working without any problems.

The following two tabs change content below.

René Jorissen

Co-owner and Solution Specialist at 4IP Solutions
René Jorissen works as Solution Specialist for 4IP in the Netherlands. Network Infrastructures are the primary focus. René works with equipment of multiple vendors, like Cisco, Aruba Networks, FortiNet, HP Networking, Juniper Networks, RSA SecurID, AeroHive, Microsoft and many more. René is Aruba Certified Edge Expert (ACEX #26), Aruba Certified Mobility Expert (ACMX #438), Aruba Certified ClearPass Expert (ACCX #725), Aruba Certified Design Expert (ACDX #760), CCNP R&S, FCNSP and Certified Ethical Hacker (CEF) certified. You can follow René on Twitter and LinkedIn.

Latest posts by René Jorissen (see all)

  1. Dennis says:

    Thanks for this article. Very helpful!

  2. 2ga says:

    Yes yes, very helpful

  3. Brad says:

    Great Article. Solved my problem. Thank you.

  4. Amine says:

    Many thanks. I’ll use your instructions tomorrow on a customer switch.

  5. rawa says:

    where can i get c3560 IOS , please help

  6. René says:

    Rawa,

    You need a valid SmartNet contract for a Cisco Catalyst 3560 to be able to download IOS software. I recommend that you contact your reseller for more info.

    René

  7. Nitin says:

    Hi,
    How to apply RM-PBR policy to interface.
    Can you pleae help me with command.

    Thanks
    Nitin B

  8. René says:

    Nitin,

    The route-map can be applied with the ip policy route-map RM-PBR command to a switched virtual interface.

    René

  9. TAN says:

    How? please help me can apply into interface.

  10. Divesh says:

    great job. it had worked for us. thank alot

  11. JOE says:

    Hi TAN,

    PBR can apply in physical and virtual interface:
    Example:
    interface FastEthernet0/1
    ip policy route-map RM-PBR

  12. JOE says:

    RAWA,

    You need IPservices IOS, you can download it from 4shared if you dont have smartnet contract!

    JOE

  13. Nithin says:

    Hi Rene,

    Could you please provide me your e-mail id, I wanted to discuss with you something specific on Policy Based Routing.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.