6-66
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
# In BGP-VPN instance view, substitute local AS number for AS number of peer 1.1.1.1 (the VPN has
been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer 1.1.1.1 substitute-as
peer timer (BGP/BGP-VPN instance view)
Syntax
peer
{
group-name | ip-address
}
timer
keepalive keepalive hold holdtime
undo peer
{
group-name | ip-address
}
timer
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
group-name
: Name of a peer group, a sting of 1 to 47 characters.
ip-address
: IP address of a peer.
keepalive
: Keepalive interval in seconds, ranging from 0 to 21845.
holdtime
: Holdtime interval in seconds, whose value is 0 or in the range of 3 to 65535.
Description
Use the
peer timer
command to configure the keepalive interval and holdtime interval for a peer or
peer group.
Use the
undo peer timer
command to restore the default.
By default, the
keepalive
and
holdtime
are 60s and 180s respectively.
Note that:
z
The timers configured with this command are preferred to the timers configured with the
timer
command.
z
If the holdtime interval is configured as 0, no keepalive message will be sent to the peer, and the
peer connection will never time out. If the keepalive interval is configured as 0 and the negotiated