Initial Configurations for OSPF over a Point-to-Point Link
更新时间:2023-04-06 18:14:01 阅读量: 教育文库 文档下载
- initial推荐度:
- 相关推荐
Initial Configurations for OSPF over a
Point?to?Point Link
Document ID: 13687
Introduction
Prerequisites
Requirements
Components Used
Conventions
OSPF over a Point?to?Point Link with IP Addresses on Serial Interfaces
Network Diagram
Configurations
OSPF over a Point?to?Point Link with Unnumbered Interfaces
Network Diagram
Configurations
Verify
Verify the Configuration of OSPF with IP Addresses on Serial Interfaces
Verify the Configuration of OSPF with Unnumbered Interfaces
Troubleshoot
Related Information
Introduction
On point?to?point links such as High?Level Data Link Control (HDLC) and Point?to?Point Protocol (PPP), Open Shortest Path First (OSPF) runs as a point?to?point network type. This network type is enabled by default. This document shows sample configurations for OSPF over a point?to?point link. The other network types that OSPF supports are Point to Multipoint, Broadcast, and Non?Broadcast. In order to check the network type of an interface that runs OSPF, issue the show ip ospf interface command.
The examples explained in this document work with both HDLC and PPP encapsulations. Prerequisites
Requirements
Readers of this document should have some basic knowledge of OSPF routing protocol. For more information on OSPF routing protocol, refer to the Open Shortest Path First documentation.
Components Used
The information in this document applies to these software and hardware versions.
?
Cisco 2500 routers
?
Cisco IOS? Software Release 12.2(27) that runs on routers
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Conventions
For more information on document conventions, refer to the Cisco Technical Tips Conventions .
OSPF over a Point?to?Point Link with IP Addresses on Serial Interfaces
This section presents you with the information you can use to configure routers that run OSPF and are connected through a point?to?point serial link with the use of HDLC encapsulation with IP addresses configured on serial interfaces.
Note: In order to find additional information on the commands this document uses, use the Command Lookup Tool ( registered customers only) .
Network Diagram
Configurations
This section uses these configurations.
?
Router1
?
Router2
Router1
Router1
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Serial0
ip address 1.1.1.2 255.255.255.0
!
router ospf 1
network 1.1.1.0 0.0.0.255 area 0
!??? Configures the Serial Interface S0 under OSPF area 0.
!
Router2
Router2
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Serial0
ip address 1.1.1.1 255.255.255.0
clockrate 2000000
!
router ospf 1
network 1.1.1.0 0.0.0.255 area 0
!??? Configures the Serial Interface S0 under OSPF area 0..
OSPF over a Point?to?Point Link with Unnumbered Interfaces
This section presents you with the information you can use to configure routers that run OSPF as the routing protocol and are connected through a point?to?point serial link with PPP encapsulation and with Unnumbered serial interfaces. Unnumbered serial interfaces are interfaces which do not have their own IP address. These interfaces borrow the IP address from another interface on the router which has an IP address configured. For more information on the Unnumbered serial interfaces, refer to Understanding and Configuring the ip unnumbered Command.
Note: In order to find additional information on the commands this document uses, use the Command Lookup Tool ( registered customers only) .
Network Diagram
Configurations
This section uses these configurations.
?
Router1
?
Router2
Router1
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Serial0
ip unnumbered loopback 0
!??? Configures Serial 0 as an unnumbered interface.
encapsulation ppp
!??? Configures the Encapsulation on the interface as PPP.
!
router ospf 1
network 3.3.3.0 0.0.0.255 area 0
!??? Configures the Loopback Interface L0 under OSPF area 0.
!
Router2
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Serial0
ip unnumbered loopback 0
!??? Configures Serial 0 as an unnumbered interface.
encapsulation ppp
!??? Configures the Encapsulation on the interface as PPP.
!
router ospf 1
network 2.2.2.0 0.0.0.255 area 0
!??? Configures the Loopback Interface L0 under OSPF area 0..
!
Verify
This section provides information you can use to confirm your configuration properly works.
Certain show commands are supported by the Output Interpreter Tool ( registered customers only) , which allows you to view an analysis of show command output.
Verify the Configuration of OSPF with IP Addresses on Serial Interfaces This is the show ip ospf neighbor command output issued on Router1.
Router1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 1 FULL/ ? 00:00:32 1.1.1.1 Serial 0
This output shows that Router1 has one neighbor with a Router ID of 2.2.2.2, and has formed full adjacency with this neighbor. The address 1.1.1.1 is the IP address of the Serial0 interface on Router2.
For additional information about the show ip ospf neighbor command, refer to What Does the show ip ospf neighbor Command Reveal?
This is the output of the show ip ospf interface serial 0 command on Router1. This output shows the OSPF network type for interface Serial0 as point?to?point.
Router1# show ip ospf interface serial 0
Serial0 is up, line protocol is up
Internet Address 1.1.1.2/24, Area 0
Process ID 1, Router ID 3.3.3.3, Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:05
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 2.2.2.2
Suppress hello for 0 neighbor(s)
Similarly, this example displays the output for the show ip ospf neighbor and the show ip ospf interface commands on Router2.
Router2# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 1 FULL/ ? 00:00:32 1.1.1.2 Serial0
Router2# show ip ospf interface serial 0
Serial0 is up, line protocol is up
Internet Address 1.1.1.1/24, Area 0
Process ID 1, Router ID 2.2.2.2, Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:05
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 3.3.3.3
Suppress hello for 0 neighbor(s)
Verify the Configuration of OSPF with Unnumbered Interfaces
The show ip ospf neighbor command on Router1 and Router2 confirms full adjacency. This output shows the OSPF network type for interface Serial0 as point?to?point. You can also see that the internet address is
0.0.0.0 for the serial interface on both routers. This is because an IP address is borrowed from the loopback interface (in this case) by virtue of the ip unnumbered command.
Router1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 1 FULL/ ? 00:00:37 2.2.2.2 Serial0
Router1# show ip ospf interface serial 0
Serial0 is up, line protocol is up
Internet Address 0.0.0.0/24, Area 0
Process ID 1, Router ID 3.3.3.3, Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:08
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 2.2.2.2
Suppress hello for 0 neighbor(s)
This example displays the output of the show ip ospf neighbor and show ip ospf interface serial 0 commands on Router2.
Router2#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 1 FULL/ ? 00:00:30 3.3.3.3 Serial0
Router2# show ip ospf interface serial 0
Serial0 is up, line protocol is up
Internet Address 0.0.0.0/24, Area 0
Process ID 1, Router ID 2.2.2.2, Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:08
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 3.3.3.3
Suppress hello for 0 neighbor(s)
This example shows the output of the show ip route command on Router1 with encapsulation PPP and the use of unnumbered interfaces.
Router1#show ip route
Codes: C ? connected, S ? static, I ? IGRP, R ? RIP, M ? mobile, B ? BGP
D ? EIGRP, EX ? EIGRP external, O ? OSPF, IA ? OSPF inter area
N1 ? OSPF NSSA external type 1, N2 ? OSPF NSSA external type 2
E1 ? OSPF external type 1, E2 ? OSPF external type 2, E ? EGP
i ? IS?IS, su ? IS?IS summary, L1 ? IS?IS level?1, L2 ? IS?IS level?2
ia ? IS?IS inter area, * ? candidate default, U ? per?user static route
o ? ODR, P ? periodic downloaded static route
Gateway of last resort is not set
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Serial0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
This example displays the output of the show ip route command on Router 2 with encapsulation PPP and the use of unnumbered interfaces.
Router2#show ip route
Codes: C ? connected, S ? static, I ? IGRP, R ? RIP, M ? mobile, B ? BGP
D ? EIGRP, EX ? EIGRP external, O ? OSPF, IA ? OSPF inter area
N1 ? OSPF NSSA external type 1, N2 ? OSPF NSSA external type 2
E1 ? OSPF external type 1, E2 ? OSPF external type 2, E ? EGP
i ? IS?IS, su ? IS?IS summary, L1 ? IS?IS level?1, L2 ? IS?IS level?2
ia ? IS?IS inter area, * ? candidate default, U ? per?user static route
o ? ODR, P ? periodic downloaded static route
Gateway of last resort is not set
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Serial0
This example displays the output of the show ip route command on Router1 with encapsulation HDLC and the use of unnumbered interfaces.
Router1#show ip route
Codes: C ? connected, S ? static, I ? IGRP, R ? RIP, M ? mobile, B ? BGP
D ? EIGRP, EX ? EIGRP external, O ? OSPF, IA ? OSPF inter area
N1 ? OSPF NSSA external type 1, N2 ? OSPF NSSA external type 2
E1 ? OSPF external type 1, E2 ? OSPF external type 2, E ? EGP
i ? IS?IS, su ? IS?IS summary, L1 ? IS?IS level?1, L2 ? IS?IS level?2
ia ? IS?IS inter area, * ? candidate default, U ? per?user static route
o ? ODR, P ? periodic downloaded static route
Gateway of last resort is not set
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 2.2.2.2, 00:00:08, Serial0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
This example displays output of the show ip route command on Router2 with encapsulation HDLC and the use of unnumbered interfaces.
Router1#show ip route
Codes: C ? connected, S ? static, I ? IGRP, R ? RIP, M ? mobile, B ? BGP
D ? EIGRP, EX ? EIGRP external, O ? OSPF, IA ? OSPF inter area
N1 ? OSPF NSSA external type 1, N2 ? OSPF NSSA external type 2
E1 ? OSPF external type 1, E2 ? OSPF external type 2, E ? EGP
i ? IS?IS, su ? IS?IS summary, L1 ? IS?IS level?1, L2 ? IS?IS level?2
ia ? IS?IS inter area, * ? candidate default, U ? per?user static route
o ? ODR, P ? periodic downloaded static route
Gateway of last resort is not set
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/65] via 3.3.3.3, 00:01:28, Serial0
Note: The output of the show ip route command might differ between PPP and HDLC encapsulations when IP unnumbered configuration is used on serial interfaces. PPP installs a host route to the IP address that is used on the serial interface at the other end as a directly connected network. If the same prefix is also learned through OSPF as in this configuration, it displays only as a connected route (as this show ip route output shows). This is because connected routes have a lower administrative distance than OSPF and are more preferred. You can change this behavior when you issue the no peer neighbor?route command under the serial interfaces which prevents a host route from being installed and treats it as an OSPF route.
This is not the case with HDLC because it does not install a host route. HDLC installs an OSPF route for the address on the other end when IP unnumbered is used.
Troubleshoot
For information on how to troubleshoot OSPF issues, refer to Troubleshooting OSPF.
Related Information
?
OSPF Routers Connected by a Point?to?Multipoint Link
?
OSPF Routers Connected by an Unnumbered Serial Link
?
OSPF Neighbor States
?
OSPF Technology Support Page
?
Understanding and Configuring the ip unnumbered Command
?
Technical Support & Documentation ? Cisco Systems
Contacts & Feedback | Help | Site Map
? 2009 ? 2010 Cisco Systems, Inc. All rights reserved. Terms & Conditions | Privacy Statement | Cookie Policy | Trademarks of Cisco Systems, Inc.
Updated: Jul 06, 2007Document ID: 13687
正在阅读:
Initial Configurations for OSPF over a Point-to-Point Link04-06
四年级作文训练题目10-09
官媒首次确认中国今年大阅兵:将震慑日本08-11
中考专题之 - 综合性学习(图文转换)05-28
陶瓷烫和水能烫06-28
《测绘工程产品困难类别细则》最新04-12
C++面向对象技术复习题汇总(含答案)11-22
十佳百优团支部申请材料 - 图文11-26
- 1Kodak Point-of-Care CR-ITX 550
- 2Power Point学习心得体会
- 3scanf:floating point formats not linked解决方法综述
- 4Precise point positioning for the efficient and robust analysis of GPS data from large networks
- 5CASE IN POINT 咨询行业案例分析面试完全攻略
- 6Existence of Solutions for Generalized Sturm-Liouville m-point Boundary Value Problems in Banach
- 7从一道高考题看point等词后的定语从句
- 8探讨Power Point教学过程中所遇到的问题以及解决对策-2019年文档
- 9GRE over IPsec 与IPsec over GRE的区别
- 10OSPF - 图文
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- Point
- Configurations
- Initial
- OSPF
- over
- Link
- 高考地理热点考点集锦:交通(教师版)
- 人教部编版三年级语文下册第七单元测试卷(有答案)
- 二年级上册语文同步课时练习17我真希望_语文S版
- 2014证券从业《市场基础知识》考前预测题及答案1
- 2015年执业药师考试《药学专业知识(二)》历年试题及答案
- 创建星级火力发电企业考评标准(2011年修订版征求意见稿)
- 二年级语文下册总复习知识要点.doc
- 挑战杯创业计划书(小挑)
- 吉林大学2014-2015学年本科教学质量报告
- 极限配合与技术测量习题答案 习题答案
- 杨瑞清校长的片片段段——参观南京市浦口区行知小学有感
- 七年级数学下册 第九章《分式》测试题 沪科版
- 2011四川省事业编公共基础知识最新考试试题库(完整版)
- jfnmiAAA自然辩证法-2022版课后思考题答案
- 湖北省职业院校应用电子技术中高职衔接专业教学标准
- 人教版三年级数学下册“口算乘法”的教学案例设计
- 北师大版-数学-一年级上册-《可爱的小猫》综合练习
- 2022年沈阳化工大学物理化学和化工原理(同等学力加试)复试仿真模
- (人教版)七年级英语上册(全册)题型专练汇总(共40页)
- 2014年普通高等学校招生全国统一考试(重庆卷)试题及点评