Configuring VPN Routing between the PE and CE Routers

For the PE router to distribute VPN-related routes to and from connected CE routers, you must configure routing within the VPN routing instance. You can configure a routing protocol—either BGP, OSPF, or RIP—or you can configure static routing. For the connection to each CE router, you can configure only one type of routing.

To configure BGP as the routing protocol between the PE and the CE router, include the protocols bgp statement:

[edit routing-instances routing-instance-name] 
protocols {
  bgp {
    group group-name {
      peer-as as-number;
      neighbor ip-address;
    }
  }
}

To configure OSPF to distribute VPN-related routes between the PE and CE routers, configure an OSPF domain ID for each distinct ...

Get Juniper Networks® Field Guide and Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.