The vpn-instance command binds a VPN instance to a domain.
The undo vpn-instance command unbinds the VPN instance from the domain.
By default, a public network VPN instance is bound to a domain.
This command is supported only on the NetEngine 8000 F1A.
Usage Scenario
To provide wholesale services for multiple ISPs over an MPLS VPN, you need to run the vpn-instance command to bind the VPN instance to a domain.
If an IPoE user wants to access a VPN, you need to run the command to bind the VPN instance to the domain.Prerequisites
The VPN instance to be bound to a domain has been created using the ip vpn-instance command in the system view, and RD has been configured for the VPN instance.
Configuration ImpactPrecautions
The VPN instance bound to a domain must be the same as that bound to the address pool in the domain. Otherwise, users in the domain cannot get online.
After a domain has been bound to a VPN instance, no address family can be added to or deleted from the VPN instance. Before adding an address family to or deleting an address family from a VPN instance, you must unbind the VPN instance from the domain.In VS mode, this command is supported only by the admin VS.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vrf1 [*HUAWEI-vpn-instance-vrf1] ipv4-family [*HUAWEI-vpn-instance-vrf1-af-ipv4] route-distinguisher 22:1 [*HUAWEI-vpn-instance-vrf1-af-ipv4] vpn-target 3:3 export-extcommunity [*HUAWEI-vpn-instance-vrf1-af-ipv4] vpn-target 4:4 import-extcommunity [*HUAWEI-vpn-instance-vrf1-af-ipv4] commit [~HUAWEI-vpn-instance-vrf1-af-ipv4] quit [~HUAWEI-vpn-instance-vrf1] quit [~HUAWEI] aaa [~HUAWEI-aaa] domain huawei [*HUAWEI-aaa-domain-huawei] commit [~HUAWEI-aaa-domain-huawei] vpn-instance vrf1