3com S7906E Guide De Référence

Page de 2327
 
1-32 
Examples 
# In BGP view, reference ACL 2000 to filter all outgoing routes. 
<Sysname> system-view 
[Sysname] bgp 100 
[Sysname-bgp] filter-policy 2000 export 
# In BGP-VPN instance view, reference ACL 2000 to filter all outgoing routes (the VPN has been 
created). 
<Sysname> system-view 
[Sysname] bgp 100 
[Sysname-bgp] ipv4-family vpn-instance vpn1 
[Sysname-bgp-vpn1] filter-policy 2000 export 
filter-policy import (BGP/BGP-VPN instance view) 
Syntax 
filter-policy acl-number | ip-prefix ip-prefix-name } import 
undo filter-policy import 
View 
BGP view/BGP-VPN instance view  
Default Level 
2: System level 
Parameters 
acl-number: Number of an ACL used to filter incoming routing information, ranging from 2000 to 3999. 
ip-prefix-name: Name of an IP prefix list used to filter incoming routing information, a string of 1 to 19 
characters.  
Description 
Use the filter-policy import command to configure the filtering of incoming routing information.  
Use the undo filter-policy import command to disable the filtering. 
By default, incoming routing information is not filtered. 
Examples 
# In BGP view, reference ACL 2000 to filter incoming routing information. 
<Sysname> system-view 
[Sysname] bgp 100 
[Sysname-bgp] filter-policy 2000 import 
# In BGP-VPN instance view, reference ACL 2000 to filter incoming routing information (the VPN has 
been created). 
<Sysname> system-view 
[Sysname] bgp 100 
[Sysname-bgp] ipv4-family vpn-instance vpn1 
[Sysname-bgp-vpn1] filter-policy 2000 import