R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide
322
Related commands
peer ebgp-max-hop (Layer 3—IP Routing Command Reference)
peer next-hop-local
Use peer next-hop-local to configure the device to use the local address as the next hop of a route when
advertising it to a peer or peer group.
Use undo peer next-hop-local to remove the configuration.
Syntax
peer { group-name | ip-address } next-hop-local
undo peer { group-name | ip-address } next-hop-local
Views
BGP-VPNv4 subaddress family view, BGP-L2VPN address family view, BGP-VPLS address family view
Default command level
2: System level
Parameters
group-name: Name of the peer group, a case-sensitive string of 1 to 47 characters.
ip-address: IP address of the peer.
Examples
# In BGP-VPNv4 subaddress family view, configure the device to use the local address as the next hop
of a route when advertising it to peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer test next-hop-local
# In BGP-L2VPN address family view, configure the device to use the local address as the next hop of a
route when advertising it to peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] peer test next-hop-local
# In BGP-VPLS address family view, configure the device to use the local address as the next hop of a
route when advertising it to peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] vpls-family
[Sysname-bgp-af-vpls] peer test next-hop-local
peer preferred-value (BGP-VPNv4 subaddress family view)
Use peer preferred-value to specify the preference value for the routes received from the specified
peer/peer group.










