undo shutdown
ip address 172.17.1.1 255.255.255.0
#
interface pos1/0/0
link-protocol ppp
undo shutdown
ip address 192.168.0.2 255.255.255.0
#
interface pos2/0/0
link-protocol ppp
undo shutdown
ip address 192.168.1.2 255.255.255.0
#
interface pos3/0/0
link-protocol ppp
undo shutdown
ip address 192.168.2.2 255.255.255.0
#
ospf 1 router-id 5.5.5.5
area 0.0.0.0
network 192.168.0.0 0.0.0.255
network 192.168.1.0 0.0.0.255
network 192.168.2.0 0.0.0.255
network 172.17.1.0 0.0.0.255
#
return
5.16.5 Example for Configuring an OSPF Stub Area
This section provides an example for configuring an OSPF stub area.
Networking Requirements
A stub area does not allow AS external routes to be transmitted. This reduces bandwidth and
storage resource consumption on the router.
, OSPF is enabled on all routers and the entire AS is partitioned into
three areas. Router A and Router B function as ABRs to forward inter-area routes; Router D
functions as an ASBR to import the external static route 200.0.0.0/8. To reduce the number of
LSAs advertised to Area 1 without affecting the route reachability, configure Area 1 as a stub
area and prevent Type 3 LSAs from being advertised to the stub area.
Figure 5-10
Configuring an OSPF stub area
RouterA
RouterB
RouterD
POS1/0/0
192.168.0.1/24
POS1/0/0
192.168.0.2/24
POS2/0/0
192.168.2.1/24
POS1/0/0
192.168.2.2/24
Area0
POS2/0/0
192.168.1.1/24
RouterC
POS1/0/0
192.168.1.2/24
Area1
Area2
ASBR
Stub
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
5 OSPF Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
360