NOTE
This document takes interface numbers and link types of the NE40E-X8 as an example. In working
situations, the actual interface numbers and link types may be different from those used in this document.
10.9.1 Example for Filtering Received and Advertised Routes
Filters can be applied to the received and advertised routes according to networking
requirements.
Networking Requirements
, in the network that runs OSPF, Router A receives routes from the
network, and provides some of these routes for Router B. Router A is required to provide only
172.1.17.0/24, 172.1.18.0/24 and 172.1.19.0/24 for Router B. Router C is required to receive
only172.1.18.0/24.Router D receives all the routes provided by Router B.
Figure 10-1
Networking diagram for filtering received and advertised routes
POS1/0/0
192.168.1.2/24
POS2/0/0
192.168.3.1/24
POS3/0/0
192.168.2.1/24
POS1/0/0
192.168.2.2/24
POS1/0/0
192.168.3.2/24
RouterC
RouterD
RouterB
RouterA
OSPF
172.1.16.0/24
172.1.17.0/24
172.1.18.0/24
172.1.19.0/24
172.1.20.0/24
POS1/0/0
192.168.1.1/24
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure basic OSPF functions on Router A, Router B, Router C, and Router D.
2.
Configure static routes on Router A, and import these routes to OSPF.
3.
Configure the policy for advertising routes on Router A, and check the filtering result on
Router B.
4.
Configure the policy for receiving routes on Router C, and check the filtering result on
Router C.
Data Preparation
To complete the configuration, you need the following data:
l
Five static routes imported by Router A.
l
Router A, Router B, Router C, and Router D that reside in Area 0, that is the backbone area.
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
10 Routing Policy Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1252