免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 14866 | 回复: 9
打印 上一主题 下一主题

cisco 3560 策略路由不生效 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-12-27 16:20 |只看该作者 |倒序浏览
本帖最后由 fsm11 于 2010-12-27 16:30 编辑

大家好,我配置的 策略路由不生效

access-list 26 permit 192.88.26.251
!
route-map cnc26 permit 26
match ip address 26
set ip next-hop 58.252.61.14
!
interface Vlan26
ip address 192.88.26.1 255.255.255.0
ip route-cache policy
ip policy route-map cnc26
!

#sh route-map cnc26
route-map cnc26, permit, sequence 26
  Match clauses:
    ip address (access-lists): 26
  Set clauses:
    ip next-hop 58.252.61.14
  Policy routing matches: 416 packets, 65173 bytes


#sh version
Cisco IOS Software, C3560 Software (C3560-ADVIPSERVICESK9-M), Version 12.2(25)SEB4, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Tue 30-Aug-05 17:56 by yenanh

ROM: Bootstrap program is C3560 boot loader
BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(25r)SE1, RELEASE SOFTWARE (fc)

sw3560G_9_1 uptime is 34 weeks, 5 days, 13 hours, 23 minutes
System returned to ROM by power-on
System image file is "flash:c3560-advipservicesk9-mz.122-25.SEB4/c3560-advipservicesk9-mz.122-25.SEB4.bin"

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:         512
  number of IPv4/MAC qos aces:                      512
  number of IPv4/MAC security aces:                 1K

谁遇到过  ? 请那位大侠出手帮忙一下 。

网络拓扑是 核心(3560、三层)————(楼层核心3560、二层)————(接入交换机、二层)————192.88.26.251

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
2 [报告]
发表于 2010-12-27 16:35 |只看该作者
Policy routing matches: 416 packets, 65173 bytes

生效了啊。

论坛徽章:
0
3 [报告]
发表于 2010-12-27 16:36 |只看该作者
没有用啊,我 win 客户端 traceroute 的时候还是走的原来的路由

论坛徽章:
0
4 [报告]
发表于 2010-12-27 21:43 |只看该作者
我记得当时我也做过,match 也有结果,但是就是不能用。。。有人解释说,这个策略路由好像需要硬件支持,但是 3550,3560一般没有。

当时我忘记了敲了个什么命令,弹出一条log,大致意思就是不支持。平台就是3560.

论坛徽章:
0
5 [报告]
发表于 2010-12-28 09:15 |只看该作者
本帖最后由 fsm11 于 2010-12-28 09:48 编辑
我记得当时我也做过,match 也有结果,但是就是不能用。。。有人解释说,这个策略路由好像需要硬件支持,但 ...
myfat10 发表于 2010-12-27 21:43


PBR 支持不支持我觉得应该是IOS 所决定的 ,我是这样认为。官方的文档里面也是3560做PBR的案例啊。
难道要升级IOS才可以吗,有人说 SEB的IOS 也是支持的!

论坛徽章:
0
6 [报告]
发表于 2011-01-17 12:23 |只看该作者
据我了解3560是不支持的,只有3750以上支持,相关信息请参考下面。
Switch Database Management (SDM) templates
http://www.cisco.com/en/US/docs/ ... on/guide/swsdm.html

1、ccs01(config)#sdm prefer ?
  access              Access bias
  default             Default bias
  dual-ipv4-and-ipv6  Support both IPv4 and IPv6
  routing             Unicast bias
  vlan                VLAN bias

可以开启SDM prefer 的一些参数sdm prefer routing
注意:可以打上IP policy 命令在接口但是show run不显示,是因为SDM prefer routing 没改
      打不上IP policy命令在接口是因为IOS不支持,换高级版本的IOS

论坛徽章:
0
7 [报告]
发表于 2011-01-19 15:05 |只看该作者
不是已经生效了吗

论坛徽章:
0
8 [报告]
发表于 2011-01-19 17:17 |只看该作者
本帖最后由 CU168007041 于 2011-01-19 17:38 编辑

The IP Services license (formerly called the Enhanced Multilayer Image, or EMI) provides a richer set of enterprise-class features, including advanced hardware-based IP Unicast and IP Multicast routing as well as policy-based routing
加上这个命令试试:Router(config-if)# ip route-cache policy

论坛徽章:
0
9 [报告]
发表于 2011-01-19 17:54 |只看该作者
如果不行,需要换这个:c3560-advipservicesk9-mz.12.2-46.SE;最低也得这个:12.2(35)SE5

论坛徽章:
0
10 [报告]
发表于 2011-08-26 23:33 |只看该作者
万里长征,只差一步

你如果是 windows 客户机在内网, ip policy route-map cnc26 应该设置在 内网流量“进入” 交换机的 网口 或vlan interface上,而非设置在 内网流量“流出”的网口或vlan上。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP