3Com Switch 8800 Advanced Software V5 Configuration Guide
OSPF Configuration Examples 339
<SwitchC> system-view
[SwitchC] ospf
[SwitchC-ospf-1] area 1
[SwitchC-ospf-1-area-0.0.0.1] network 192.168.1.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.1] network 172.16.1.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.1] quit
[SwitchC-ospf-1] quit
# Configure SwitchD
<SwitchD> system-view
[SwitchD] ospf
[SwitchD-ospf-1] area 2
[SwitchD-ospf-1-area-0.0.0.2] network 192.168.2.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.2] network 172.17.1.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.2] quit
[SwitchD-ospf-1] quit
3 Verify the configuration
# Display information about neighbors on SwitchA.
[SwitchA] display ospf peer
OSPF Process 1 with Router ID 192.168.1.1
Neighbors
Area 0.0.0.0 interface 192.168.0.1(Vlan-interface100)’s neighbors
Router ID: 192.168.2.1 Address: 192.168.0.2 GR State: Normal
State: Full Mode: Nbr is Master Priority: 1
DR: 192.168.0.2 BDR: 192.168.0.1 MTU: 0
Dead timer due in 31 sec
Neighbor is up for 00:01:09
Authentication Sequence: [ 0 ]
Neighbors
Area 0.0.0.1 interface 192.168.1.1(Vlan-interface200)’s neighbors
Router ID: 192.168.1.2 Address: 192.168.1.2 GR State: Normal
State: Full Mode: Nbr is Master Priority: 1
DR: 192.168.1.2 BDR: 192.168.1.1 MTU: 0
Dead timer due in 39 sec
Neighbor is up for 00:01:01
Authentication Sequence: [ 0 ]
# Display OSPF routing information on SwitchA.
[SwitchA] display ospf routing
OSPF Process 1 with Router ID 192.168.1.1
Routing Tables
Routing for Network
Destination Cost type NextHop AdvRouter Area
172.16.1.0/24 2 Stub 192.168.1.2 192.168.1.2 0.0.0.1
172.17.1.0/24 3 Inter 192.168.0.2 192.168.2.1 0.0.0.0
192.168.0.0/24 1 Transit 192.168.0.1 192.168.2.1 0.0.0.0
192.168.1.0/24 1 Transit 192.168.1.1 192.168.1.2 0.0.0.1
192.168.2.0/24 2 Inter 192.168.0.2 192.168.2.1 0.0.0.0
Total Nets: 5
Intra Area: 3 Inter Area: 2 ASE: 0 NSSA: 0