OSPF实验1 点对点OSPF基本配置

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

OSPF实验一点对点OSPF基本配置

一、实验目的

掌握在专线(点对点)上配置OSPF路由协议。

应用场景:企业的总部和分支之间通过E1、POS等W AN专线技术互联,为些需要在专线上配置并运行OSPF路由协议。

二、实验设备

两台Cisco 7206 VXR 中由器、IOS版本V ersion 12.3(5)。

三、实验拓扑

四、实验步骤

基本配置:

1、设备命名。

2、用Ping命令测试总部和分部链路的连通性。

3、按照拓扑图配置好接口IP和接口描述信息。

OSPF配置:

4、启动OSPF进程并配置Router-ID。

5、把相关接口放入OSPF进程并绑定特定的区域。

五、配置命令

R1

enable

configure terminal

hostname R1

no ip domain-lookup

line console 0

logging synchronous

interface loopback 0

ip address 1.1.1.1 255.255.255.255

no shutdown

interface loopback 1

ip address 192.168.1.1 255.255.255.0

no shutdown

interface serial 1/0

ip address 10.1.1.1 255.255.255.252

no shutdown

exit

router ospf 1

router-id 1.1.1.1

network 10.1.1.1 0.0.0.0 area 1

network 192.168.1.1 0.0.0.0 area 1

R2

enable

configure terminal

hostname R2

no ip domain-lookup

line console 0

logging synchronous

interface loopback 0

ip address 1.1.1.2 255.255.255.255

no shutdown

interface loopback 1

ip address 192.168.2.1 255.255.255.0

no shutdown

interface serial 1/0

ip address 10.1.1.2 255.255.255.252

no shutdown

exit

router ospf 1

router-id 1.1.1.2

network 10.1.1.2 0.0.0.0 area 1

network 192.168.2.1 0.0.0.0 area 1

六、测试结果

1、使用Show ip rout查看路由表。

R1#show ip route

Codes: C - connected, S - static, 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

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

1.0.0.0/32 is subnetted, 1 subnets

C 1.1.1.1 is directly connected, Loopback0

10.0.0.0/30 is subnetted, 1 subnets

C 10.1.1.0 is directly connected, Serial1/0

C 192.168.1.0/24 is directly connected, Loopback1

192.168.2.0/32 is subnetted, 1 subnets

O 192.168.2.1 [110/65] via 10.1.1.2, 00:00:40, Serial1/0

2、使用Show ip ospf neighbor 查看邻居表。

R1#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface 1.1.1.2 0 FULL/ - 00:00:39 10.1.1.2 Serial1/0

3、使用Show ip ospf interface s0 查看接口的网络类型。

R1#show ip ospf interface s1/0

Serial1/0 is up, line protocol is up

Internet Address 10.1.1.1/30, Area 1

Process ID 1, Router ID 1.1.1.1, 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

oob-resync timeout 40

Hello due in 00:00:06

Index 1/1, flood queue length 0

Next 0x0(0)/0x0(0)

Last flood scan length is 1, maximum is 1

4、扩展Ping 测试用户网关连通性。

R1#ping

Protocol [ip]:

Target IP address: 192.168.1.1

Repeat count [5]:

Datagram size [100]:

Timeout in seconds [2]:

Extended commands [n]: y

Source address or interface:

Type of service [0]:

Set DF bit in IP header? [no]:

V alidate reply data? [no]:

Data pattern [0xABCD]:

相关文档
最新文档