To create a routing instance for Layer 2 VPN, you must include at least the following statements in the configuration:
- [edit]
- routing-instances {
-
-
routing-instance-name {
-
instance-type l2vpn;
-
interface interface-name;
-
route-distinguisher (as-number:number | ip-address:number);
-
vrf-import [ policy-names ];
-
vrf-export [ policy-names ];
-
- protocols {
-
- l2vpn {
- ... l2vpn-configuration ...
- }
- }
- }
- }
For more information about configuring Layer 2 VPNs, see the JUNOS VPNs Configuration Guide.