TS 系列之–3750交换机PBR配置不生效解决办法

在SVI接口下配置PBR,发现命令被IOS系统接受,但是不生效也不显示在show running-config中,交换机报出如下log:

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

意味着我们需要修改Switch Database Management (SDM) 交换机数据库管理模板至routing,从而启用IPV4下的PBR支持功能。

Switch#show sdm prefer

The current template is "desktop default" template.    <<<默认的SDM模板为"desktop default"

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.5K

  number of IPv4/MAC security aces:                 1K

Switch(config)#int vlan 10

Switch(config-if)#ip policy route-map pbr

Switch(config-if)#

*Mar  1 00:06:41.403: %PLATFORM_PBR-4-SDM_MISMATCH: PBR requires sdm template routing   

Switch#sh run int vlan 10

Building configuration...

Current configuration : 39 bytes

!

interface Vlan10

no ip address    <<<PBR配置

end

Switch#conf t

Switch(config)#sdm prefer routing               <<<修改SDM模板为"routing"

Changes to the running SDM preferences have been stored, but cannot take effect

until the next reload.

Use 'show sdm prefer' to see what SDM preference is currently active.

Switch#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.5K

  number of IPv4/MAC security aces:                 1K

Switch#reload   

Proceed with reload? [confirm]

Switch(config)#int vlan 10

Switch(config-if)#ip po

Switch(config-if)#ip policy rou

Switch(config-if)#ip policy route-map pbr

Switch(config-if)#end

Switch#s run int vlan 10

*Mar  1 00:05:58.948: %SYS-5-CONFIG_I: Configured from console by console

Switch#sh run int vlan 10

Building configuration...

Current configuration : 64 bytes

!

interface Vlan10

no ip address

ip policy route-map pbr           <<<PBR配置正常显示

end

*请注意在SDM模板配置生效前需要重启交换机。

更多请参考文档:

http://www.cisco.com/c/en/us/td/ ... wsdm.html#wp1139579

来自 <http://bbs.csc-china.com.cn/forum.php?mod=viewthread&tid=16758&extra=page%3D3>

www.cniiscn.com

返回主页看更多
狠狠的抽打博主 支付宝 扫一扫