< Home

router-id (BGP)

Function

The router-id command configures a Router ID for the switch.

The undo router-id command deletes the Router ID configured for the switch.

By default, no BGP Router ID is configured, and the global Router ID configured through the router id command is used.

Format

router-id { ipv4-address | vpn-instance auto-select }

undo router-id [ vpn-instance auto-select ]

Parameters

Parameter Description Value

ipv4-address

Specifies a Router ID.

It is in dotted decimal notation.

vpn-instance auto-select

Configures automatic Router ID selection for all BGP-VPN instance IPv4 or IPv6 address families. If a Router ID is manually specified for a BGP-VPN instance IPv4 or IPv6 address family, the manually specified Router ID takes precedence over the automatically selected Router ID.

-

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The router-id command is used to configure a Router ID for the switch. Each Router ID uniquely identifies one BGP switch in an AS.

By configuring automatic Router ID selection for a BGP-VPN instance IPv4 address family, you can differentiate the configured Router ID of the BGP-VPN instance IPv4 address family from the BGP Router ID. For more information about the Router ID of a BGP-VPN instance IPv4 address family, see the router-id (BGP-VPN Instance IPv4 Address Family View) command.

Prerequisites

The bgp command is run to enable BGP.

Precautions

Changing or deleting a configured Router ID in the BGP view resets a BGP session. If a BGP session has been established in a BGP-VPN instance IPv4 address family, deleting the configured Router ID resets the BGP session. Exercise caution when changing or deleting a Router ID.

By default, the switch that is not configured with any interface uses the Router ID of 0.0.0.0 assigned by routing management.

Example

# Configure a Router ID for the switch.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] router-id 10.1.1.1
# Configure automatic Router ID selection for all BGP-VPN instance IPv4 address families.
<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] router-id vpn-instance auto-select
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >