3Com Switch 8800 Advanced Software V5 Configuration Guide

338 CHAPTER 30: OSPF CONFIGURATION
Configuring OSPF Basic
Functions
Network requirements
As shown in the following figure, all switches run OSPF. The AS is split into three
areas, in which, SwitchA and SwitchB act as ABRs to forward routing information
between areas.
After configuration, all switches can learn routes to every network segment in the
AS.
Network diagram
Figure 103 Network diagram for OSPF basic configuration
Configuration procedure
1 Configure IP addresses for interfaces (omitted)
2 Configure OSPF basic functions
# Configure SwitchA
<SwitchA> system-view
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
[SwitchA-ospf-1] area 1
[SwitchA-ospf-1-area-0.0.0.1] network 192.168.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.1] quit
[SwitchA-ospf-1] quit
# Configure SwitchB
<SwitchB> system-view
[SwitchB] ospf
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] area 2
[SwitchB-ospf-1-area-0.0.0.2] network 192.168.2.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.2] quit
[SwitchB-ospf-1] quit
# Configure SwitchC
Area 0
Area 1
Area 2
Switch C
Vlan-int100
192.168.0.2/24
Vlan-int100
192.168.0.1/24
Vlan-int300
172.16.1.1/24
Vlan-int200
192.168.1.2/24
Switch B
Vlan-int200
192.168.2.1/24
Vlan-int200
192.168.2.2/24
Switch A
Vlan-int200
192.168.1.1/24
Vlan-int300
172.17.1.1/24
Switch D