![Huawei S6700 Series Configuration Manual Download Page 161](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517161.webp)
network 172.16.1.0 0.0.0.255
#
return
l
Configuration file of Switch F
#
sysname SwitchF
#
router id 6.6.6.6
#
vlan batch 50
#
interface Vlanif50
ip address 172.17.1.2 255.255.255.0
#
interface XGigabitEthernet0/0/1
port trunk allow-pass vlan 50
#
ospf 1
area 0.0.0.2
network 172.17.1.0 0.0.0.255
#
return
4.14.2 Example for Configuring a Stub Area of OSPF
Networking Requirements
, OSPF is enabled on all Switches and the entire AS is partitioned into
three areas. SwitchA and SwitchB function as ABRs to forward routes between areas. SwitchD
functions as the ASBR to import static routes.
The requirement is to configure Area 1 as the stub area, thus reducing the LSAs advertised to
this area without affecting the route reachability.
Figure 4-6
Configuring OSPF stub areas
Switch A
Switch C
Switch D
Switch E
Switch F
Area 0
Area 1
Area 2
XGE 0/0/1
XGE 0/0/1
XGE0/0/1
XGE0/0/1
XGE 0/0/1
XGE 0/0/1
XGE 0/0/2
XGE 0/0/2
XGE 0/0/2
XGE 0/0/2
Switch B
S-switch
Interface
VLANIF Interface
IP Address
SwitchA
XGE 0/0/1
VLANIF 10
192.168.0.1/24
SwitchA
XGE 0/0/2
VLANIF 20
192.168.1.1/24
SwitchB
XGE 0/0/1
VLANIF 10
192.168.0.2/24
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
4 OSPF Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
142