Command Manual – MPLS 
Quidway S8500 Series Routing Switches  Chapter 2  BGP/MPLS VPN Configuration Commands
 
Huawei Technologies Proprietary 
2-47 
Description 
Use the peer vpn-instance substitute-as command to enable the BGP AS number 
substitution on the PE. 
Use the undo peer vpn-instance substitute-as command to disable the function. 
By default, the BGP AS number substitution function is disabled. 
After this function is enabled, when the PE advertises the specified peer the route 
information and the routed AS path has the same AS number as that of the peer, the AS 
number in the AS path will be replaced by the AS number of the PE before being 
advertised. 
These commands take effect once being executed. 
Example 
# Enable the BGP AS number substitution for the peer group 20. 
[Quidway-bgp-af-vpn] peer 20 vpn-instance vrf1 substitute-as 
2.1.57  policy vpn-target 
Syntax 
policy vpn-target 
undo policy vpn-target 
View 
BGP-VPNv4 subaddress family view 
Parameter 
None 
Description 
Use the policy vpn-target command to configure to filter the VPN-target extended 
community attributes of received routing information. 
Use the undo policy vpn-target command to cancel the setting.  
By default, the filtering of VPN-target extended community attribute is conducted.  
Example 
# Filter the VPN-target extended community attributes of the received routing 
information.  
[Quidway-bgp-af-vpn] policy vpn-target