[BSCI]配置帧中继Hub-and-Spoke OSPF

1

R1配置
r1(config)#int s3/0
r1(config-if)#en fr
r1(config-if)#no fr inv
r1(config-if)#no sh
r1(config-if)#exi
r1(config)#int s3/0.1
r1(config)#int s3/0.1 mu
r1(config-subif)#no fr inv
r1(config-subif)#fr map ip 192.168.0.2 102 b
r1(config-subif)#fr map ip 192.168.0.3 103 b
r1(config-subif)#ip ad 192.168.0.1 255.255.255.0
r1(config-subif)#no sh
r1(config-subif)#end

R2配置
r2(config)#int s3/0
r2(config-if)#en fr
r2(config-if)#no fr inv
r2(config-if)#fr ma ip 192.168.0.1 201 b
r2(config-if)#fr ma ip 192.168.0.3 201 b
r2(config-if)#ip ad 192.168.0.2 255.255.255.0
r2(config-if)#no sh
r2(config-if)#end

R3配置
r3(config)#int s3/0
r3(config-if)#en fr
r3(config-if)#fr ma ip 192.168.0.1 301 b
r3(config-if)#fr ma ip 192.168.0.2 301 b
r3(config-if)#ip ad 192.168.0.3 255.255.255.0
r3(config-if)#no sh
r3(config-if)#end

R1配置OSPF路由
r1(config)#router os 100
r1(config-router)#net 192.168.0.1 0.0.0.0 a 0
r1(config-router)#nei 192.168.0.2
r1(config-router)#nei 192.168.0.3

R2配置OSPF路由
r2(config)#router os 100
r2(config-router)#net 192.168.0.2 0.0.0.0 a 0
r2(config-router)#int s3/0
r2(config-if)#ip os pri 0
r2(config-if)#end

R3配置OSPF路由
r3(config)#router os 100
r3(config-router)#net 192.168.0.3 0.0.0.0 a 0
r3(config-router)#int s3/0
r3(config-if)#ip os pri 0
r3(config-if)#end

清除OSPF进程
r1#deb ip os a
OSPF adjacency events debugging is on
r1#clear ip os p
Reset ALL OSPF processes? [no]: y
r1#
*Jul 23 15:27:14.427: OSPF: Interface Serial3/0.1 going Down
*Jul 23 15:27:14.427: OSPF: 192.168.0.1 address 192.168.0.1 on Serial3/0.1 is dead, state DOWN
*Jul 23 15:27:14.427: OSPF: Neighbor change Event on interface Serial3/0.1
*Jul 23 15:27:14.427: OSPF: DR/BDR election on Serial3/0.1
*Jul 23 15:27:14.427: OSPF: Elect BDR 0.0.0.0
*Jul 23 15:27:14.427: OSPF: Elect DR 0.0.0.0
*Jul 23 15:27:14.431: OSPF: Elect BDR 0.0.0.0
*Jul 23 15:27:14.431: OSPF: Elect DR 0.0.0.0
*Jul 23 15:27:14.431:        DR: none    BDR: none
*Jul 23 15:27:14.431: OSPF: Reset adjacency with 192.168.0.2 on Serial3/0.1, state 2WAY
*Jul 23 15:27:14.431: OSPF: Reset adjacency with 192.168.0.3 on Serial3/0.1, state 2WAY
*Jul 23 15:27:14.435: OSPF: Flush network LSA immediately
*Jul 23 15:27:14.435: OSPF: Remember old DR 192.168.0.1 (id)
*Jul 23 15:27:14.435: OSPF: 192.168.0.2 address 192.168.0.2 on Serial3/0.1 is dead, state DOWN
*Jul 23 15:27:14.435: %OSPF-5-ADJCHG: Process 100, Nbr 192.168.0.2 o
r1#n Serial3/0.1 from 2WAY to DOWN, Neighbor Down: Interface down or detached
*Jul 23 15:27:14.435: OSPF: Neighbor change Event on interface Serial3/0.1
*Jul 23 15:27:14.435: OSPF: DR/BDR election on Serial3/0.1
*Jul 23 15:27:14.439: OSPF: Elect BDR 0.0.0.0
*Jul 23 15:27:14.439: OSPF: Elect DR 0.0.0.0
*Jul 23 15:27:14.439:        DR: none    BDR: none
*Jul 23 15:27:14.439: OSPF: 192.168.0.3 address 192.168.0.3 on Serial3/0.1 is dead, state DOWN
*Jul 23 15:27:14.439: %OSPF-5-ADJCHG: Process 100, Nbr 192.168.0.3 on Serial3/0.1 from 2WAY to DOWN, Neighbor Down: Interface down or detached
*Jul 23 15:27:14.439: OSPF: Neighbor change Event on interface Serial3/0.1
*Jul 23 15:27:14.443: OSPF: DR/BDR election on Serial3/0.1
*Jul 23 15:27:14.443: OSPF: Elect BDR 0.0.0.0
*Jul 23 15:27:14.443: OSPF: Elect DR 0.0.0.0
*Jul 23 15:27:14.443:        DR: none    BDR: none
*Jul 23 15:27:14.455: OSPF: Interface Serial3/0.1 going Up
*Jul 23 15:27:14.455: OSPF: Starting 0.0.0.0 address 192.
r1#168.0.2 on Serial3/0.1
*Jul 23 15:27:14.455: OSPF: Starting 0.0.0.0 address 192.168.0.3 on Serial3/0.1
*Jul 23 15:27:14.459: OSPF: Starting 0.0.0.0 address 192.168.0.3 on Serial3/0.1
*Jul 23 15:27:14.459: OSPF: Starting 0.0.0.0 address 192.168.0.2 on Serial3/0.1
*Jul 23 15:27:14.459: OSPF: 2 Way Communication to 192.168.0.2 on Serial3/0.1, state 2WAY
*Jul 23 15:27:14.931: OSPF: Build router LSA for area 0, router ID 192.168.0.1, seq 0x80000001
*Jul 23 15:27:14.935: OSPF: We are not DR to build Net Lsa for interface Serial3/0.1
r1#
*Jul 23 15:27:27.427: OSPF: 2 Way Communication to 192.168.0.3 on Serial3/0.1, state 2WAY
r1#
r1#sh ip os nei

Neighbor ID     Pri   State           Dead Time   Address         Interface
192.168.0.2       0   2WAY/DROTHER    00:01:53    192.168.0.2     Serial3/0.1
192.168.0.3       0   2WAY/DROTHER    00:01:36    192.168.0.3     Serial3/0.1
r1#u all

r1#sh ip os int
Serial3/0.1 is up, line protocol is up
  Internet Address 192.168.0.1/24, Area 0
  Process ID 100, Router ID 192.168.0.1, Network Type NON_BROADCAST, Cost: 64
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 192.168.0.1, Interface address 192.168.0.1
  No backup designated router on this network
  Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
    oob-resync timeout 120
    Hello due in 00:00:25
  Index 1/1, 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 2, Adjacent neighbor count is 2
    Adjacent with neighbor 192.168.0.2
    Adjacent with neighbor 192.168.0.3
  Suppress hello for 0 neighbor(s)

你可能感兴趣的:(职场,休闲,ospf,帧中继,BSCI)