收藏 分销(赏)

OSPF-特殊区域的配置案例.doc

上传人:w****g 文档编号:3310621 上传时间:2024-07-01 格式:DOC 页数:14 大小:1.18MB 下载积分:8 金币
下载 相关 举报
OSPF-特殊区域的配置案例.doc_第1页
第1页 / 共14页
OSPF-特殊区域的配置案例.doc_第2页
第2页 / 共14页


点击查看更多>>
资源描述
上机报告 姓名 学号 专业班级 计科1101 课程名称 路由交换技术 指导教师 机房名称 上机日期 2013 年10月 14 日 上机项目名称 上机步骤及内容: 一、 实验目的 ·掌握ospf协议的stub区域配置方法 ·掌握ospf协议的nssa区域配置方法 二、 实验仪器设备和材料清单 器材:路由器4台,交换机2台,导线若干 三、 实验内容 ·掌握ospf协议的stub区域配置方法 ·掌握ospf协议的nssa区域配置方法 四、 实验步骤 任务一 stub区域配置 图1.1 实验拓扑图 一、 配置stub区域 1、 R1的配置代码 [R1]dis cu # version 5.20, Release 1808, Standard # sysname R1 # domain default enable system # # interface Ethernet0/0 port link-mode route ip address 192.168.2.1 255.255.255.0 # interface Ethernet0/0.1 vlan-type dot1q vid 1 ip address 202.168.0.1 255.255.255.0 # interface Ethernet0/0.2 vlan-type dot1q vid 2 ip address 202.168.1.1 255.255.255.0 # interface Ethernet0/0.3 vlan-type dot1q vid 3 ip address 202.168.2.1 255.255.255.0 # interface Ethernet0/0.4 vlan-type dot1q vid 4 ip address 202.168.3.1 255.255.255.0 # interface Ethernet0/1 port link-mode route ip address 10.0.0.1 255.255.255.0 # interface Serial1/0 link-protocol ppp # interface Serial2/0 link-protocol ppp # interface NULL0 # interface LoopBack0 ip address 1.1.1.1 255.255.255.255 # ospf 1 router-id 1.1.1.1 import-route direct area 0.0.0.1 network 10.0.0.0 0.0.0.255 network 1.1.1.0 0.0.0.255 # [R1] 2、 R2的配置代码 [R2]dis cur # version 5.20, Release 1808, Standard # dar p2p signature-file cfa0:/p2p_default.mtd # port-security enable # vlan 1 # domain system # interface Aux0 async mode flow link-protocol ppp # interface Ethernet0/0 port link-mode route ip address 10.0.0.2 255.255.255.0 # interface Ethernet0/1 port link-mode route ip address 20.0.0.1 255.255.255.0 # interface Serial1/0 link-protocol ppp # interface Serial2/0 link-protocol ppp # interface NULL0 # interface LoopBack0 ip address 2.2.2.2 255.255.255.255 # ospf 1 router-id 2.2.2.2 area 0.0.0.0 network 20.0.0.0 0.0.0.255 network 2.2.2.0 0.0.0.255 area 0.0.0.1 network 10.0.0.0 0.0.0.255 # [R2] 3、 R3的配置代码 [R3]dis cur # # interface Ethernet0/0 port link-mode route ip address 20.0.0.2 255.255.255.0 # interface Ethernet0/1 port link-mode route ip address 30.0.0.1 255.255.255.0 # interface Serial1/0 link-protocol ppp # interface Serial2/0 link-protocol ppp # interface NULL0 # interface LoopBack0 ip address 3.3.3.3 255.255.255.255 # ospf 1 router-id 3.3.3.3 area 0.0.0.0 network 20.0.0.0 0.0.0.255 network 3.3.3.0 0.0.0.255 area 0.0.0.2 network 30.0.0.0 0.0.0.255 stub # [R3] 4、 R4的配置代码 [R4]dis cur # sysname R4 # interface Ethernet0/0 port link-mode route ip address 40.0.0.1 255.255.255.0 # interface Ethernet0/1 port link-mode route ip address 30.0.0.2 255.255.255.0 # interface Serial1/0 link-protocol ppp # interface Serial2/0 link-protocol ppp # interface NULL0 # interface LoopBack0 ip address 4.4.4.4 255.255.255.255 # ospf 1 router-id 4.4.4.4 area 0.0.0.2 network 30.0.0.0 0.0.0.255 network 40.0.0.0 0.0.0.255 network 4.4.4.0 0.0.0.255 stub # [R4] 5、 查看R1中的路由表信息 图 1.2 R1的路由信息 查看R4上面未配置和配置特殊区域对比: 图1.3 未配置时的状态 图1.4 配置后的状态 任务二、配置totally stub区域 1、R3中的配置代码 # ospf 1 area 0.0.0.1 network 20.0.0.0 0.0.0.255 area 0.0.0.2 network 30.0.0.0.0.0.0.255 stub no-summary # 2、 R4中的配置代码 # ospf 1 area 0.0.0.2 network 30.0.0.0 0.0.0.255 network 40.0.0.0 0.0.0.255 stub no-summary # 3、R4的路由信息 图 3.1 R1中的路由信息 任务2 Nssa区域配置 图1.1 实验拓扑图 一、 ospf的配置 注:ospf的配置中,只有R1的配置代码不一样,所以只需要改写R1的代码即可。 1、R1的配置代码 # interface Ethernet0/0 port link-mode route ip address 192.169.5.1 255.255.255.0 # interface Ethernet0/0.1 vlan-type dot1q vid 1 ip address 192.169.6.1 255.255.255.0 # interface Ethernet0/0.2 ip address 192.169.7.1 255.255.255.0 # interface Ethernet0/0.3 vlan-type dot1q vid 3 ip address 192.169.8.1 255.255.255.0 # interface Ethernet0/0.4 ip address 192.169.9.1 255.255.255.0 # interface Ethernet0/1 port link-mode route # interface Serial1/0 link-protocol ppp ip address 10.0.3.2 255.255.255.0 # interface LoopBack0 ip address 1.1.1.1 255.255.255.255 # ospf 1 area 0.0.0.2 network 10.0.3.0 0.0.0.255 network 192.169.5.0 0.0.0.255 network 192.169.6.0 0.0.0.255 network 192.169.7.0 0.0.0.255 network 192.169.8.0 0.0.0.255 network 192.169.9.0 0.0.0.255 # 2、 R1的路由信息 图 2.1 R1的路由信息 二、 配置NSSA区域 R3上面的配置信息: [R3]dis cur # version 5.20, Release 1808, Standard # interface Ethernet0/0 port link-mode route ip address 20.0.0.2 255.255.255.0 # interface Ethernet0/1 port link-mode route ip address 30.0.0.1 255.255.255.0 # interface Serial1/0 link-protocol ppp # interface Serial2/0 link-protocol ppp # interface NULL0 # interface LoopBack0 ip address 3.3.3.3 255.255.255.255 # ospf 1 router-id 3.3.3.3 area 0.0.0.0 network 20.0.0.0 0.0.0.255 network 3.3.3.0 0.0.0.255 area 0.0.0.2 network 30.0.0.0 0.0.0.255 nssa default-route-advertise # return [R3] R4上面的配置信息: [R4]dis cur # interface Ethernet0/0.1 vlan-type dot1q vid 1 ip address 202.168.4.1 255.255.255.0 # interface Ethernet0/0.2 vlan-type dot1q vid 2 ip address 202.168.5.1 255.255.255.0 # interface Ethernet0/0.3 vlan-type dot1q vid 3 ip address 202.168.6.1 255.255.255.0 # interface Ethernet0/0.4 vlan-type dot1q vid 4 ip address 202.168.7.1 255.255.255.0 # interface Ethernet0/1 port link-mode route ip address 30.0.0.2 255.255.255.0 # interface Serial1/0 link-protocol ppp # interface Serial2/0 link-protocol ppp # interface NULL0 # interface LoopBack0 ip address 4.4.4.4 255.255.255.255 # ospf 1 router-id 4.4.4.4 import-route direct area 0.0.0.2 network 30.0.0.0 0.0.0.255 network 4.4.4.0 0.0.0.255 nssa # return [R4] R4上面的特殊区域LSDB链路状态数据库 图2.1 R4上面的LSDB表 图2.2 R4的路由信息 总结: 通过这次实验,我发现问题不仅仅是从书本上获得的,更多的问题是在做实验的过程中,反反复复实验后,才发现的。同时,在对实验代码配置中的顺序问题,也是一个深刻的教训,以后得记住。 上机成绩、评语 指导教师签名 批改日期 (注:专业文档是经验性极强的领域,无法思考和涵盖全面,素材和资料部分来自网络,供参考。可复制、编制,期待你的好评与关注)
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服