拓扑如下:
要求:在R2的f0/0端口上应用基于报文大小的策略路由haha,为大小小于100Byte的报文设置出接口f1/0,101-1000B的报文设置出口f2/0。
具体配置:
1:定义route-map
R2(config)#route-map qgtest permit 10 R2(config-route-map)#match length 1 100 R2(config-route-map)#set interface f1/0 R2(config-route-map)#exit R2(config)#route-map qgtest permit 20 R2(config-route-map)#match length 101 1000 R2(config-route-map)#set interface f2/0 R2(config-route-map)#exit 2:将route-map调用到接口上 R2(config)#int f0/0 R2(config-if)#ip policy route-map qgtest