Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Configuring a Routing Policy for MPLS Layer 2 VPNs (CLI Procedure)

 

These instructions show how to configure a Layer 2 VPN routing policy on the PE routers in the VPN.

After configuring an import routing policy for a Layer 2 VPN, configure an export routing policy for the Layer 2 VPN. Configure this export policy on the PE routers in the VPN. The export routing policy defines how routes are exported from the PE router routing table. An export policy is applied to routes sent to other PE routers in the VPN. The export policy must also evaluate all routes received over the routing protocol session with the CE router. The export policy must also contain a second term for rejecting all other routes.

To configure a Layer 2 VPN routing policy on a PE router:

  1. Configure the import routing policy.
  2. Define the import policy’s term for accepting packets.
  3. Define the import policy’s term for rejecting packets.
  4. Configure the export routing policy.
  5. Define the export policy’s term for accepting packets.
  6. Define the export policy’s term for rejecting packets.
  7. Define the export policy’s community using one of the following commands.
  8. Commit the configuration if you are finished configuring the device.