peer default-originate vpn-instance (BGP-VPNv4 address family view) (group)

Function

The peer default-originate vpn-instance command configures BGP to advertise all default routes related to the specified VPN instance to the specified virtual private network version 4 (VPNv4) peer group.

The undo peer default-originate vpn-instance command removes the configuration.

By default, BGP does not advertise its default route to the VPNv4 peer group.

Format

peer group-name default-originate vpn-instance vpn-instance-name

undo peer group-name default-originate vpn-instance vpn-instance-name

Parameters

Parameter Description Value
group-name

Specifies the name of the 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.

vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

BGP-VPNv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

Hierarchy of VPN (HoVPN) refers to a hierarchical VPN, with multiple provider edges (PEs) functioning as different roles to form a hierarchical architecture and provide functions of a single PE. In this manner, the performance requirement on PEs is lowered. If the peer default-originate vpn-instance command is used, superstratum PE (SPE) sends the default route with the address of the next hop as the local address to underlayer PE (UPE), regardless of whether there is a default route in the local routing table. The underlayer PE (UPE) then only needs to maintain the local VPN routes, whereas all remote routes are replaced by the default route. The workload of the UPE is reduced.

Precautions

The default routes on the UPE can be obtained through the following methods:

  • Run the peer default-originate vpn-instance command on the SPE to configure routes for the neighboring UPE.
  • Import routes through the import-route (BGP) or network (BGP) command on the UPE.

    The priority of the default route obtained through the former method is higher than that through the latter method. If the former method is adopted, the UPE sends neither update nor withdraw packets in the latter method.

Example

# Advertise default routes of vpn1 to VPNv4 peer group.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[~HUAWEI-vpn-instance-vpn1] ipv4-family
[~HUAWEI-vpn-instance-vpn1] route-distinguisher 120:1
[*HUAWEI-vpn-instance-vpn1-af-ipv4] quit
[*HUAWEI-vpn-instance-vpn1] quit
[~HUAWEI] bgp 100
[*HUAWEI-bgp] group test internal
[*HUAWEI-bgp] ipv4-family vpnv4
[*HUAWEI-bgp-af-vpnv4] peer test enable
[*HUAWEI-bgp-af-vpnv4] peer test upe
[*HUAWEI-bgp-af-vpnv4] peer test default-originate vpn-instance vpn1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >