设为首页 收藏本站
查看: 1234|回复: 0

[经验分享] CCNP---OSPF多区域+帧中继配置

[复制链接]
累计签到:21 天
连续签到:1 天
发表于 2015-11-5 10:55:19 | 显示全部楼层 |阅读模式
一 实验环境:C3640-IK9O3S-M Version 12.4(10)
二 实验拓扑
http://www.joansky.com/wp-content/uploads/2011/09/ospf+fr.png
三 实验描述:
根据拓扑中区域的划分配置OSPF。OSPF的骨干区域在R1的loopback上。配置帧中继,R1与R2在Area 100,网络类型为点到点。R1与R3在Area 300,网络类型为NBMA,且Area 300 为NSSA类型。R2上的loopback在Area 200,且对路由进行汇总。将R3上的loopback口重分布进OSPF中。为了使全网都通,需要在Area 300上创建虚链路。
四实验步骤:
1 R3上帧中继配置
//1 启动帧中继交换
frame-relay switching

//2 进入接口
interface Serial0/0
//3 删除IP地址
no ip address
//4 配置帧中继封装类型
encapsulation frame-relay IETF
//下面两条命令可不加
no ip route-cache cef
no ip route-cache
serial restart-delay 0
//5 配置时钟
clock rate 64000
//6 配置为DCE终端类型
frame-relay intf-type dce
//7 配置帧中继路由
frame-relay route 102 interface Serial0/1 201
frame-relay route 103 interface Serial0/2 301
//8 别忘了要启用接口,这里是不用显示no shutdown命令的
!
interface Serial0/1
no ip address
encapsulation frame-relay IETF
serial restart-delay 0
frame-relay intf-type dce
frame-relay route 201 interface Serial0/0 102
!
interface Serial0/2
no ip address
encapsulation frame-relay IETF
serial restart-delay 0
clock rate 64000
frame-relay intf-type dce
frame-relay route 301 interface Serial0/0 103
!
2  R1基本配置
interface Loopback1
ip address 10.1.1.9 255.255.255.252
ip ospf network point-to-point
!
interface Serial0/1
no ip address
encapsulation frame-relay IETF
serial restart-delay 0
!
interface Serial0/1.102 point-to-point
ip address 10.1.1.1 255.255.255.252
frame-relay interface-dlci 102
!
interface Serial0/1.103 point-to-point
ip address 10.1.1.5 255.255.255.252
frame-relay interface-dlci 103
!
3 R2 基本配置
interface Loopback101
ip address 10.1.1.101 255.255.255.252
ip ospf network point-to-point
!
interface Loopback105
ip address 10.1.1.105 255.255.255.252
ip ospf network point-to-point
!
interface Loopback109
ip address 10.1.1.109 255.255.255.252
ip ospf network point-to-point
!
interface Loopback113
ip address 10.1.1.113 255.255.255.252
ip ospf network point-to-point
!
interface Serial0/1
ip address 10.1.1.2 255.255.255.252
encapsulation frame-relay IETF
serial restart-delay 0
frame-relay interface-dlci 201
!
4 R4基本配置
interface Loopback3
ip address 10.1.1.13 255.255.255.252
!
interface Serial0/1
ip address 10.1.1.6 255.255.255.252
encapsulation frame-relay IETF
serial restart-delay 0
frame-relay interface-dlci 301
!
5 配置Area 0区域
R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)network 10.1.1.8 0.0.0.3 area 0
6 配置Area100区域,网络类型为点到点
修改Serial0/1.102的接口类型
R1(config)#interface Serial0/1.102 point-to-point
R1(config-subif)ip ospf network point-to-point
注:如果不确定接口类型,可以使用sh ip os int s0/1.102命令进行查看
R1(config)#router ospf 1
R1(config-router)network 10.1.1.0 0.0.0.3 area 100
R2(config)router ospf 1
R2(config-router)router-id 2.2.2.2
R2(config-router)network 10.1.1.0 0.0.0.3 area 100
因为R2上s0/1的接口类型默认为点到点,所以无需修改

7 配置Area300区域,网络类型为NBMA,且为NSSA类型

修改Serial0/1.103的接口类型
R1(config)#interface Serial0/1.103 point-to-point
R1(config-subif)ip ospf network non-broadcast
R1(config)#router ospf 1
R1(config-router)network 10.1.1.4 0.0.0.3 area 300
R1(config-router)area 300 nssa
//在NBMA网络中需手工指点neighbor
R1(config-router)neighbor 10.1.1.6
R4(config)router ospf 1
R4(config-router)router-id 4.4.4.4
R4(config-router)network 10.1.1.4 0.0.0.3 area 300
R4(config-router)area 300 nssa
8 配置Area 200区域,且进行路由汇总
R2(config-router)network 10.1.1.96 0.0.0.31 area 200
R2(config-router)area 200 range 10.1.1.96 255.255.255.224
R1-R2配置为虚链路,实现全网互通
R1(config-router)area 100 virtual-link 2.2.2.2
R2(config-router) area 100 virtual-link 1.1.1.1
9 将R4回环口的路由重分布进OSPF中
R4(config-router)redistribute connected subnets
10 最后查看R1路由条目
R1# show ip route
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C       10.1.1.8/30 is directly connected, Loopback1
O N2    10.1.1.12/30 [110/20] via 10.1.1.6, 00:00:27, Serial0/1.103
C       10.1.1.0/30 is directly connected, Serial0/1.102
C       10.1.1.4/30 is directly connected, Serial0/1.103
O IA    10.1.1.96/27 [110/65] via 10.1.1.2, 00:00:27, Serial0/1.102

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-135376-1-1.html 上篇帖子: CCNP_第十九章_NAT网络地址转换 下篇帖子: CISCO网络设备用户权限级别
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表