![Huawei S6700 Series Configuration Manual Download Page 637](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517637.webp)
Data Preparation
To complete the configuration, you need the following data:
l
Five static routes imported by Switch-A
l
Switch-A, Switch-B, Switch-C, and Switch-D located in Area 0, that is, the backbone area
l
Names of the IP prefix list and route to be filtered
Configuration Procedure
1.
Create a VLAN to which each interface belongs.
The configuration details are not mentioned here.
2.
Assign an IP address to each VLANIF interface.
The configuration details are not mentioned here.
3.
Configure basic OSPF functions.
# Configure Switch-A.
[SwitchA]
ospf
[SwitchA-ospf-1]
area 0
[SwitchA-ospf-1-area-0.0.0.0]
network 192.168.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0]
quit
[SwitchA-ospf-1]
quit
# Configure Switch-B.
[SwitchB]
ospf
[SwitchB-ospf-1]
area 0
[SwitchB-ospf-1-area-0.0.0.0]
network 192.168.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0]
network 192.168.2.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0]
network 192.168.3.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0]
quit
[SwitchB-ospf-1]
quit
# Configure Switch-C.
[SwitchC]
ospf
[SwitchC-ospf-1]
area 0
[SwitchC-ospf-1-area-0.0.0.0]
network 192.168.2.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.0]
quit
[SwitchC-ospf-1]
quit
# Configure Switch-D.
[SwitchD]
ospf
[SwitchD-ospf-1]
area 0
[SwitchD-ospf-1-area-0.0.0.0]
network 192.168.3.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.0]
quit
[SwitchD-ospf-1]
quit
4.
Configure five static routes on Switch-A and import these routes to OSPF.
[SwitchA]
ip route-static 172.1.16.0 24 NULL 0
[SwitchA]
ip route-static 172.1.17.0 24 NULL 0
[SwitchA]
ip route-static 172.1.18.0 24 NULL 0
[SwitchA]
ip route-static 172.1.19.0 24 NULL 0
[SwitchA]
ip route-static 172.1.20.0 24 NULL 0
[SwitchA]
ospf
[SwitchA-ospf-1]
import-route static
[SwitchA-ospf-1]
quit
# Check the IP routing table on Switch-B. You view that the five static routes are imported
to OSPF.
[SwitchB]
display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
10 Routing Policy Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
618