No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
ip binding vpn-instance

ip binding vpn-instance

Function

The ip binding vpn-instance command associates an interface on a PE with a VPN instance.

The undo ip binding vpn-instance command disables the association between a VPN instance and an interface.

By default, an interface is a public network interface and is not associated with any VPN instance.

Format

ip binding vpn-instance vpn-instance-name

undo ip binding vpn-instance vpn-instance-name

Parameters

Parameter Description Value
vpn-instance-name Specifies the name of the VPN instance that is associated with the interface. The value is a string of 1 to 31 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string. The value _public_ is reserved and cannot be used as the VPN instance name.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After a VPN instance is created, you need to associate the PE interface connecting to the VPN with the VPN instance. Then, the interface is used as a private network interface on which a private network address and a private network routing protocol can be configured.

A VPN instance is usually bound to a loopback interface to test whether two private networks can communicate. Before binding a VPN instance to a loopback interface, bind the instance to a VLANIF interface or a physical interface. In application, a VPN instance must be bound to a VLANIF interface, a physical interface or a tunnel interface.

Prerequisites

The ip vpn-instance command has been executed to create a VPN instance

Precautions

The CE6810LI does not support packet forwarding based on the VPN routing table. In addition, the IP address segment of the interface bound to the VPN instance cannot be the same as the public network IP address segment on the CE6810LI.

After an interface is associated with a VPN instance or an interface is unassociated from a VPN instance, the Layer 3 features on this interface, such as the IP address and routing protocol, are deleted. The Layer 3 features need to be reconfigured if required.

The ip binding vpn-instance command also allows you to bind an interface to a VPN instance with no enabled address families. After the binding, you cannot configure Layer 3 features, such as IP addresses and routing protocols, on the interface.

Using the undo ipv4-family or undo ipv6-family command to disable the IPv4 or IPv6 address family also deletes the IPv4 or IPv6 configurations of the interfaces bound to the VPN instance.

For CE7855EI, CE6856HI, and CE6855HI switches, the VLANIF and VBDIF interface cannot be bound to the same one VPN instance.

Example

# Associate the VLANIF 10 interface with the VPN instance named vrf1.

<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vrf1
[*HUAWEI-vpn-instance-vrf1] ipv4-family
[*HUAWEI-vpn-instance-vrf1-af-ipv4] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vrf1-af-ipv4] quit
[*HUAWEI-vpn-instance-vrf1] quit
[*HUAWEI] interface vlanif 10
[*HUAWEI-Vlanif10] ip binding vpn-instance vrf1
Info: All IPv4 and IPv6 related configurations on this interface are removed!
# Associate the 10GE1/0/1 interface with the VPN instance named vrf1.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vrf1
[~HUAWEI-vpn-instance-vrf1] ipv4-family
[~HUAWEI-vpn-instance-vrf1-af-ipv4] route-distinguisher 100:1
[~HUAWEI-vpn-instance-vrf1-af-ipv4] quit
[*HUAWEI-vpn-instance-vrf1] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] undo portswitch
[*HUAWEI-10GE1/0/1] ip binding vpn-instance vrf1
Info: All IPv4 and IPv6 related configurations on this interface are removed!
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 52421

Downloads: 339

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next