R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)
428
To specify the address of an indirectly connected interface as the source address, use the peer
ebgp-max-hop command. The command allows the establishment of an EBGP session to the indirectly
connected peer.
You can specify both a source IP address and a source IPv6 address for a peer group. BGP uses the
source IP address to establish TCP connections to IPv4 peers in the group. It also uses the source IPv6
address to establish TCP connections to IPv6 peers in the group.
Examples
# In BGP view, specify the source IP and IPv6 addresses 1.1.1.1 and 1::1 for the peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test source-address 1.1.1.1 1::1
# In BGP-VPN instance view, specify the source IP and IPv6 addresses 1.1.1.1 and 1::1 for the peer group
test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] peer test source-address 1.1.1.1 1::1
Related commands
• peer connect-interface
• peer ebgp-max-hop
peer substitute-as
Use peer substitute-as to replace the AS number of a peer or peer group in the AS_PATH attribute with
the local AS number.
Use undo peer substitute-as to restore the default.
Syntax
peer { group-name | ip-address | ipv6-address } substitute-as
undo peer { group-name | ip-address | ipv6-address } substitute-as
Default
The AS number of a peer or peer group in the AS_PATH attribute is not replaced.
Views
BGP view, BGP-VPN instance view
Predefined user roles
network-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
ip-address: Specifies a peer by its IP address. The peer must have been created.
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.










