Filtering Routes Advertised By Bgp - Huawei S6700 Series Configuration Manual

Ip routing
Hide thumbs Also See for S6700 Series:
Table of Contents

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
Step 3 Run:
filter-policy { acl-number | acl-name acl-name | ip-prefix ip-prefix-name | route-
policy route-policy-name } export [ protocol [ process-id ] ]
The filtering policy is configured for routes advertised by IS-IS.
----End

10.6.5 Filtering Routes Advertised by BGP

By applying filters, you can control the advertisement of BGP routes.
Procedure
l
l
Issue 01 (2012-03-15)
Filtering the Advertised Routes
Do as follows on the switch that runs BGP:
1.
Run:
system-view
The system view is displayed.
2.
Run:
bgp as-number
The BGP view is displayed.
3.
Run:
ipv4-family unicast
The IPv4 unicast address family view is displayed.
4.
Run:
filter-policy { acl-number | acl-name acl-name | ip-prefix ip-prefix-
name } export [ protocol [ process-id ] ]
The filtering policy is configured for routes advertised by BGP.
For the routes imported by BGP, only the routes that meet matching rules can be added
to the BGP local routing table and advertised to the BGP peers.
– If protocol is specified, only the routes of the specified protocol are filtered.
– If the parameter is not specified, all the routes advertised by BGP are filtered,
including the imported routes and the local routes advertised through the
network command.
NOTE
The filter-policy export command of different protocols have different affect ranges on routes
advertisement:
l For the link state protocol, only the routes imported are filtered.
l For the DV protocol, the routes imported and the routes discovered by the protocols are
filtered.
Filtering Routes Advertised to the Peers
Do as follows on the switch that runs BGP:
1.
Run:
system-view
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
10 Routing Policy Configuration
609

Advertisement

Table of Contents
loading

Table of Contents