H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 5 BGP Configuration Commands
5-27
If a value is specified for the protocol argument, only the imported route generated by
the specified protocol is filtered and the imported routes generated by other protocols
are not affected. If no value is specified for the protocol argument, the imported route
generated by any protocol will be filtered.
Examples
# Use ACL 2000 to filter the routing information advertised by BGP.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] bgp 100
[H3C-bgp] filter-policy 2000 export
5.1.27 filter-policy import
Syntax
filter-policy gateway ip-prefix-name import
undo filter-policy gateway ip-prefix-name import
filter-policy { acl-number | ip-prefix ip-prefix-name } import
undo filter-policy { acl-number | ip-prefix ip-prefix-name } import
View
BGP view
Parameters
acl-number: Number of the ACL used to match the destination address field of the
routing information, ranging 2000 to 3999.
ip-prefix ip-prefix-name: Specifies the name of address prefix list used to match the
destination address field of the routing information, containing 1 to 19 characters.
gateway ip-prefix-name: Specifies the ip-prefix name of a neighboring router to match
against the routing information advertised by the specified neighboring router.
ip-prefix-name contains 1 to 19 characters.
Description
Use the filter-policy gateway import command to filter the learned routing information
advertised by the peer with the specified address.
Use the undo filter-policy gateway import command to cancel the filtration to the
routing information advertised by the peer with specified address.
Use the filter-policy import command to filter the received global routing information.
Use the undo filter-policy import command to remove the filtration to the received
global routing information.