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

Function

The peer default-route-advertise command configures a BGP device to advertise a default route to its peer or 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 or peer group.

Format

peer ipv4-address default-route-advertise

undo peer ipv4-address default-route-advertise

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

The value is in dotted decimal notation.

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.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.1 as-number 100
[*HUAWEI-bgp] ipv4-family vpn-target
[*HUAWEI-bgp-af-vpn-target] peer 10.1.1.1 enable
[*HUAWEI-bgp-af-vpn-target] peer 10.1.1.1 default-route-advertise
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >