998
C
72: BGP C
HAPTER
Parameters
Description
Examples
peer password
Syntax
View
Parameters
Description
C
ONFIGURATION
OMMANDS
group-name: Name of a peer group, a string of 1 to 47 characters.
ip-address: IP address of a peer.
Use the
peer next-hop-local
routes to a peer/peer group.
Use the
undo peer next-hop-local
By default, routes advertised to an EBGP peer/peer group take the local router as
the next hop, while routes to an IBGP peer/peer group do not take the local router
as the next hop.
# In BGP view, set the next hop of routes advertised to peer group test to the
router itself.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test next-hop-local
# In BGP-VPN instance view, set the next hop of routes advertised to peer group
test to the router itself (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test next-hop-local
peer { group-name | ip-address } password { cipher | simple } password
undo peer { group-name | ip-address } password
BGP view/BGP-VPN instance view
group-name: Name of a peer group, a string of 1 to 47 characters.
ip-address: IP address of a peer.
cipher: Displays the configured password in cipher text format.
simple: Displays the configured password in plain text format.
password: Password, a string of 1 to 80 characters when keyword simple is used,
or when keyword cipher is included and plain text password is input; a string of
24 or 108 characters when cipher text password and the keyword cipher are
used.
Use the
peer password
authentication when a TCP connection is being established with a peer/peer
group.
command to specify the router as the next hop for
command to remove the configuration.
command to configure BGP to perform MD5