H3C S5800 Series Configuration Manual page 144

Layer 3 - ip routing
Hide thumbs Also See for S5800 Series:
Table of Contents

Advertisement

[SwitchC] ospf 1 router-id 3.3.3.3
[SwitchC-ospf-1] area 1
[SwitchC-ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.1] quit
[SwitchC-ospf-1] area 2
[SwitchC–ospf-1-area-0.0.0.2] network 10.3.1.0 0.0.0.255
[SwitchC–ospf-1-area-0.0.0.2] quit
[SwitchC-ospf-1] quit
# Configure Switch D.
<SwitchD> system-view
[SwitchD] ospf 1 router-id 4.4.4.4
[SwitchD-ospf-1] area 2
[SwitchD-ospf-1-area-0.0.0.2] network 10.3.1.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.2] quit
# Display the OSPF routing table of Switch B.
[SwitchB] display ospf routing
OSPF Process 1 with Router ID 2.2.2.2
Routing Tables
Routing for Network
Destination
Cost
10.2.1.0/24
2
10.1.1.0/24
2
Total Nets: 2
Intra Area: 2 Inter Area: 0 ASE: 0 NSSA: 0
Since Area 0 has no direct connection to Area 2, the routing table of Switch B has no route to Area 2.
3)
Configure a virtual link
# Configure Switch B.
[SwitchB] ospf
[SwitchB-ospf-1] area 1
[SwitchB-ospf-1-area-0.0.0.1] vlink-peer 3.3.3.3
[SwitchB-ospf-1-area-0.0.0.1] quit
[SwitchB-ospf-1] quit
# Configure Switch C.
[SwitchC] ospf 1
[SwitchC-ospf-1] area 1
[SwitchC-ospf-1-area-0.0.0.1] vlink-peer 2.2.2.2
[SwitchC-ospf-1-area-0.0.0.1] quit
# Display the OSPF routing table of Switch B.
[SwitchB] display ospf routing
OSPF Process 1 with Router ID 2.2.2.2
Routing Tables
Type
NextHop
Transit 10.2.1.1
Transit 10.1.1.2
4-69
AdvRouter
Area
3.3.3.3
0.0.0.1
2.2.2.2
0.0.0.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820x series

Table of Contents