搜档网
当前位置:搜档网 > 静态路由重发布选择

静态路由重发布选择

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

相关文档
  • 静态路由选择

  • 静态路由详解

  • 静态路由设置

  • 静态路由设置及命令