实验室之OSPF篇:帧中继承载OSPF- 点对多点 非广播(Point-to-Multipoint No-broadcast)

来源: 作者: 2007-12-03 出处:pcdog.com

arp  vlan  xml  广播  

帧中继承载OSPF- 点对多点 非广播(Point-to-Multipoint No-broadcast)

目标:

在R1,R4和R5之间的帧中继网络中配置OSPF,网络类型为point-to-multipoint non-broadcast,实现VLAN A, VLAN B和VLAN C的互通。任何链路都不能配置广播支持。

实验室之OSPF篇:帧中继承载OSPF- 点对多点 非广播(Point-to-Multipoint No-broadcast)


配置指南:

R1上配置接口Ethernet0/0地址为1.0.0.1/8

R4上配置接口Ethernet0/0地址为4.0.0.4/8

R5上配置接口Ethernet0/0地址为5.0.0.5/8

R1上配置接口Seria0/0地址为10.0.0.1/8

R4上配置接口Serial0/0地址为10.0.0.4/8

R5上配置接口Serial0/0地址为10.0.0.5/8

R1,R4R5Serial接口上配置帧中继封装

R4R5上禁用帧中继反向地址解析

R1上配置静态映射,通过DCLI10410.0.0.4和通过DLCI10510.0.0.5

R4上配置静态映射,通过DLCI40110.0.0.1

R5上配置静态映射,通过DLCI50110.0.0.1

R4R5之间不配置静态映射

在R1, R4, 和R5的Serial接口上配置OSPF网络类型为point-to-multipoint non-broadcast

配置R1, R4R5中所有接口加入area 0

R1上配置对R4R5的邻居命令

自我提问:

point-to-multipoint non-broadcast的网络类型和其他网络类型有什么不同?

point-to-multipoint non-broadcastpoint-to-multipoint有什么相似的?

这种类型对三层到二层的解析产生什么影响?

最终配置和验证:

R1:

interface Ethernet0/0

ip address 1.0.0.1 255.0.0.0

!

interface Serial0/0

ip address 10.0.0.1 255.0.0.0

encapsulation frame-relay

ip ospf network point-to-multipoint non-broadcast

frame-relay map ip 10.0.0.4 104

frame-relay map ip 10.0.0.5 105

!

router ospf 1

network 0.0.0.0 255.255.255.255 area 0

neighbor 10.0.0.5

neighbor 10.0.0.4

 

R4:

interface Ethernet0/0

ip address 4.0.0.4 255.0.0.0

!

interface Serial0/0

ip address 10.0.0.4 255.0.0.0

encapsulation frame-relay

ip ospf network point-to-multipoint non-broadcast

frame-relay map ip 10.0.0.1 401

no frame-relay inverse-arp

!

router ospf 1

network 0.0.0.0 255.255.255.255 area 0

 

R5:

interface Ethernet0/0

ip address 5.0.0.5 255.0.0.0

!

interface Serial0/0

ip address 10.0.0.5 255.0.0.0

encapsulation frame-relay

ip ospf network point-to-multipoint non-broadcast

frame-relay map ip 10.0.0.1 501

no frame-relay inverse-arp

!

router ospf 1

network 0.0.0.0 255.255.255.255 area 0

 

R1#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

10.0.0.5 1 FULL/ - 00:01:49 10.0.0.5 Serial0/0

10.0.0.4 1 FULL/ - 00:01:49 10.0.0.4 Serial0/0

R4#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

10.0.0.1 1 FULL/ - 00:01:47 10.0.0.1 Serial0/0

R5#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

10.0.0.1 1 FULL/ - 00:01:56 10.0.0.1 Serial0/0

R1#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, 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

C 1.0.0.0/8 is directly connected, Ethernet0

O 4.0.0.0/8 [110/74] via 10.0.0.4, 00:56:28, Serial0

O 5.0.0.0/8 [110/74] via 10.0.0.5, 00:56:28, Serial0

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks

C 10.0.0.0/8 is directly connected, Serial0

O 10.0.0.4/32 [110/64] via 10.0.0.4, 00:56:28, Serial0

O 10.0.0.5/32 [110/64] via 10.0.0.5, 00:56:28, Serial0

R4#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, 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

O 1.0.0.0/8 [110/74] via 10.0.0.1, 00:00:47, Serial0

C 4.0.0.0/8 is directly connected, Ethernet0

O 5.0.0.0/8 [110/138] via 10.0.0.1, 00:00:47, Serial0

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks

C 10.0.0.0/8 is directly connected, Serial0

O 10.0.0.1/32 [110/64] via 10.0.0.1, 00:00:47, Serial0

O 10.0.0.5/32 [110/128] via 10.0.0.1, 00:00:47, Serial0

R5#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, 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

O 1.0.0.0/8 [110/74] via 10.0.0.1, 00:58:35, Serial0

O 4.0.0.0/8 [110/138] via 10.0.0.1, 00:58:35, Serial0

C 5.0.0.0/8 is directly connected, Ethernet0

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks

C 10.0.0.0/8 is directly connected, Serial0

O 10.0.0.1/32 [110/64] via 10.0.0.1, 00:58:35, Serial0

O 10.0.0.4/32 [110/128] via 10.0.0.1, 00:58:35, Serial0

R4#ping 10.0.0.5

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.0.0.5, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 116/118/128 ms

R4#ping 5.0.0.5

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 5.0.0.5, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 116/118/128 ms

 

注解:

point-to-multipoint non-broadcast和point-to-multipoint非常相像,不支持DR/BDR选举,相同的下一跳处理等,唯一的不同就是使用单播而不是组播。


更多内容请看PCdog.com--OSPF路由协议  OSPF协议  OSPF协议配置专题
上一篇:实验室之OSPF篇:帧中继承载OSPF –点对点( Point-to-Point)
下一篇:实验室之OSPF篇:帧中继承载OSPF – 点对多点(Point-to-Multipoint)