You must configure a VPWS instance for each L2VPN in which the router participates. From a configuration standpoint, a VPWS instance is simply a new L2VPN that you configure with additional VPWS L2VPN attributes.
Table 1 lists the commands that you use to configure a basic VPWS instance.
Table 1: Commands to Configure Basic VPWS Instances
l2vpn control-word | l2vpn route-target |
l2vpn encapsulation-type | l2vpn sequencing |
l2vpn local-site-id remote-site-id | l2vpn site-name site-id |
l2vpn rd | l2vpn site-range |
To configure a basic VPWS instance on the PE router:
You must issue this command before any other l2vpn commands.
The site ID value must be greater than zero and be unique within the L2VPN for that customer site. This is not true for a multihomed customer site. See Configuring BGP Multihoming for VPWS for more information.
In 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.
The PE router uses the lists to determine which routes are imported into the VPWS instance.