![H3C S9500 Series Command Manual Download Page 308](http://html.mh-extra.com/html/h3c/s9500-series/s9500-series_command-manual_575036308.webp)
Command Manual – MPLS L3VPN
H3C S9500 Series Routing Switches
Chapter 1 MPLS L3VPN Configuration Commands
1-45
1.1.36 peer next-hop-invariable (BGP-VPNv4 subaddress family view)
Syntax
peer
{
ip-address
|
group-name
}
next-hop-invariable
undo
peer
{
ip-address
|
group-name
}
next-hop-invariable
View
BGP-VPNv4 subaddress family view
Default Level
2: System level
Parameters
ip-address
: IP address of the peer.
group-name
: Name of the peer group.
Description
Use the
peer next-hop-invariable
command to configure the device not to change the
next hop of a route when advertising it to an EBGP peer.
Use the
undo peer next-hop-invariable
command to restore the default.
By default, a device uses its address as the next hop when advertising a route to its
EBGP peer.
Related commands: refer to
BGP Commands
.
Examples
# In BGP-VPNv4 subaddress family view, configure the device not to change the next
hop of a route when advertising it to EBGP peer 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 next-hop-invariable
1.1.37 peer next-hop-local
Syntax
peer
{
group-name | ip-address
}
next-hop-local
undo peer
{
group-name | ip-address
}
next-hop-local