文章目录
拓扑
export过滤配置在ASBR上面!
配置IP地址及OSPF
基础配置不再展示。
配置假静态路由并引入
配置假静态路
ip route-static 172.16.1.0 24 NULL 0
ip route-static 172.16.2.0 24 NULL 0
ip route-static 172.16.3.0 24 NULL 0
引入静态路由
ospf 1
import-route static
在AR2查看是否引入成功
display ip routing-table protocol ospf
配置ACL
acl 2000
rule permit source 172.16.1.0 0.0.0.255
rule deny source any
在AR1上的Filter-Policy调用ACL
filter-policy 2000 export
在AR2上查看是否过滤
display ip routing-table protocol ospf
172.16.2.0 和172.16.3.0未显示,已被过滤。