6.ospf单区域

6.ospf单区域

ID:40527473

大小:130.00 KB

页数:11页

时间:2019-08-04

6.ospf单区域_第1页
6.ospf单区域_第2页
6.ospf单区域_第3页
6.ospf单区域_第4页
6.ospf单区域_第5页
资源描述:

《6.ospf单区域》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、OSPF:OpenShortestPathFirst开放最短路径优先协议拓扑图如下:(点对点多路访问型)接口连接:Router1S0/0<---->Router2S0/0Router3S0/1<---->Router2S0/1Router3F1/0<---->Router2F1/0路由器参考配置如下:路由器R1的配置:Router>//用户模式Router>enable//从用户模式进入到特权模式Router#configureterminal//从特权模式进入到全局模式Router(config)#hostnameR1//给路由器从命名为

2、R1R1(config)#noipdomainlookup//关闭域名查找R1(config)#lineconsole0//进入控制口R1(config-line)#loggingsynchronous//光标跟随R1(config-line)#exec-timeout00//关闭延迟R1(config-line)#exitR1(config)#interfaceloopback0//配置回环接口的ip地址R1(config-if)#ipaddress1.1.1.1255.255.255.0R1(config-if)#interfaces0

3、/0//配置串口的ip地址R1(config-if)#ipaddress192.1.1.1255.255.255.0R1(config-if)#noshutdown//激活物理接口R1(config-if)#endR1#showiproute//查看路由表信息Codes:C-connected,S-static,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype

4、2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisnotset1.0.0.0/24issubnetted,1subnetsC1.1.1.0isdirectlyconnec

5、ted,Loopback0C192.1.1.0/24isdirectlyconnected,Serial0/0R1#configureterminal//进入全局配置模式R1(config)#routerospf1//启用ospf协议加进程号(进程号可不同)R1(config-router)#network1.1.1.10.0.0.0area2//宣告ip、反向掩码和区域号R1(config-router)#network192.1.1.10.0.0.0area2//区域号要相同R1(config-router)#endR1#showipr

6、oute//查看路由表信息Codes:C-connected,S-static,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2ia-IS-ISinterarea,*-

7、candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisnotset//[110/65]:管理距离110;成本(度量值)651.0.0.0/24issubnetted,1subnetsC1.1.1.0isdirectlyconnected,Loopback02.0.0.0/32issubnetted,1subnetsO2.2.2.2[110/65]via192.1.1.2,00:02:22,Serial0/

8、03.0.0.0/32issubnetted,1subnetsO3.3.3.3[110/129]via192.1.1.2,00:02:22,Serial0/0O193.1.1.0

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。