基于帧中继point-to-multipoint的单区域OSPF的配置
2009-10-11 20:18
826 查看
一、场景设置
R4、R3、R2[/b]通过R1[/b]相连,形成[/b]hub and spoke[/b]网络拓扑,[/b]R1[/b]为模拟帧中继交换机,R4为[/b]hub[/b]路由器,[/b]R2、R3 [/b]为[/b]spoke[/b]路由器,[/b]R4、R3、R2[/b]采用点对多点接口。所有路由器均使用物理接口连接并启用[/b]OSPF[/b]。[/b]
[/b]
二、具体配置
1、使用R1[/b]模拟帧中继交换机:[/b]
Router(config)#hostname FRS[/b]
FRS(config)#frame-relay switching[/b]
FRS(config)#interface Serial1/0[/b]
FRS(config-if)#no ip address[/b]
FRS(config-if)#encapsulation frame-relay[/b]
FRS(config-if)#clock rate 2016000[/b]
FRS(config-if)#frame-relay intf-type dce[/b]
FRS(config-if)#frame-relay route 201 interface Serial1/3 102[/b]
FRS(config-if)#no shutdown[/b]
FRS(config-if)#exit[/b]
FRS(config)#interface Serial1/2[/b]
FRS(config-if)#no ip address[/b]
FRS(config-if)#encapsulation frame-relay[/b]
FRS(config-if)#no ip route-cache[/b]
FRS(config-if)#clock rate 2016000[/b]
FRS(config-if)#frame-relay intf-type dce[/b]
FRS(config-if)#frame-relay route 301 interface Serial1/3 103[/b]
FRS(config-if)#no shutdown[/b]
FRS(config-if)#exit[/b]
FRS(config)#interface Serial1/3[/b]
FRS(config-if)#no ip address[/b]
FRS(config-if)#encapsulation frame-relay[/b]
FRS(config-if)#no ip route-cache[/b]
FRS(config-if)#clock rate 2016000[/b]
FRS(config-if)#frame-relay intf-type dce[/b]
FRS(config-if)#frame-relay route 102 interface Serial1/0 201[/b]
FRS(config-if)#frame-relay route 103 interface Serial1/2 301[/b]
FRS(config-if)#no shutdown[/b]
FRS(config-if)#exit[/b]
[/b]
[/b]-----------------------------------------------------------------------------------------------------------------------[/b]
[/b]
2、R4的配置如下:[/b]
Routerconfig)#hostname HQ[/b]
HQ(config)#interface Loopback1[/b]
HQ(config-if)#ip address 10.1.1.1 255.255.255.0[/b]
HQ(config-if)#ip ospf network point-to-point[/b]
HQ(config-if)#exit[/b]
HQ(config)#interface Serial1/3[/b]
HQ(config-if)#ip address 10.1.123.1 255.255.255.0[/b]
HQ(config-if)#encapsulation frame-relay[/b]
HQ(config-if)#ip ospf network point-to-multipoint #the default network type is non-broadcast[/b]
HQ(config-if)#frame-relay map ip 10.1.123.1 102 #[/b]使得HQ可以Ping[/b]通自己[/b]
HQ(config-if)#frame-relay map ip 10.1.123.2 102 broadcast #[/b]帧中继静态映射[/b]
HQ(config-if)#frame-relay map ip 10.1.123.3 103 broadcast [/b]
[/b]HQ(config-if)#no frame-relay inverse-arp #关闭动态ARP[/b]映射[/b][/b]
HQ(config-if)#no shutdown[/b]
HQ(config-if)#exit[/b]
HQ(config)#router ospf 1[/b]
HQ(config-router)#log-adjacency-changes[/b]
HQ(config-router)#network 10.1.1.0 0.0.0.255 area 0[/b]
HQ(config-router)#network 10.1.123.0 0.0.0.255 area 0[/b]
HQ(config-router)#exit[/b]
-----------------------------------------------------------------------------------------------------------------------
3、R2的配置如下:
Router(config)#hostname EAST[/b]
EAST(config)#interface Loopback2[/b]
EAST(config-if)#ip address 10.1.2.1 255.255.255.0[/b]
EAST(config-if)#ip ospf network point-to-point[/b]
EAST(config-if)#exit[/b]
EAST(config)#interface Serial1/0[/b]
EAST(config-if)#ip address 10.1.123.2 255.255.255.0[/b]
EAST(config-if)#encapsulation frame-relay[/b]
EAST(config-if)#ip ospf network point-to-multipoint[/b]
EAST(config-if)#frame-relay map ip 10.1.123.2 201[/b]
EAST(config-if)#frame-relay map ip 10.1.123.1 201 broadcast[/b]
EAST(config-if)#frame-relay map ip 10.1.123.3 201 broadcast[/b]
EAST(config-if)#no frame-relay inverse-arp[/b]
EAST(config-if)#no shutdown[/b]
EAST(config-if)#exit[/b]
EAST(config)#interface Serial1/1[/b]
EAST(config-if)#ip address 10.1.23.2 255.255.255.0[/b]
EAST(config-if)#ip ospf hello-interval 5 #[/b]更改定时器timer[/b]
EAST(config-if)#ip ospf dead-interval 15[/b]
EAST(config-if)#no shutdown[/b]
EAST(config-if)#exit[/b]
EAST(config)#router ospf 1[/b]
EAST(config-router)#network 10.1.2.0 0.0.0.255 area 0[/b]
EAST(config-router)#network 10.1.23.0 0.0.0.255 area 0[/b]
EAST(config-router)#network 10.1.123.0 0.0.0.255 area 0[/b]
EAST(config-router)#exit[/b]
[/b]
-----------------------------------------------------------------------------------------------------------------------[/b]
[/b]
4、R3的配置如下:[/b]
Router(config)#hostname WEST[/b]
WEST(config)#interface Loopback3[/b]
WEST(config-if)#ip address 10.1.3.1 255.255.255.0[/b]
WEST(config-if)#ip ospf network point-to-point[/b]
WEST(config-if)#exit[/b]
WEST(config)#interface Serial1/1[/b]
WEST(config-if)#ip address 10.1.23.3 255.255.255.0[/b]
WEST(config-if)#ip ospf hello-interval 5[/b]
WEST(config-if)#ip ospf dead-interval 15[/b]
WEST(config-if)#no shutdown[/b]
WEST(config-if)#exit[/b]
WEST(config)#interface Serial1/2[/b]
WEST(config-if)#ip address 10.1.123.3 255.255.255.0[/b]
WEST(config-if)#encapsulation frame-relay[/b]
WEST(config-if)#ip ospf network point-to-multipoint[/b]
WEST(config-if)#frame-relay map ip 10.1.123.3 301[/b]
WEST(config-if)#frame-relay map ip 10.1.123.1 301 broadcast[/b]
WEST(config-if)#frame-relay map ip 10.1.123.2 301 broadcast[/b]
WEST(config-if)#no frame-relay inverse-arp[/b]
WEST(config-if)#no shutdown[/b]
WEST(config-if)#exit[/b]
WEST(config)#router ospf 1[/b]
WEST(config-router)#network 10.1.3.0 255.255.255.0 area 0[/b]
WEST(config-router)#network 10.1.23.0 255.255.255.0 area 0[/b]
WEST(config-router)#network 10.1.123.0 255.255.255.0 area 0[/b]
WEST(config-router)#exit[/b]
三、验证配置:
EAST:
[/b]
[/b]
本文出自 “Uione” 博客,请务必保留此出处http://weiqijun.blog.51cto.com/338163/73471本文出自 51CTO.COM技术博客
R4、R3、R2[/b]通过R1[/b]相连,形成[/b]hub and spoke[/b]网络拓扑,[/b]R1[/b]为模拟帧中继交换机,R4为[/b]hub[/b]路由器,[/b]R2、R3 [/b]为[/b]spoke[/b]路由器,[/b]R4、R3、R2[/b]采用点对多点接口。所有路由器均使用物理接口连接并启用[/b]OSPF[/b]。[/b]
[/b]
二、具体配置
1、使用R1[/b]模拟帧中继交换机:[/b]
Router(config)#hostname FRS[/b]
FRS(config)#frame-relay switching[/b]
FRS(config)#interface Serial1/0[/b]
FRS(config-if)#no ip address[/b]
FRS(config-if)#encapsulation frame-relay[/b]
FRS(config-if)#clock rate 2016000[/b]
FRS(config-if)#frame-relay intf-type dce[/b]
FRS(config-if)#frame-relay route 201 interface Serial1/3 102[/b]
FRS(config-if)#no shutdown[/b]
FRS(config-if)#exit[/b]
FRS(config)#interface Serial1/2[/b]
FRS(config-if)#no ip address[/b]
FRS(config-if)#encapsulation frame-relay[/b]
FRS(config-if)#no ip route-cache[/b]
FRS(config-if)#clock rate 2016000[/b]
FRS(config-if)#frame-relay intf-type dce[/b]
FRS(config-if)#frame-relay route 301 interface Serial1/3 103[/b]
FRS(config-if)#no shutdown[/b]
FRS(config-if)#exit[/b]
FRS(config)#interface Serial1/3[/b]
FRS(config-if)#no ip address[/b]
FRS(config-if)#encapsulation frame-relay[/b]
FRS(config-if)#no ip route-cache[/b]
FRS(config-if)#clock rate 2016000[/b]
FRS(config-if)#frame-relay intf-type dce[/b]
FRS(config-if)#frame-relay route 102 interface Serial1/0 201[/b]
FRS(config-if)#frame-relay route 103 interface Serial1/2 301[/b]
FRS(config-if)#no shutdown[/b]
FRS(config-if)#exit[/b]
[/b]
[/b]-----------------------------------------------------------------------------------------------------------------------[/b]
[/b]
2、R4的配置如下:[/b]
Routerconfig)#hostname HQ[/b]
HQ(config)#interface Loopback1[/b]
HQ(config-if)#ip address 10.1.1.1 255.255.255.0[/b]
HQ(config-if)#ip ospf network point-to-point[/b]
HQ(config-if)#exit[/b]
HQ(config)#interface Serial1/3[/b]
HQ(config-if)#ip address 10.1.123.1 255.255.255.0[/b]
HQ(config-if)#encapsulation frame-relay[/b]
HQ(config-if)#ip ospf network point-to-multipoint #the default network type is non-broadcast[/b]
HQ(config-if)#frame-relay map ip 10.1.123.1 102 #[/b]使得HQ可以Ping[/b]通自己[/b]
HQ(config-if)#frame-relay map ip 10.1.123.2 102 broadcast #[/b]帧中继静态映射[/b]
HQ(config-if)#frame-relay map ip 10.1.123.3 103 broadcast [/b]
[/b]HQ(config-if)#no frame-relay inverse-arp #关闭动态ARP[/b]映射[/b][/b]
HQ(config-if)#no shutdown[/b]
HQ(config-if)#exit[/b]
HQ(config)#router ospf 1[/b]
HQ(config-router)#log-adjacency-changes[/b]
HQ(config-router)#network 10.1.1.0 0.0.0.255 area 0[/b]
HQ(config-router)#network 10.1.123.0 0.0.0.255 area 0[/b]
HQ(config-router)#exit[/b]
-----------------------------------------------------------------------------------------------------------------------
3、R2的配置如下:
Router(config)#hostname EAST[/b]
EAST(config)#interface Loopback2[/b]
EAST(config-if)#ip address 10.1.2.1 255.255.255.0[/b]
EAST(config-if)#ip ospf network point-to-point[/b]
EAST(config-if)#exit[/b]
EAST(config)#interface Serial1/0[/b]
EAST(config-if)#ip address 10.1.123.2 255.255.255.0[/b]
EAST(config-if)#encapsulation frame-relay[/b]
EAST(config-if)#ip ospf network point-to-multipoint[/b]
EAST(config-if)#frame-relay map ip 10.1.123.2 201[/b]
EAST(config-if)#frame-relay map ip 10.1.123.1 201 broadcast[/b]
EAST(config-if)#frame-relay map ip 10.1.123.3 201 broadcast[/b]
EAST(config-if)#no frame-relay inverse-arp[/b]
EAST(config-if)#no shutdown[/b]
EAST(config-if)#exit[/b]
EAST(config)#interface Serial1/1[/b]
EAST(config-if)#ip address 10.1.23.2 255.255.255.0[/b]
EAST(config-if)#ip ospf hello-interval 5 #[/b]更改定时器timer[/b]
EAST(config-if)#ip ospf dead-interval 15[/b]
EAST(config-if)#no shutdown[/b]
EAST(config-if)#exit[/b]
EAST(config)#router ospf 1[/b]
EAST(config-router)#network 10.1.2.0 0.0.0.255 area 0[/b]
EAST(config-router)#network 10.1.23.0 0.0.0.255 area 0[/b]
EAST(config-router)#network 10.1.123.0 0.0.0.255 area 0[/b]
EAST(config-router)#exit[/b]
[/b]
-----------------------------------------------------------------------------------------------------------------------[/b]
[/b]
4、R3的配置如下:[/b]
Router(config)#hostname WEST[/b]
WEST(config)#interface Loopback3[/b]
WEST(config-if)#ip address 10.1.3.1 255.255.255.0[/b]
WEST(config-if)#ip ospf network point-to-point[/b]
WEST(config-if)#exit[/b]
WEST(config)#interface Serial1/1[/b]
WEST(config-if)#ip address 10.1.23.3 255.255.255.0[/b]
WEST(config-if)#ip ospf hello-interval 5[/b]
WEST(config-if)#ip ospf dead-interval 15[/b]
WEST(config-if)#no shutdown[/b]
WEST(config-if)#exit[/b]
WEST(config)#interface Serial1/2[/b]
WEST(config-if)#ip address 10.1.123.3 255.255.255.0[/b]
WEST(config-if)#encapsulation frame-relay[/b]
WEST(config-if)#ip ospf network point-to-multipoint[/b]
WEST(config-if)#frame-relay map ip 10.1.123.3 301[/b]
WEST(config-if)#frame-relay map ip 10.1.123.1 301 broadcast[/b]
WEST(config-if)#frame-relay map ip 10.1.123.2 301 broadcast[/b]
WEST(config-if)#no frame-relay inverse-arp[/b]
WEST(config-if)#no shutdown[/b]
WEST(config-if)#exit[/b]
WEST(config)#router ospf 1[/b]
WEST(config-router)#network 10.1.3.0 255.255.255.0 area 0[/b]
WEST(config-router)#network 10.1.23.0 255.255.255.0 area 0[/b]
WEST(config-router)#network 10.1.123.0 255.255.255.0 area 0[/b]
WEST(config-router)#exit[/b]
三、验证配置:
EAST:
EAST#show ip ospf interface Serial1/0
Serial1/0 is up, line protocol is up
Internet Address 10.1.123.2/24, Area 0
Process ID 1, Router ID 10.1.2.1, Network Type POINT_TO_MULTIPOINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT
Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
oob-resync timeout 120
Hello due in 00:00:10
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 3/3, 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 10.1.1.1
Suppress hello for 0 neighbor(s)
EAST#show ip ospf neighbor[/b][/b] #无DR、BDR的选举!
Neighbor ID Pri State Dead Time Address Interface
10.1.1.1 0 FULL/ - 00:01:54 10.1.123.1 Serial1/0
10.1.3.1 0 FULL/ - 00:00:10 10.1.23.3 Serial1/1
EAST#show ip route ospf
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
O 10.1.3.0/24 [110/65] via 10.1.23.3, 00:02:30, Serial1/1
O 10.1.1.0/24 [110/65] via 10.1.123.1, 00:02:30, Serial1/0
O 10.1.123.1/32 [110/64] via 10.1.123.1, 00:02:30, Serial1/0
O 10.1.123.3/32 [110/64] via 10.1.23.3, 00:02:30, Serial1/1
WEST:
WEST#show ip ospf interface Serial1/2
Serial1/2 is up, line protocol is up
Internet Address 10.1.123.3/24, Area 0
Process ID 1, Router ID 10.1.3.1, Network Type POINT_TO_MULTIPOINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT
Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
oob-resync timeout 120
Hello due in 00:00:07
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 3/3, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 4 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 10.1.1.1
Suppress hello for 0 neighbor(s)
WEST#show ip ospf neighbor #无DR、BDR的选举!
Neighbor ID Pri State Dead Time Address Interface
10.1.1.1 0 FULL/ - 00:01:46 10.1.123.1 Serial1/2
10.1.2.1 0 FULL/ - 00:00:11 10.1.23.2 Serial1/1
WEST#show ip route ospf
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
O 10.1.2.0/24 [110/65] via 10.1.23.2, 00:07:16, Serial1/1
O 10.1.1.0/24 [110/65] via 10.1.123.1, 00:07:16, Serial1/2
O 10.1.123.1/32 [110/64] via 10.1.123.1, 00:07:16, Serial1/2
O 10.1.123.2/32 [110/64] via 10.1.23.2, 00:07:16, Serial1/1
[/b][/b]
[/b]
本文出自 “Uione” 博客,请务必保留此出处http://weiqijun.blog.51cto.com/338163/73471本文出自 51CTO.COM技术博客
相关文章推荐
- 基于帧中继point-to-multipoint的单区域OSPF的配置
- 基于帧中继point-to-point的单区域OSPF的配置
- 基于帧中继point-to-point的单区域OSPF的配置
- 基于帧中继point-to-multipoint的单区域OSPF的配置
- 基于point-to-point的单区域OSPF的配置
- 基于point-to-point的单区域OSPF的配置
- 基于帧中继point-to-point的单区域OSPF的配置
- CCNA配置试验之九 帧中继――点到多点(point-to-multipoint)子接口
- CCNA配置试验之九 帧中继——点到多点(point-to-multipoint)子接口配置
- CCNA配置试验之九 帧中继——点到多点(point-to-multipoint)子接口配置
- 基于帧中继point-to-multipoint的单区域OSPF的配置
- 帧中继---点到点子接口(point-to-point)的配置
- CCNA配置试验之八 帧中继——点到点子接口(point-to-point)的配置 推荐
- 帧中继承载OSPF –点对点( Point-to-Point)
- CCNA配置试验之八 帧中继――点到点子接口(point-to-point)
- CCNP---OSPF多区域+帧中继配置
- OSPF单区域网络配置
- 配置OSPF非纯 Stub 区域NSSA
- BSCI实验之十五:OSPF在帧中继点到多点模式下的配置 推荐