ip ip-prefix as_path permit 10.0.1.1 32 route-policy as_path_permit permit node 10 if-match ip-prefix as_path apply as-path 500 500 500 500 additive 创建路由策略的后继索引节点允许未被匹配的路由能够正常被接收。 [R2]route-policy as
在 R2 上使用前缀列表匹配路由由 192.168.1.0/24。[R2]ip ip-prefix 1 permit 192.168.1.0 24 在 R2 上使用 Route-Policy 将 192.168.1.0/24 的 MED 值配置为 200。[R2-route-policy 1 permit node 10[R2-route-policy]if-match ip-prefix 1[R2-route-policy]apply cost 200[R2-route-policy...
配置(filter-policy)过滤策略调用acl:filter-policy (acl编号) impory 配置前缀列表过滤路由: ip ip-prefix 1 deny (ip地址) (子网掩码) greater-equal (网络位) less-equal(网络位) 注解: greater-equal:表示大于等于less-equal:表示小于等于 配置放行所有其它路由:ip ip-prefix 1 permit 0.0.0.0 0 less-e...
[R3-LoopBack4]ip add 172.16.3.1 32 在R3 ospf引入直连路由,并过滤掉172.16.0.1/32网段,使用地址前缀方式 先配置地址前缀 ip ip-prefix pre1 index 10 permit 172.16.1.1 32 ip ip-prefix pre1 index 20 permit 172.16.2.1 32 ip ip-prefix pre1 index 30 permit 172.16.3.1 32 ...
R1ip ip-prefix as_path-permit 10.0.2.2 32route-policy as_path permit node 10if-match ip-prefix as_pathapply as-path 500 500 additiveroute-policy as_path permit node 20bgp 100peer 10.0.15.5 route-policy as_path import 配置完成后,在R1上查看BGP路由表 在 R1 上使用 tracert 命令验证...
ip add 10.0.45.4 24 q R5: sys sysname R5 int loop 0 ip add 10.0.5.5 32 int g0/0/0 ip add 10.0.45.5 24 q 2.配置BGP路由协议 先在AS 200内进行OSPF协议的配置。 [R2]ospf 1 router-id 10.0.2.2 [R2-ospf-1]area 0 [R2-ospf-1-area-0.0.0.0]network 10.0.23.0 0.0.0.255 ...
4.引入 RIP 路由[R2]ip ip-prefix 1 permit 10.0.1.1 32[R2]route-policy 1 permit node 10[R2-route-policy]if-match ip-prefix 1[R2-route-policy]bgp 100[R2-bgp]import-route rip 1 route-policy 1[R2-bgp]rip 1[R2-rip-1]default-route originate 5.引入 OSPF 路由[R4]ip ip-prefix 1 ...
ip add 10.0.45.4 24 q R5: sys sysname R5 int loop 0 ip add 10.0.5.5 32 int g0/0/0 ip add 10.0.45.5 24 q 2.配置BGP路由协议 先在AS 200内进行OSPF协议的配置。 [R2]ospf 1 router-id 10.0.2.2 [R2-ospf-1]area 0 [R2-ospf-1-area-0.0.0.0]network 10.0.23.0 0.0.0.255 ...
ip add 10.0.34.3 24q R4:syssysname R4int loop 0ip add 10.0.4.4 32int g0/0/0ip add 10.0.34.4 24int g0/0/1ip add 10.0.45.4 24q R5:syssysname R5int loop 0ip add 10.0.5.5 32int g0/0/0ip add 10.0.45.5 24q 2.配置BGP路由协议[R2]bgp 100[R2-bgp]router-id 10.0.2.2[R2-bgp]...
[R2]ip ip-prefix 1 permit 10.0.25.5 32[R2]route-policy 1 deny node 10[R2-route-policy]if-match ip next-hop ip-prefix 1[R2-route-policy]route-policy 1 permit node 20[R2-route-policy]bgp 100[R2-bgp]peer 10.0.26.6 route-policy 1 export 配置完毕 ...