Routing
H3C Low-End Ethernet Switches Configuration Examples
Chapter 3 Comprehensive Configuration
Example
3-7
Device
Interface
IP address
Area
S200 Vlan-int
12
206.1.2.3/24
0
S200_0 Vlan-int
12
206.1.2.1/24
0
Vlan-int
661
166.1.1.1/24
10
S200_10 Vlan-int
661
166.1.1.2/24
10
Vlan-int
621
162.1.1.1/24
10
Vlan-int
622
162.1.2.1/24
10
Figure 3-3
Network diagram for OSPF configuration
z
Configure S200.
# Run OSPF on the interface connected to network 206.1.2.0/24 and specify its area ID
as 0.
<S200> system-view
[S200] ospf
[S200-ospf-1] area 0
[S200-ospf-1-area-0.0.0.0] network 206.1.2.0 0.0.0.255
z
Configure S200_0.
# Run OSPF on the interface connected to network 206.1.2.0/24 and specify its area ID
as 0.
<S200_0> system-view
[S200_0] ospf
[S200_0-ospf-1] area 0
[S200_0-ospf-1-area-0.0.0.0] network 206.1.2.0 0.0.0.255
[S200_0-ospf-1-area-0.0.0.0] quit
# Run OSPF on the interface connected to network 166.1.1.0/24 and specify its area ID
as 10.
[S200_0-ospf-1] area 10
[S200_0-ospf-1-area-0.0.0.10] network 166.1.1.0 0.0.0.255
z
Configure S200_10.
# Run OSPF on interfaces connected to networks 162.1.1.0/24, 162.1.2.0/24, and
166.1.1.0/24 and specify their area ID as 10.