F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
511
peer substitute-as (BGP/BGP-VPN instance view)
Use peer substitute-as to replace the AS number of a peer/peer group in the AS_PATH attribute with the
local AS number.
Use undo peer substitute-as to remove the configuration.
Syntax
peer { group-name | ip-address } substitute-as
undo peer { group-name | ip-address } substitute-as
Default
No AS number is replaced.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
group-name: Specifies the name of a peer group, a sting of 1 to 47 characters.
ip-address: Specifies the IP address of a peer.
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-ipv4-vpn1] peer 1.1.1.1 substitute-as
peer timer (BGP/BGP-VPN instance view)
Use peer timer to configure the keepalive interval and holdtime for a peer or peer group.
Use undo peer timer to restore the default.
Syntax
peer { group-name | ip-address } timer keepalive keepalive hold holdtime
undo peer { group-name | ip-address } timer
Default
The keepalive and holdtime are 60s and 180s, respectively.
Views
BGP view, BGP-VPN instance view