peer next-hop-local (BGP-IPv4 multicast address family view)

Function

The peer next-hop-local command configures an MBGP device to set its IP address as the next hop of routes when the MBGP device advertises the routes to an IBGP peer.

The undo peer next-hop-local command restores the default setting.

By default, an MBGP device sets its IP address as the next hop address of routes when advertising them to its EBGP peer; the BGP device does not change the next hop address of routes when advertising them to its IBGP peer.

Format

peer peerIpv4Addr next-hop-local

undo peer peerIpv4Addr next-hop-local

Parameters

Parameter Description Value
peerIpv4Addr

Specifies the IP address of an MBGP peer.

The address is in dotted decimal notation.

Views

BGP-IPv4 multicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The peer next-hop-local command is applicable to IBGP peers.

Example

# Configure an MBGP device to set its IP address as the next hop of routes when the MBGP device advertises the routes to an IBGP peer.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp] IPv4-family multicast
[*HUAWEI-bgp-af-multicast] peer 1.1.1.1 enable
[*HUAWEI-bgp-af-multicast] peer 1.1.1.1 next-hop-local
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >