单点双向重分发 route-map策略优化部署
- 格式:docx
- 大小:210.65 KB
- 文档页数:7
单点双向重分发route-map策略优化部署
关键字:重分发route-map OSPF rip
实验日期:2015.6.18
作者:救世主220
实验拓扑如下:
Router1 配置:
R1#show run
hostname R1
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
!
interface Serial1/0
ip address 12.1.1.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 13.1.1.1 255.255.255.0
serial restart-delay 0
!
router ospf 110
router-id 1.1.1.1
log-adjacency-changes
redistribute rip subnets
network 1.1.1.1 0.0.0.0 area 0
network 13.1.1.1 0.0.0.0 area 0
!
router rip
version 2
redistribute ospf 110 metric 3 route-map ccnp network 12.0.0.0
distance 109 12.1.1.2 0.0.0.0 33
no auto-summary
!
access-list 1 permit 13.1.1.0 0.0.0.255
access-list 2 permit 34.1.1.0 0.0.0.255
access-list 32 permit 3.3.3.0 0.0.0.255
access-list 33 deny 34.1.1.0 0.0.0.255 access-list 33 deny 3.3.3.0 0.0.0.255 access-list 33 permit any
!
route-map ccnp permit 10
match ip address 1
set metric 1
!
route-map ccnp permit 15
match ip address 2
set metric 4
!
route-map ccnp permit 20
match ip address 32
set metric 2
!
route-map ccnp permit 25
!
R1到达全网最优路由表
Router2 配置:
R2#show run
!
hostname R2
!
ip address 2.2.2.2 255.255.255.0 !
interface Serial1/0
ip address 12.1.1.2 255.255.255.0 !
interface Serial1/1
ip address 24.1.1.2 255.255.255.0 serial restart-delay 0
!
router rip
version 2
network 0.0.0.0
no auto-summary
R2到达全网最优路由表
Router 3 配置:
R3#show run
hostname R3
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
ip ospf network point-to-point interface Serial1/0
ip address 13.1.1.3 255.255.255.0 serial restart-delay 0
!
interface Serial1/1
ip address 34.1.1.3 255.255.255.0 serial restart-delay 0
!
router ospf 110
router-id 3.3.3.3
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
R3到达全网最优路由表
Router4 配置:
R4#show run
hostname R4
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface Serial1/0
ip address 24.1.1.4 255.255.255.0 serial restart-delay 0
!
interface Serial1/1
ip address 34.1.1.4 255.255.255.0
serial restart-delay 0
!
router ospf 110
router-id 44.4.4.4
log-adjacency-changes
redistribute rip subnets route-map ccie network 34.1.1.4 0.0.0.0 area 0 distance 121 1.1.1.1 0.0.0.0 4
!
router rip
version 2
redistribute ospf 110 metric 2 network 4.0.0.0
network 24.0.0.0
no auto-summary
!
access-list 1 permit 12.1.1.0 0.0.0.255 access-list 2 permit 4.4.4.0 0.0.0.255 access-list 3 permit 24.1.1.0 0.0.0.255 access-list 4 deny 1.1.1.0 0.0.0.255 access-list 4 permit any
!
!
route-map ccie permit 10
match ip address 1
set metric 30
!
route-map ccie permit 20
match ip address 2
set metric-type type-1
!
route-map ccie permit 25
match ip address 3
set metric-type type-1
!
route-map ccie permit 30
!
route-map end permit 10
!