Filter-Policy实例export实例

拓扑

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未显示,已被过滤。

猜你喜欢

转载自blog.csdn.net/qq_48330132/article/details/127599840