(1) 帧中继接口在不同子网;
(2) Hello包组播发送,无需手工配OSPF邻居; (3) 不选举DR;
(4) 需要手工进行帧中继映射。 R1(config)#int s0/0
R1(config-if)#encapsulation frame-relay R1(config-if)#no sh
R1(config)#int s0/0.1 point-to-point
R1(config-subif)#ip add 192.168.1.1 255.255.255.0 R1(config-subif)#frame-relay interface-dlci 102 R1(config-fr-dlci)#int s0/0.2 p
R1(config-subif)#ip add 192.168.2.1 255.255.255.0 R1(config-subif)#frame-relay interface-dlci 103 R1(config-fr-dlci)#int s0/0.3 p
R1(config-subif)#ip add 192.168.3.1 255.255.255.0 R1(config-subif)#frame-relay interface-dlci 104
R2(config)#int s0/0
R2(config-if)#encapsulation frame-relay R2(config-if)#ip add 192.168.1.2 255.255.255.0
R2(config-if)#frame-relay map ip 192.168.1.1 201 broadcast R2(config-if)#no sh
R3(config)#int s0/0
R3(config-if)#encapsulation frame-relay R3(config-if)#ip add 192.168.2.2 255.255.255.0 R3(config-if)#no sh
R3(config-if)#frame-relay map ip 192.168.2.1 301 b R4(config)#int s0/0
R4(config-if)#encapsulation frame-relay R4(config-if)#ip add 192.168.3.2 255.255.255.0 R4(config-if)#no sh
R4(config-if)#frame-relay map ip 192.168.3.1 401 b 默认接口还是NBMA模式,需要手动改为点到点模式 R2(config)#int s0/0
R2(config-if)#ip ospf network point-to-point R3(config)#int s0/0
R3(config-if)#ip ospf network point-to-point R4(config)#int s0/0
R4(config-if)#ip ospf network point-to-point
R3#sho ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/5209] via 192.168.2.1, 00:01:38, Serial0/0 2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/6771] via 192.168.2.1, 00:01:38, Serial0/0
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/6771] via 192.168.2.1, 00:01:38, Serial0/0 O 192.168.1.0/24 [110/6770] via 192.168.2.1, 00:01:38, Serial0/0 O 192.168.3.0/24 [110/6770] via 192.168.2.1, 00:01:38, Serial0/0 //已经学习到了所有的路由信息。 5:点到多点广播模式 总结:点到多点广播模式特点: (1) 帧中继接口在同一个子网;
(2) Hello包组播发送,无需手工配OSPF邻居; (3) 不选举DR;
(4) 不需要手工进行帧中继映射。
配置完后默认是NBMA,需要手动更改为点到多点广播模式: R1(config)#int s0/0
R1(config-if)#ip ospf network point-to-multipoint R2(config)#int s0/0
R2(config-if)#ip ospf network point-to-multipoint R3(config)#int s0/0
R3(config-if)#ip ospf network point-to-multipoint R4(config)#int s0/0
R4(config-if)#ip ospf network point-to-multipoint
6:点到多点非广播模式 总结:点到多点非广播模式特点:
(1) 帧中继接口在同一子网; (2) 需要手工配置OSPF邻居; (3) 不选举DR;
(4) 不需要手工进行帧中继映射。
//再将上边的配置改为点到多点非广播模式,跟点到多点广播模式的区别是需要手动指邻居,原因是Hello的组播包无法穿越FR环境。 R1(config)#int s0/0
R1(config-if)#ip ospf network point-to-multipoint non-broadcast R2(config)#int s0/0
R2(config-if)#ip ospf network point-to-multipoint non-broadcast R3(config)#int s0/0
R3(config-if)#ip ospf network point-to-multipoint non-broadcast R4(config)#int s0/0
R4(config-if)#ip ospf network point-to-multipoint non-broadcast //发现更改完后邻居很快没有了,我们在R1上手动指邻居。 R1(config)#router os 1
R1(config-router)#neighbor 192.168.1.2 R1(config-router)#neighbor 192.168.1.3 R1(config-router)#neighbor 192.168.1.4 R2(config)#router os 1
R2(config-router)#neighbor 192.168.1.1 R2(config-router)#neighbor 192.168.1.3
R2(config-router)#neighbor 192.168.1.4 R3(config)#router os 1
R3(config-router)#neighbor 192.168.1.1 R3(config-router)#neighbor 192.168.1.2 R3(config-router)#neighbor 192.168.1.4 R4(config)#router os 1
R4(config-router)#neighbor 192.168.1.1 R4(config-router)#neighbor 192.168.1.2 R4(config-router)#neighbor 192.168.1.3 R2#sho ip os neighbor
Neighbor ID Pri State Dead Time Address Interface 4.4.4.4 0 FULL/ - 00:01:44 192.168.1.4 Serial0/0 3.3.3.3 0 FULL/ - 00:01:44 192.168.1.3 Serial0/0 1.1.1.1 0 FULL/ - 00:01:51 192.168.1.1 Serial0/0 R2#sho ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/5209] via 192.168.1.1, 00:00:49, Serial0/0 3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/5209] via 192.168.1.3, 00:00:49, Serial0/0 4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/5209] via 192.168.1.4, 00:00:49, Serial0/0 192.168.1.0/24 is variably subnetted, 4 subnets, 2 masks