Associating a VPN instance with an interface

After creating and configuring a VPN instance, associate the VPN instance with the MCE's interface connected to the site and the interface connected to the PE.

To associate a VPN instance with an interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Associate a VPN instance with the interface.

ip binding vpn-instance vpn-instance-name

By default, no VPN instance is associated with an interface.

The ip binding vpn-instance command deletes the IP address of the current interface. You must re-configure an IP address for the interface after configuring the command.