Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 5 BGP Configuration Commands
5-56
[Sysname] bgp 100
[Sysname-bgp] peer test as-number 100
[Sysname-bgp] peer test route-update-interval 10
5.1.66 peer substitute-as
Syntax
peer
{
group-name
|
ip-address
}
substitute-as
undo peer
{
group-name
|
ip-address
}
substitute-as
View
BGP view
Parameters
group-name
: Name of a peer group, a sting of 1 to 47 characters.
ip-address
: IP address of a peer.
Description
Use the
peer substitute-as
command to replace the AS number of a peer/peer group
in the AS_PATH attribute with the local AS number.
Use the
undo peer substitute-as
command to remove the configuration.
No AS number is replaced by default.
Examples
# In BGP view, substitute local AS number for AS number of peer 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 substitute-as
5.1.67 peer timer
Syntax
peer
{
group-name | ip-address
}
timer
keepalive keepalive hold holdtime
undo peer
{
group-name | ip-address
}
timer
View
BGP view
Parameters
group-name
: Name of a peer group, a sting of 1 to 47 characters.