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

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 group.

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 peerGroupName next-hop-local

undo peer peerGroupName next-hop-local

Parameters

Parameter Description Value
peerGroupName

Specifies the name of an MBGP peer group.

The value is a string of 1 to 47 case-sensitive characters, spaces not supported.

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 group named test.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] group test internal
[*HUAWEI-bgp] IPv4-family multicast
[*HUAWEI-bgp-af-multicast] peer test enable
[*HUAWEI-bgp-af-multicast] peer test next-hop-local
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >