peer default-route-advertise (BGP-VPN-Target address family view) (group)

Function

The peer default-route-advertise command configures a BGP device to advertise a default route to its peer group.

The undo peer default-route-advertise command cancels the configuration.

By default, a BGP device does not advertise any default route to its peer group.

Format

peer group-name default-route-advertise

undo peer group-name default-route-advertise

Parameters

Parameter Description Value
group-name

Specifies the name of a peer group.

The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

BGP-VPN-target address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

In a VPN ORF scenario, if a device does not support VPN ORF, you can configure an RR to advertise default VPN ORF routes to a peer group in the BGP-VPN-Target address family view so that the RR establishes a VPN ORF route-based peer relationship with the peer or peer group. In this way, VPN OFR is implemented.

For the specific usage scenario of this command, see "VPN" -> "BGP/MPLS IP VPN Configuration" -> "Configuring VPN ORF" in the Configuration Guide.

Example

# Configure a BGP device to advertise default routes to its peer group.
<HUAWEI> system-view
[*HUAWEI] bgp 100
[*HUAWEI-bgp] group test internal
[*HUAWEI-bgp] ipv4-family vpn-target
[*HUAWEI-bgp-af-vpn-target] peer test enable
[*HUAWEI-bgp-af-vpn-target] peer test default-route-advertise
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >