R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
411
peer substitute-as (BGP/BGP-VPN instance view)
Syntax
peer { group-name | ip-address } substitute-as
undo peer { group-name | ip-address } substitute-as
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.
Description
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.
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.