3Com Switch 8800 Advanced Software V5 Configuration Guide
342 CHAPTER 30: OSPF CONFIGURATION
192.168.1.0/24 1 Transit 192.168.1.2 192.168.1.2 0.0.0.1
192.168.2.0/24 3 Inter 192.168.1.1 192.168.1.1 0.0.0.1
Routing for ASEs
Destination Cost type Tag NextHop AdvRouter
200.0.0.0/8 1 Type2 1 192.168.1.1 192.168.2.2
Total Nets: 6
Intra Area: 2 Inter Area: 3 ASE: 1 NSSA: 0
n
In the above output, since SwitchC resides in a normal OSPF area, its routing table
contains an external route.
4 Configure Area1 as a Stub area.
# Configure SwitchA.
[SwitchA] ospf
[SwitchA-ospf-1] area 1
[SwitchA-ospf-1-area-0.0.0.1] stub
[SwitchA-ospf-1-area-0.0.0.1] quit
[SwitchA-ospf-1] quit
# Configure SwitchC.
[SwitchC] ospf
[SwitchC-ospf-1] stub-router
[SwitchC-ospf-1] area 1
[SwitchC-ospf-1-area-0.0.0.1] stub
[SwitchC-ospf-1-area-0.0.0.1] quit
[SwitchC-ospf-1] quit
# Display the OSPF routing table on SwitchC
[SwitchC] display ospf routing
OSPF Process 1 with Router ID 192.168.1.2
Routing Tables
Routing for Network
Destination Cost type NextHop AdvRouter Area
0.0.0.0/0 65536 Inter 192.168.1.1 192.168.1.1 0.0.0.1
172.16.1.0/24 1 Stub 172.16.1.1 192.168.1.2 0.0.0.1
172.17.1.0/24 65538 Inter 192.168.1.1 192.168.1.1 0.0.0.1
192.168.0.0/24 65536 Inter 192.168.1.1 192.168.1.1 0.0.0.1
192.168.1.0/24 65535 Transit 192.168.1.2 192.168.1.2 0.0.0.1
192.168.2.0/24 65537 Inter 192.168.1.1 192.168.1.1 0.0.0.1
Total Nets: 6
Intra Area: 2 Inter Area: 4 ASE: 0 NSSA: 0
n
When SwitchC resides in the Stub area, a default route takes the place of the
external route.
# Filter Type3 LSAs for the Stub area
[SwitchA] ospf
[SwitchA-ospf-1] area 1
[SwitchA-ospf-1-area-0.0.0.1] stub no-summary
[SwitchA-ospf-1-area-0.0.0.1] quit