L2VPN Configuration Tasks
To configure a PE router to provide L2VPNs:
- Configure the encapsulation type and create an L2VPN instance on the PE router for each L2VPN in which the router participates.
- Configure a customer site name and a unique site identifier for each customer site that belongs to the L2VPN instance.
- Configure the maximum number of customer sites that can participate in the L2VPN.
- Configure the unique two-part route distinguisher for the L2VPN instance.
- Create a list of L2VPN extended communities that the router uses to determine which routes are imported by the L2VPN instance.
- Configure the L2VPN local preference options for control words and sequencing.
- Configure the layer 2 interfaces that connect the PE router to each CE device in the L2VPN.
- Configure each layer 2 interface as a member of an L2VPN instance by specifying local and remote site IDs.
- Configure two sites in the L2VPN instance that are local to the PE router.
- Configure the correct local and remote site IDs on the customer-facing interfaces for the cross-connected sites.
- Configure a loopback interface to use as the update source for the TCP connection.
- Assign a router ID that uses the IP address of the loopback interface.
- Set up BGP signaling in the autonomous system that is configured to signal reachability for this L2VPN instance.
- Enable BGP.
- Configure the PE-to-PE BGP session.
- Create the L2VPN address family to configure the router to use BGP signaling.
- Activate the neighbors in the L2VPN address family for the PE-to-PE BGP session.
- Create the VPWS address family to configure the router to exchange layer 2 NLRI for each L2VPN instance configured on the router.
- Enable MPLS on the virtual router.
- Configure the core-facing interface on which you want to enable MPLS, Label Distribution Protocol (LDP), and topology-driven LSPs.
- Enable MPLS on the core-facing interface.
- Enable LDP and topology-driven LSPs on the core-facing interface.
- Configuring BGP Signaling for L2VPNs
- Configuring a Local Cross-Connect for L2VPNs
- Configuring an L2VPN Instance
- Configuring Customer-Facing Interfaces in the L2VPN Instance
- Configuring the Loopback Interface and Router ID for BGP for L2VPNs
- Configuring MPLS LSPs for L2VPNs
- For a detailed sample configuration, see L2VPN Configuration Example