R21xx-HP FlexFabric 11900 Layer 3 IP Routing Command Reference

295
If the AS_PATH attribute carries AS numbers of the peer or peer group, the command does not take
effect. The device sends the BGP update to the peer or peer group without removing the private AS
numbers.
This command is only applicable to an EBGP peer or peer group.
Examples
# In BGP IPv4 unicast address family view, remove private AS numbers in BGP updates sent to EBGP peer
group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family unicast
[Sysname-bgp-ipv4] peer test public-as-only
# In BGP VPNv4 address family view, remove private AS numbers in BGP updates sent to EBGP peer
group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family vpnv4
[Sysname-bgp-vpnv4] peer test public-as-only
# In BGP-VPN IPv6 unicast address family view, remove private AS numbers in BGP updates sent to EBGP
peer group test
.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] ipv6-family unicast
[Sysname-bgp-ipv6-vpn1] peer test public-as-only
peer reflect-client
Use peer reflect-client to configure the device as a route reflector and specify a peer or peer group as a
client.
Use undo peer reflect-client 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 } reflect-client
undo peer { group-name | ip-address } reflect-client
In BGP IPv6 unicast address family view:
peer { group-name | ipv6-address } reflect-client
undo peer { group-name | ipv6-address } reflect-client
Default
Neither the route reflector nor the client is configured.
Views
BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address
family view, BGP IPv6 unicast address family view, BGP VPNv6 address family view