ospf特殊区域的配置案例.docx
- 文档编号:29139547
- 上传时间:2023-07-20
- 格式:DOCX
- 页数:13
- 大小:129.41KB
ospf特殊区域的配置案例.docx
《ospf特殊区域的配置案例.docx》由会员分享,可在线阅读,更多相关《ospf特殊区域的配置案例.docx(13页珍藏版)》请在冰豆网上搜索。
ospf特殊区域的配置案例
上机报告
姓名
学号
专业班级
计科1101
课程名称
路由交换技术
指导教师
机房名称
上机日期
2013年10月14日
上机项目名称
上机步骤及内容:
一、实验目的
·掌握ospf协议的stub区域配置方法
·掌握ospf协议的nssa区域配置方法
二、实验仪器设备和材料清单
器材:
路由器4台,交换机2台,导线若干
三、实验内容
·掌握ospf协议的stub区域配置方法
·掌握ospf协议的nssa区域配置方法
四、实验步骤
任务一stub区域配置
图实验拓扑图
一、配置stub区域
1、R1的配置代码
[R1]discu
#
version,Release1808,Standard
#
sysnameR1
#
domaindefaultenablesystem
#
#
interfaceEthernet0/0
portlink-moderoute
ipaddressEthernet0/
vlan-typedot1qvid1
ipaddressEthernet0/
vlan-typedot1qvid2
ipaddressEthernet0/
vlan-typedot1qvid3
ipaddressEthernet0/
vlan-typedot1qvid4
ipaddressEthernet0/1
portlink-moderoute
ipaddressSerial1/0
link-protocolppp
#
interfaceSerial2/0
link-protocolppp
#
interfaceNULL0
#
interfaceLoopBack0
ipaddress1router-idimport-routedirect
2、areanetworknetwork的配置代码
[R2]discur
#
version,Release1808,Standard
#
darp2psignature-filecfa0:
/
#
port-securityenable
#
vlan1
#
domainsystem
#
interfaceAux0
asyncmodeflow
link-protocolppp
#
interfaceEthernet0/0
portlink-moderoute
ipaddressEthernet0/1
portlink-moderoute
ipaddressSerial1/0
link-protocolppp
#
interfaceSerial2/0
link-protocolppp
#
interfaceNULL0
#
interfaceLoopBack0
ipaddress1router-idareanetworknetworkareanetwork
3、R3的配置代码
[R3]discur
#
#
interfaceEthernet0/0
portlink-moderoute
ipaddressEthernet0/1
portlink-moderoute
ipaddressSerial1/0
link-protocolppp
#
interfaceSerial2/0
link-protocolppp
#
interfaceNULL0
#
interfaceLoopBack0
ipaddress1router-idareanetworknetworkareanetworkstub
#
[R3]
4、R4的配置代码
[R4]discur
#
sysnameR4
#
interfaceEthernet0/0
portlink-moderoute
ipaddressEthernet0/1
portlink-moderoute
ipaddressSerial1/0
link-protocolppp
#
interfaceSerial2/0
link-protocolppp
#
interfaceNULL0
#
interfaceLoopBack0
ipaddress1router-idareanetworknetworknetworkstub
#
[R4]
5、查看R1中的路由表信息
图R1的路由信息
查看R4上面未配置和配置特殊区域对比:
图未配置时的状态
图配置后的状态
任务二、配置totallystub区域
1、R3中的配置代码
#
ospf1
areanetworkareanetworkstubno-summary
#
2、R4中的配置代码
#
ospf1
areanetworknetworkstubno-summary
#
3、R4的路由信息
图R1中的路由信息
任务2Nssa区域配置
图实验拓扑图
一、ospf的配置
注:
ospf的配置中,只有R1的配置代码不一样,所以只需要改写R1的代码即可。
1、R1的配置代码
#
interfaceEthernet0/0
portlink-moderoute
ipaddressEthernet0/
vlan-typedot1qvid1
ipaddressEthernet0/
ipaddressEthernet0/
vlan-typedot1qvid3
ipaddressEthernet0/
ipaddressEthernet0/1
portlink-moderoute
#
interfaceSerial1/0
link-protocolppp
ipaddressLoopBack0
ipaddress1
2、areanetworknetworknetworknetworknetworknetwork的路由信息
图R1的路由信息
2、配置NSSA区域
R3上面的配置信息:
[R3]discur
#
version,Release1808,Standard
#
interfaceEthernet0/0
portlink-moderoute
ipaddressEthernet0/1
portlink-moderoute
ipaddressSerial1/0
link-protocolppp
#
interfaceSerial2/0
link-protocolppp
#
interfaceNULL0
#
interfaceLoopBack0
ipaddress1router-idareanetworknetworkareanetworknssadefault-route-advertise
#
return
[R3]
R4上面的配置信息:
[R4]discur
#
interfaceEthernet0/
vlan-typedot1qvid1
ipaddressEthernet0/
vlan-typedot1qvid2
ipaddressEthernet0/
vlan-typedot1qvid3
ipaddressEthernet0/
vlan-typedot1qvid4
ipaddressEthernet0/1
portlink-moderoute
ipaddressSerial1/0
link-protocolppp
#
interfaceSerial2/0
link-protocolppp
#
interfaceNULL0
#
interfaceLoopBack0
ipaddress1router-idimport-routedirect
areanetworknetworknssa
#
return
[R4]
R4上面的特殊区域LSDB链路状态数据库
图R4上面的LSDB表
图R4的路由信息
总结:
通过这次实验,我发现问题不仅仅是从书本上获得的,更多的问题是在做实验的过程中,反反复复实验后,才发现的。
同时,在对实验代码配置中的顺序问题,也是一个深刻的教训,以后得记住。
上机成绩、评语
指导教师签名
批改日期
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ospf 特殊 区域 配置 案例