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 or 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 or peer group.
peer { ipv4-address | group-name } default-originate vpn-instance vpn-instance-name
undo peer { ipv4-address | group-name } default-originate vpn-instance vpn-instance-name
| Parameter | Description | Value |
|---|---|---|
| ipv4-address | Specifies the IPv4 address of a peer. | It is in dotted decimal notation. |
| group-name | Specifies the name of the peer group. | The name is a string of 1 to 47 characters without any space. It is case-sensitive. |
| vpn-instance-name | Specifies the name of a VPN instance. | The name is a string of 1 to 31 characters without any space. It is case-sensitive. |
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 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, 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
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.
# Advertise default routes of vpn1 to VPNv4 peer 1.1.1.1.
<sysname> system-view
[sysname] bgp 100
[sysname-bgp] peer 1.1.1.1 as-number 100
[sysname-bgp] ipv4-family vpnv4
[sysname-bgp-af-vpnv4] peer 1.1.1.1 enable
[sysname-bgp-af-vpnv4] peer 1.1.1.1 upe
[sysname-bgp-af-vpnv4] peer 1.1.1.1 default-originate vpn-instance vpn1