# 配置route-policy policy1,其节点号为10,匹配模式为允许。 <HUAWEI>system-view [HUAWEI]ip ip-prefix prefix-a index 10 permit 172.17.1.0 24 [HUAWEI]route-policy policy1 permit node 10 [HUAWEI-route-policy]if-match ip-prefix prefix-a
route-policy route-policy-name {permit|deny} node node if-match {acl/cost/interface/ip next-hop/|ip-prefix} apply {acl/cost/interface/ip next-hop/ip-prefix} 注意:route-policy由若干个node构成,node之间是“或”的关系(满足其中一个条件即可),且每个node下可以有若干个if-match和apply子句,if-matc...
route-policy test permit node 10 只定义节点和if-match语句可以用来过滤路由 # 匹配前缀列表 ip ip-prefix 1 index 20 permit 192.168.2.0 24 greater-equal 24 less-equal 32 # 配置路由策略,节点10满足前缀列表1则允许放行,节点20满足acl 2000则放行,其它的默认拒绝 route-policy test permit node 30 if-m...
对于route-policy的permit规则来说,凡是能够匹配ACL permit规则的条目就执行node 10中的apply 规则,并不再继续匹配下面的规则。不能够匹配ACL permit规则的条目,就继续执行下一个 node 20中的相应规则。 对于上述配置的结果是192.168.1.0/24匹配node 10 被修改LP属性为1300 ,而192.168.2.0/24 则匹配node 20 不做...
import-route direct route-policy policy_1 area 0.0.0.0 network 10.1.1.0 0.0.0.3 # route-policy policy_1 permit node 10 if-match acl 2001 # user-interface con 0 user-interface vty 0 4 user-interface vty 16 20 # R2: <r2>display current-configuration ...
[R1] route-policy 1and2 permit node 10 [R1-route-policy] if-match acl 2000 [R1-route-policy] quit [R1] rip [R1-rip-1] import-route direct route-policy 1and2 题目的需求是不允许在R1的Loopback接口上激活RIPv2,但又希望RIP域能学习到这些 Loopback路由,因此需在R1上部署路由重发布,将直连...
route-policy huawei-control permit node 10 if-match acl 2000 ospf 1 import-route direct route-policy huawei-control 路由策略方式配置实现查看 0x04 前缀列表实验练习 路由拓扑图 实验要求 1、在R2上引入这4条外部路由 2、在R1上使用filter-policy+前缀列表方式过滤 ...
[R4]ospf 1[R4-ospf-1]import-route direct route-policy gok //重发布时,调用策略gok 情况一:不设置ACL,Route-policy设置permit模式并调用。[R4]route-policy gok permit node 10[R4-route-policy]if-match acl 2000 现象:总结:不创建ACL以及相关规则,此时的ACL表为一张空白表。当实现route-policy时...
#创建一个route-policy,配置三个node: [R2]route-policyr2opermitnode10 [R2-route-policy]if-matchacl2001 [R2-route-policy]applycost10 [R2-route-policy]applycost-typetype-2 [R2-route-policy]quit [R2]route-policyr2opermitnode20 [R2-route-policy]if-matchacl2002 ...
#创建一个route-policy,配置三个node: [R2] route-policy r2o permit node 10 [R2-route-policy] if-match acl 2001 [R2-route-policy] apply cost 10 [R2-route-policy] apply cost-type type-2 [R2-route-policy] quit [R2] route-policy r2o permit node 20 ...