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

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.

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

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

Format

peer ipv6-address default-originate vpn-instance vpn-instance-name

undo peer ipv6-address default-originate vpn-instance vpn-instance-name

Parameters

Parameter Description Value
ipv6-address

Specifies the IPv6 address of a peer.

The address is in the format of X:X:X:X:X:X:X:X.

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

After the peer default-originate vpn-instance command is run, the Superstratum Provider Edge (SPE) sends a default route with the local address as the next hop address to the Underlayer PE (UPE), regardless of whether there is a default route in the local routing table. In this manner, the UPE only needs to maintain the local VPN routes, and all remote routes are replaced by the default route. This reduces the burden on the UPE.

Example

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