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.
Parameter | Description | Value |
---|---|---|
vpn-instance-name |
Specifies the name of the VPN instance to be associated with the interface. |
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. |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, Physical FlexE subInterface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, Loopback interface view, Tunnel interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, XGE interface view, Management interface view, Virtual template view
Usage Scenario
After creating a VPN instance, you must 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.
Prerequisites
A VPN instance has been configured using the ip vpn-instance command.
Configuration Impact
After an interface is associated with a VPN instance or an interface is disassociated 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.
Precautions
<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] commit [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] ip binding vpn-instance vrf1