374
ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters.
export: Applies the filter to routes advertised to the specified peer/peer group.
import: Applies the filter to routes received from the specified peer/peer group.
Usage guidelines
The specified IPv4 prefix list or IPv6 prefix list must have been created with the ip prefix-list or ipv6
prefix-list command in system view. Otherwise, all routes can pass the IPv4/IPv6 prefix list.
Examples
# In BGP IPv4 unicast address family view, use the IPv4 prefix list list1 to filter routes advertised to the
peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4] peer test prefix-list list1 export
# In BGP-VPN IPv6 unicast address family view, use the IPv6 prefix list list1 to filter routes advertised to
the peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv6 unicast
[Sysname-bgp-ipv6-vpn1] peer test prefix-list list1 export
Related commands
• filter-policy export
• filter-policy import
• ip prefix-list
• ipv6 prefix-list
• peer as-path-acl
• peer filter-policy
• peer route-policy
peer public-as-only
Use peer public-as-only to remove private AS numbers in BGP updates sent to an EBGP peer or peer
group.
Use undo peer public-as-only to restore the default.
Syntax
In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4
address family view/BGP VPNv6 address family view:
peer { group-name | ip-address } public-as-only
undo peer { group-name | ip-address } public-as-only
In BGP IPv6 unicast address family view:
peer { group-name | ip-address | ipv6-address } public-as-only