侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

CCNP(BSCI)实验:OSPF综合实验

2023-04-05 星期三 / 0 评论 / 0 点赞 / 66 阅读 / 5571 字

实验要求:1.R1上重分布EIGRP100的路由进入到EIGRP125和OSPF域,发进EIGRP125要求汇总(R1 loopback 宣告进OSPF域)2.R5上一定要通过汇总路由到达EIGRP1

.


实验要求:
1.R1上重分布EIGRP100的路由进入到EIGRP125和OSPF域,发进EIGRP125要求汇总(R1 loopback 宣告进OSPF域)

2.R5上一定要通过汇总路由到达EIGRP100,到达EIGRP域要优选R1这条路

3.R2上单点双向重分布(保证5可以到ospf域,ospf可以到达EIGRP 125),要求发进EIGRP的时候考虑eigrp 100的明细路由(需求 2)发到OSPF的时候要考虑那条汇总路由

4.Area23要求优化LSA(考虑R2做重分布),保证R3具有可达性(R2发默认路由)

5.R3重分布OSPF到RIP,保证R4可以通过OSPF到达全网(考虑R2给R3的默认路由)

6.R5重分布EIGRP到RIP(思考如果R3首先重分布路由给R4,R5如何重分布EIGRP给R4)

7.保证R4不存在次优路径,可以通过OSPF和EIGRP同时到达的区域,优选EIGRP

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 0

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-summary

.

广告 广告

评论区