vpn-instance (BGP view)

Function

The vpn-instance command creates a BGP VPN instance and displays the BGP VPN instance view.

The undo vpn-instance command deletes a BGP VPN instance.

By default, no BGP VPN instance is created.

Format

vpn-instance vpn-instance-name

undo vpn-instance vpn-instance-name

Parameters

Parameter Description Value
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 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

Running the vpn-instance command creates a BGP VPN instance and displays the BGP VPN instance view. The configuration in this view takes effect for the routes and peers in all address families of the specified VPN instance.

Prerequisites

A VPN instance has been created using the ip vpn-instance command.

Configuration Impact

Running the undo vpn-instance command to delete a BGP VPN instance clears all the configurations in the BGP VPN instance.

Follow-up Procedure

After the BGP VPN instance is created, run the peer as-number command in the BGP VPN instance view to create BGP peers and enable these BGP peers in the BGP VPN instance IPv6 address family view.

Precautions

The BGP peers configured in the BGP VPN instance view can be used in both the BGP VPN instance IPv4 address family view and the BGP VPN instance IPv6 address family view.

Example

# Create a BGP VPN instance named vpn1 and access the BGP VPN instance view.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv4-family
[*HUAWEI-vpn-instance-vpn1-af-ipv4] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] vpn-instance vpn1
[*HUAWEI-bgp-instance-vpn1]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >