supernet label-route advertise (BGP-labeled VPN instance IPv4 address family view)

Function

The supernet label-route advertise disable command disables a BGP device from advertising labeled BGP supernet routes.

The undo supernet label-route advertise disable command restores the default configuration.

The supernet label-route advertise enable command restores the default configuration.

By default, labeled BGP supernet routes can be preferentially selected and advertised.

Format

supernet label-route advertise enable

supernet label-route advertise disable

undo supernet label-route advertise disable

Parameters

None

Views

BGP-labeled VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

A BGP supernet route has the same destination address and next hop address or has a destination address that is more detailed than the next hop address. Any route that meets one of the following conditions is a BGP supernet route:

  • If you perform bitwise AND operations on the destination address mask with the destination address and next hop address, respectively, the calculated network addresses are the same, and the destination address mask is greater than or equal to the next hop address mask.
  • If you perform bitwise AND operations on the destination address mask with the destination address and next hop address, respectively, the calculated network addresses are different. However, if you perform bitwise AND operations on the next hop address mask with the destination address and next hop address, respectively, the calculated network addresses are the same.

    BGP supernet routes include labeled BGP supernet routes and unicast BGP supernet routes. Run the supernet label-route advertise disable command to disable the BGP device from advertising labeled BGP supernet routes.

Example

# Disable a BGP device from advertising labeled BGP supernet routes.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-labeled-unicast vpn-instance vpna
[*HUAWEI-bgp-labeled-vpna] supernet label-route advertise disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >