静态路由重发布选择

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

prefix-list

router ospf 12

log-adjacency-changes

redistribute static metric-type 1 subnets route-map deny-sh-tunnel network 10.0.4.195 0.0.0.0 area 0

network 10.0.22.76 0.0.0.3 area 0

ip prefix-list deny-sh-tunnel seq 10 permit 10.0.135.70/32

!

route-map deny-sh-tunnel deny 10

match ip address prefix-list deny-sh-tunnel

!

route-map deny-sh-tunnel permit 20

ACL

access-list 102 permit ip 3.3.3.0 255.255.250 any

route-map cisco permit 10

match ip address 102

router ospf 1

router-id 1.1.1.1

log-adjacency-changes

redistribute static subnets route-map cisco

network 1.1.1.1 0.0.0.0 area 0

network 2.2.2.0 0.0.0.3 area 0

做完后在R2上就只能看到 3.3.3.0 的路由了

1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1 [110/11] via 2.2.2.1, 00:06:51, Ethernet0/0

2.0.0.0/30 is subnetted, 1 subnets

C 2.2.2.0 is directly connected, Ethernet0/0

3.0.0.0/24 is subnetted, 1 subnets

O E2 3.3.3.0 [110/20] via 2.2.2.1, 00:06:51, Ethernet0/0

9.0.0.0/32 is subnetted, 1 subnets

C 9.9.9.9 is directly connected, Loopback1

ACL

access-list 10 permit 172.28.128.0 0.0.7.255 route-map cisco permit 10

matchip address 10

redistribute static subnets route-map cisco

相关文档
最新文档