CCNP(BSCI)實驗:OSPF綜合實驗

CCNP(BSCI)實驗:OSPF綜合實驗
實驗要求:
1.R1上重分佈EIGRP100的路由進入到EIGRP125和OSPF域,發進EIGRP125要求彙總(R1 loopback 宣告進OSPF域)redis

2.R5上必定要經過彙總路由到達EIGRP100,到達EIGRP域要優選R1這條路less

3.R2上單點雙向重分佈(保證5能夠到ospf域,ospf能夠到達EIGRP 125),要求發進EIGRP的時候考慮eigrp 100的明細路由(需求 2)發到OSPF的時候要考慮那條彙總路由ide

4.Area23要求優化LSA(考慮R2作重分佈),保證R3具備可達性(R2發默認路由)oop

5.R3重分佈OSPF到RIP,保證R4能夠經過OSPF到達全網(考慮R2給R3的默認路由)優化

6.R5重分佈EIGRP到RIP(思考若是R3首先重分佈路由給R4,R5如何重分佈EIGRP給R4)rest

7.保證R4不存在次優路徑,能夠經過OSPF和EIGRP同時到達的區域,優選EIGRPorm

R1上的配
r1#sh run
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback1
ip address 172.16.0.1 255.255.255.0
!
interface Loopback2
ip address 172.16.1.1 255.255.255.0
!
interface Loopback3
ip address 172.16.2.1 255.255.255.0
!
interface Loopback4
ip address 172.16.3.1 255.255.255.0
!
interface Loopback100
ip address 10.0.0.1 255.255.255.0
!
interface Serial2/1
ip address 12.0.0.1 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
ip address 15.0.0.1 255.255.255.0
ip summary-address eigrp 125 172.16.0.0 255.255.252.0 5
//對R1上的直連路由經過彙總宣告給R5
serial restart-delay 0
!
router eigrp 125
redistribute eigrp 100 metric 10000 0 255 1 1500
network 15.0.0.1 0.0.0.0
no auto-summary
!
router eigrp 100
network 10.0.0.1 0.0.0.0
network 172.16.0.0 0.0.3.255
no auto-summary
!
router ospf 1
log-adjacency-changes
redistribute eigrp 125
redistribute eigrp 100 subnets
network 1.1.1.1 0.0.0.0 area 0
network 12.0.0.1 0.0.0.0 area 0router

R2上的配置
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
ip address 25.0.0.2 255.255.255.0
duplex half
!
interface Serial2/1
ip address 12.0.0.2 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
ip address 23.0.0.2 255.255.255.0
serial restart-delay 0
!
router eigrp 125
redistribute ospf 1 metric 10000 99999 255 1 1500 route-map cisco
network 25.0.0.2 0.0.0.0
no auto-summary
!
router ospf 1
log-adjacency-changes
area 23 nssa default-information-originate
//將area 23 配置爲NSSA區域,並通告一條默認路由
redistribute eigrp 125 subnets route-map cisco
//將eigrp重分佈進ospf時匹配一第route-map
network 2.2.2.2 0.0.0.0 area 0
network 12.0.0.2 0.0.0.0 area 0
network 23.0.0.2 0.0.0.0 area 23
!
access-list 1 deny 172.16.0.0 0.0.3.255
access-list 1 permit any
!
route-map cisco permit 10
match ip address 1
第三步:
interface Loopback0
ip address 3.3.3.3 255.255.255.0
ip ospf network point-to-point
!
interface Serial2/1
ip address 23.0.0.3 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
ip address 34.0.0.3 255.255.255.0
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 23 nssa
redistribute rip subnets
network 3.3.3.3 0.0.0.0 area 23
network 23.0.0.3 0.0.0.0 area 23
!
router rip
version 2
redistribute ospf 1 metric 1 route-map deny
offset-list 10 out 2
network 34.0.0.0
no auto-summary
!
ip classless
no ip http server
!
!
access-list 1 deny 0.0.0.0
access-list 1 permit any
access-list 10 deny 2.2.2.0 0.0.0.255
access-list 10 deny 23.0.0.0 0.0.0.255
access-list 10 permit any
!
route-map deny permit 10
match ip address 1
第四步:R4上的配置
interface Loopback0
ip address 4.4.4.4 255.255.255.0
ip ospf network point-to-point
!
!
interface Serial2/1
ip address 34.0.0.4 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
ip address 45.0.0.4 255.255.255.0
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 23 nssa
redistribute rip subnets
network 3.3.3.3 0.0.0.0 area 23
network 23.0.0.3 0.0.0.0 area 23
!
router rip
version 2
redistribute ospf 1 metric 1 route-map deny
offset-list 10 out 2
network 4.0.0.0
network 34.0.0.0
network 45.0.0.0
no auto-summary
!
access-list 1 deny 0.0.0.0
access-list 1 permit any
access-list 10 deny 2.2.2.0 0.0.0.255
access-list 10 deny 23.0.0.0 0.0.0.255
access-list 10 permit any
!
route-map deny permit 10
match ip address 1
第五步:R5上的配置
interface Loopback0
ip address 5.5.5.5 255.255.255.0
!
interface FastEthernet0/0
ip address 25.0.0.5 255.255.255.0
duplex half
!
interface Serial2/1
ip address 15.0.0.5 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
ip address 45.0.0.5 255.255.255.0
serial restart-delay 0
!
router eigrp 125
network 5.5.5.5 0.0.0.0
network 15.0.0.5 0.0.0.0
network 25.0.0.5 0.0.0.0
distance eigrp 90 115
no auto-summary
!
router rip
version 2
redistribute eigrp 125 metric 2
network 45.0.0.0
no auto-summaryserver

相關文章
相關標籤/搜索