396
Step Command
Remarks
4.
Configure a description for
the VPN instance.
description
text
Optional
Associating a VPN instance with an interface
In an MPLS L3VPN application, you must associate VPN instances with the interfaces connecting the PEs.
In a tunneling application, you must associate VPN instances with the tunnel interfaces connecting the
peer MCE devices or CE devices.
After creating and configuring a VPN instance, you associate the VPN instance with the interface for
connecting different VPN sites.
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 the current interface
with the VPN instance.
ip binding vpn-instance
vpn-instance-name
No VPN instance is associated
with an interface by default.
NOTE:
The
ip binding vpn-instance
command clears the IP address of the interface on which it is configured. Be
sure to reconfigure an IP address for the interface after configuring the command.
Configuring route-related attributes of a VPN instance
The control process of VPN route advertisement is as follows:
•
When a VPN route learned from a site gets redistributed into BGP, BGP associates it with a route
target extended community attribute list, which is usually the export target attribute of the VPN
instance associated with the site.
•
The VPN instance determines which routes it can accept and redistribute according to the
import-extcommunity
in the route target.
•
The VPN instance determines how to change the route targets attributes for routes to be advertised
according to the
export-extcommunity
in the route target.
IMPORTANT:
•
Only when BGP runs between the MCE and PE can the route target attribute be advertised to the PE
along with the routing information. In other cases, configuring this attribute makes no sense.
•
Before associating a routing policy with a VPN instance, you must first create the routing policy.
Otherwise, the default routing policy is used.
To configure route related attributes of a VPN instance:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter VPN instance view.
ip vpn-instance
vpn-instance-name
N/A