10.6.1 Before You Start
Before applying filters to imported routes, familiarize yourself with the usage scenario, complete
the pre-configuration tasks, and obtain the required data. This can help you complete the
configuration task quickly and accurately.
Applicable Environment
After defining the filters including the IP prefix list, ACL, and Route-Policy related to the routing
policy, you need to import the filters to the protocols.
l
Applying the policy to import external routes
–
Use the
import-route
command in the protocol view. Import the required external
routes to the protocols and apply a Route-Policy to the imported routes.
–
After the external routes are imported, run the
filter-policy export
to filter the routes.
Only the routes that meet the matching rules are advertised.
NOTE
l
BGP has powerful filtering functions. For details of BGP configuration, refer to
l
You can run the
filter-policy
command and the
import-route
command with different parameters for
RIP, OSPF, IS-IS, and BGP. For details, refer to related configurations.
Pre-configuration Tasks
Before applying filters to imported routes, complete the following tasks:
l
Configuring the IP-Prefix List
l
Configuring an ACL
l
Data Preparation
To apply filters to imported routes, you need the following data.
No.
Data
1
Name of the IP prefix list
2
Name of the ACL
3
Name of the Route-Policy and node number
10.6.2 Applying Route-Policy to Routes Imported by RIP
By applying filters, you can control the import of RIP routes.
Context
Perform the following steps on the router that runs RIP:
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.
1246