Configure the Instance Type
The instance type you configure varies depending on whether you are configuring Layer2 VPNs, Layer 3 VPNs, VPLS, or virtual routers. Specify the instance type by configuring the
instance-typestatement at the[edit routing-instancesrouting-instance-name]hierarchy level:
- To enable Layer 2 VPN routing on a PE router, configure the
instance-typestatement asl2vpnat the[edit routing-instancesrouting-instance-name]hierarchy level:[edit routing-instancesrouting-instance-name]instance-type l2vpn;
- To enable VPLS routing on a PE router, configure the
instance-typestatement asvplsat the[edit routing-instancesrouting-instance-name]hierarchy level:[edit routing-instancesrouting-instance-name]instance-type vpls;
- Layer 3 VPNs require that each PE router have a VPN routing and forwarding (VRF) table for distributing routes within the VPN. To create the VRF table on the PE router, configure the
instance-typestatement asvrfat the[edit routing-instancesrouting-instance-name]hierarchy level:[edit routing-instancesrouting-instance-name]instance-type vrf;
- To enable the virtual router routing instance, configure the
instance-typestatement asvirtual-routerat the[edit routing-instancesrouting-instance-name]hierarchy level:[edit routing-instancesrouting-instance-name]instance-type virtual-router;