H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 5 BGP Configuration Commands
5-31
Description
Use the peer advertise-community command to enable the transmission of the
community attribute to a peer group.
Use the undo peer advertise-community command to cancel the existing
configuration.
By default, the community attribute is not transmitted to any peer group.
Related commands: if-match community-list, apply community.
Examples
# Transmit the community attribute to the peer group named test.
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C] bgp 100
[H3C-bgp] peer test advertise-community
5.1.32 peer allow-as-loop
Syntax
peer { group-name | ip-address } allow-as-loop [ number ]
undo peer { group-name | ip-address } allow-as-loop
View
BGP view
Parameters
group-name: Name of a peer group, containing 1 to 47 alphanumeric characters.
ip-address: IP address of the peer.
number: Times of repeating the local AS number, in the range of 1 to 10.
Description
Use the peer allow-as-loop command to allow the local AS number to appear in the
AS_Path attribute of the received route and configure the repeated times.
Use the undo peer allow-as-loop command to cancel the function.
Related commands: display current-configuration, display bgp routing-table peer,
display bgp routing-table group
Examples
# Set the times of repeating the local AS that learns routes from 1.1.1.1 to “2”.
<H3C>system-view