Configuring an L2VPN Instance
You must configure an L2VPN instance for each L2VPN in which the router participates. From a configuration standpoint, an L2VPN instance is simply a new L2VPN that you configure with additional L2VPN attributes.
Table 71 lists the commands that you use to configure a basic L2VPN instance.
To configure a basic L2VPN instance on the PE router:
You must issue this command before any other l2vpn commands.
host1(config)#l2vpn exampleco encapsulation-type ethernet
- Configure the maximum number of customer sites that can participate in the L2VPN.
host1(config)#l2vpn exampleco site-range 10- Configure the name and ID number for the customer sites in the L2VPN instance.
The site ID value must be greater than zero and be unique within the L2VPN for that customer site.
host1(config)#l2vpn exampleco site-name westford site-id 1In this example, the first number in the route distinguisher (100) is the number of the autonomous system (AS). The second number in the route distinguisher (11) uniquely identifies the L2VPN instance within that AS.
host1(config)#l2vpn exampleco rd 100:11
- Create or add a route target to the import and export lists of the L2VPN's route-target extended community.
The PE router uses the lists to determine which routes are imported into the L2VPN instance.
host1(config)#l2vpn exampleco route-target both 100:1