The AS_Path attribute is used to prevent routing loops and control route selection.
bgp { as-number-plain | as-number-dot }
ipv6-family unicast
Allow the local AS number to be used repeatedly.
peer { ipv6-address | group-name } allow-as-loop [ number ]
Configure BGP to ignore AS_Path attributes of routes during route selection.
Configure the device to delete private AS numbers (if any) from the AS_Path attribute before sending update packets.
peer { ipv6-address | group-name } public-as-only [ force ]
The peer public-as-only command can be used only on EBGP peers.
After the command without force is run, the device does not delete the private AS numbers from the AS_Path attribute before sending update packets in either of the following scenarios:
To enable the device to delete the private AS numbers from the AS_Path attribute before sending update packets even in the preceding scenarios, specify force in the command.
bgp { as-number-plain | as-number-dot }
peer { ipv6-address | group-name } fake-as { as-number-plain | as-number-dot }
The peer fake-as command can be used to hide the actual AS number of a BGP device. EBGP peers in other ASs will use the fake AS number of this BGP device to set up EBGP peer relationships with this device.
This command is applicable only to EBGP peers.
bgp { as-number-plain | as-number-dot }
ipv6-family unicast
peer { ipv6-address | group-name } substitute-as
After this command is used, if the AS_Path attribute contains the AS number of the peer, the device replaces the AS number of the peer with the local AS number before advertising routes to the peer.
If the configuration is incorrect, the command may cause routing loops.