一、拓扑图

clip_p_w_picpath002

二、说明:实验在点到点子接口环境下的OSPF实验

三、配置

1. 将物理接口封装成FR模式

R1#show run int s0/0

interface Serial0/0

no ip address

encapsulation frame-relay

2. 在中心路由器起多个点到点的子接口,两个子接口属于不同的子网

在R1上配置

interface Serial0/0.1 point-to-point

ip address 12.1.1.1 255.255.255.0

frame-relay interface-dlci 102

!

interface Serial0/0.2 point-to-point

ip address 13.1.1.1 255.255.255.0

frame-relay interface-dlci 103

3. 在两个分支各起一个点到点的子接口到中心路由器

R3#show run int s0/0.2

Building configuration...

Current configuration : 114 bytes

!

interface Serial0/0.2 point-to-point

ip address 13.1.1.3 255.255.255.0

frame-relay interface-dlci 301

R2# show run int s0/0.1

Building configuration...

Current configuration : 114 bytes

!

interface Serial0/0.1 point-to-point

ip address 12.1.1.2 255.255.255.0

frame-relay interface-dlci 201

end

4. 在子接口配置IP地址,并配置frame-relay interface-dlci dlci号

四、总结

1. hello时间为10秒,发送的是组播包

2. 不选举DR,不用配置接口优先级

3. 邻居自动生成,不用手工配置

R2#debug ip ospf hello

OSPF hello events debugging is on

R2#

*Mar 1 00:23:23.663: OSPF: Send hello to 224.0.0.5 area 0 on Serial0/0.1 from 12.1.1.2

R2#

*Mar 1 00:23:27.067: OSPF: Rcv hello from 1.1.1.1 area 0 from Serial0/0.1 12.1.1.1

*Mar 1 00:23:27.071: OSPF: End of hello processing

R2#

*Mar 1 00:23:33.667: OSPF: Send hello to 224.0.0.5 area 0 on Serial0/0.1 from 12.1.1.2

R2#

*Mar 1 00:23:37.063: OSPF: Rcv hello from 1.1.1.1 area 0 from Serial0/0.1 12.1.1.1

*Mar 1 00:23:37.067: OSPF: End of hello processing

R1#show ip ospf neighbor det

Neighbor 3.3.3.3, interface address 13.1.1.3

In the area 0 via interface Serial0/0.2

Neighbor priority is 0, State is FULL, 6 state changes

DR is 0.0.0.0 BDR is 0.0.0.0

Options is 0x52

LLS Options is 0x1 (LR)

Dead timer due in 00:00:37

Neighbor is up for 00:10:20

Index 2/2, retransmission queue length 0, number of retransmission 1

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

Last retransmission scan length is 1, maximum is 1

Last retransmission scan time is 0 msec, maximum is 0 msec

Neighbor 2.2.2.2, interface address 12.1.1.2

In the area 0 via interface Serial0/0.1

Neighbor priority is 0, State is FULL, 6 state changes

DR is 0.0.0.0 BDR is 0.0.0.0

Options is 0x52

LLS Options is 0x1 (LR)

Dead timer due in 00:00:31

Neighbor is up for 00:10:34

Index 1/1, retransmission queue length 0, number of retransmission 1

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

Last retransmission scan length is 1, maximum is 1

Last retransmission scan time is 0 msec, maximum is 0 msec

Serial0/0.1 is up, line protocol is up

Internet Address 12.1.1.1/24, Area 0

Process ID 110, 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:05

Supports Link-local Signaling (LLS)

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 4 msec

Neighbor Count is 1, Adjacent neighbor count is 1

Adjacent with neighbor 2.2.2.2

Suppress hello for 0 neighbor(s)