S6700 Series Ethernet Switches
Configuration Guide - IP Routing
3.
Issue 01 (2012-03-15)
[SwitchD] ip route-static 200.0.0.0 8 null 0
[SwitchD] ospf
[SwitchD-ospf-1] import-route static type 1
[SwitchD-ospf-1] quit
# Display the ABR or ASBR of SwitchC.
[SwitchC] display ospf abr-asbr
OSPF Process 1 with Router ID 3.3.3.3
Routing Table to ABR and ASBR
Type
Destination
Intra-area
1.1.1.1
Inter-area
4.4.4.4
# Check the routing table of an OSPF process of SwitchC.
[SwitchC] display ospf routing
OSPF Process 1 with Router ID 3.3.3.3
Routing Tables
Routing for Network
Destination
Cost
172.16.1.0/24
1
172.17.1.0/24
4
192.168.0.0/24
2
192.168.1.0/24
1
192.168.2.0/24
3
Routing for ASEs
Destination
Cost
200.0.0.0/8
4
Total Nets: 6
Intra Area: 2
Inter Area: 3
If the area where SwitchC resides is the common area, you can view that AS external routes
exist in the routing table.
Configure Area 1 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] area 1
[SwitchC-ospf-1-area-0.0.0.1] stub
[SwitchC-ospf-1-area-0.0.0.1] quit
[SwitchC-ospf-1] quit
# Configure SwitchE.
[SwitchE] ospf
[SwitchE-ospf-1] area 1
[SwitchE-ospf-1-area-0.0.0.1] stub
[SwitchE-ospf-1-area-0.0.0.1] quit
[SwitchE-ospf-1] quit
# Check the routing table of SwitchC.
[SwitchC] display ospf routing
OSPF Process 1 with Router ID 3.3.3.3
Routing Tables
Routing for Network
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Area
Cost
0.0.0.1
1
0.0.0.1
3
Type
NextHop
Transit
172.16.1.1
Inter-area
192.168.1.1
Inter-area
192.168.1.1
Transit
192.168.1.2
Inter-area
192.168.1.1
Type
Tag
Type1
1
ASE: 1
NSSA: 0
4 OSPF Configuration
Nexthop
RtType
192.168.1.1
ABR
192.168.1.1
ASBR
AdvRouter
3.3.3.3
1.1.1.1
1.1.1.1
3.3.3.3
1.1.1.1
NextHop
192.168.1.1
4.4.4.4
Area
0.0.0.1
0.0.0.1
0.0.0.1
0.0.0.1
0.0.0.1
AdvRouter
144