H3C Technologies H3C S10500 Series Switches User Manual

Page 138

Advertising
background image

123

Configure OSPF on the switches, ensuring that Switch S, Switch A, and Switch B can communicate with

each other at Layer 3 and dynamic route update can be implemented among them with OSPF. (Details

not shown)

2.

Configure OSPF NSR.

# Enable OSPF NSR on Switch S.

<SwitchS> system-view

[SwitchS] ospf non-stop-routing

3.

Verify the configuration.

After Switch S establishes neighbor relationships with Switch A and Switch B, they start to exchange

routing information. After network convergence, perform an active/standby switchover on Switch S.

During the switchover period, use the display ospf peer command to check the neighbor relationship
between Switch A and Switch S and between Switch B and Switch S; use the display ospf routing

command to check if there are routes from Switch A to the loopback interface on Switch B and from

Switch B to the loopback interface on Switch A.
# When an active/standby switchover occurs on Switch S, display OSPF neighbors and routes on Switch

A.

<SwitchA> display ospf peer

OSPF Process 1 with Router ID 192.168.1.40

Neighbor Brief Information

Area: 0.0.0.0

Router ID Address Pri Dead-Time Interface State

192.168.1.41 12.12.12.2 1 40 Vlan100 Full/BDR

<SwitchA> display ospf routing

OSPF Process 1 with Router ID 192.168.1.40

Routing Tables

Routing for Network

Destination Cost Type NextHop AdvRouter Area

44.44.44.44/32 2 Stub 12.12.12.2 44.44.44.44 0.0.0.0

14.14.14.0/24 2 Transit 12.12.12.2 192.168.1.41 0.0.0.0

22.22.22.22/32 0 Stub 22.22.22.22 192.168.1.40 0.0.0.0

12.12.12.0/24 1 Transit 12.12.12.1 192.168.1.40 0.0.0.0

Total Nets: 4

Intra Area: 4 Inter Area: 0 ASE: 0 NSSA: 0

# Display OSPF neighbors and routes on Switch B.

<SwitchB> display ospf peer

OSPF Process 1 with Router ID 44.44.44.44

Neighbor Brief Information

Area: 0.0.0.0

Router ID Address Pri Dead-Time Interface State

192.168.1.41 14.14.14.2 1 33 Vlan200 Full/DR

Advertising