我有一个在我的思科路由器上configuration的路由映射名称说s1和序号10(默认),其中包含匹配标签10.如果我再次尝试configuration相同的路线图名称相同的序列号10(默认)与一个更新的匹配标签20实际上是将匹配标签20附加到10.是否预期。 因为我已经从许可证更改否认应该不刷新以前的值?
R1(config)#route-map s1 per
R1(config)#route-map s1 permit
R1(configuration – 路由映射)#mat
R1(config-route-map)#match标签
R1(config-route-map)#match标签10
R1(config-route-map)#do sh route-map
路线图s1,许可证,序列10
比赛条款:
标签10
设置子句:
策略路由匹配:0个数据包,0个字节
R1(configuration – 路由映射)#exit
R1(configuration)#route
R1(configuration)#为route-
R1(config)#route-map s1 deny
R1(config)#route-map s1 deny
R1(configuration – 路由映射)#match
R1(config-route-map)#match标签
R1(config-route-map)#match标签20
R1(config-route-map)#do sh route-map
路由映射s1,拒绝,序列10
比赛条款:
标签10 20
设置子句:
策略路由匹配:0个数据包,0个字节
R1(configuration – 路由映射)#
是的 – 这是预期的。 给定的序列号可以是许可证也可以是拒绝的,并且从一个到另一个的更改不会消除内容。 至于内容本身(即匹配语句),你本质上是告诉路由图在两个标签上执行一个逻辑OR。 如果你只想匹配20,那么你应该发出“无路线图s1许可证10”