L2VPN Configuration
BGP-Siganaled L2VPNs
- Accept all Ethernet traffic
- Accept specific VLAN tags
Accept all Ethernet Traffic
- Configure
family l2vpn signaling
under[edit protocols bgp group <group-name>]
- Configure CE-Facing interface on the PE with the encapsulation
ethernet-ccc
(for Ethernet mode) andunit 0
; Encapsulation should match on both sides.Ethernet raw mode (5)
can be seen in the packet capture. - Configure the routing instance on PE
root@PE> show configuration routing-instances my-customer-1
instance-type l2vpn;
interface ge-0/0/0.0;
route-distinguisher 192.168.1.1:100;
vrf-target target:64501:100;
protocols {
l2vpn {
encapsulation-type ethernet;
site customer-1-site-1 {
site-identifier 1;
interface ge-0/0/0.0;
}
}
}
vrf-target
statement automatically generates import/export policies.
manual create and apply routing policies is possible usingvrf-import
and vrf-export
statements.
-
Verify BGP is established using
show bgp summary
bgp.l2vpn.0
andmy-customer-1.l2vpn.0
tables are populated with correct entries. -
Use
show route table bgp.l2vpn.0 detail | match [...]
-
Verify routing instance table
show route table my-customer-1.l2vpn.0 detail | match [...]
-
Verify that L2VPN is up using
show l2vpn connections instance my-customer-1
; Local site, connection-site, Status, remote PE, Incoming Label, Outgoing Label, Encapsulation etc can be seen in this command output. -
Verify that the VPN lable is correct using
show route table mpls.0 label <label>
command;[L2VPN/7]
can be seen for the entry. -
Use the
show route table mpls.0 ccc ge-0/0/0.0 detail
command to verify customer facing itnerface ; We should see two labels pushed.
Accept specific VLAN tags
On the CE-facing interface , two encapulations
extended-vlan-ccc
all plans from 1 and above on all interfaces
and vlan-ccc
vlans 512-4094 (legacy)… older M-series reserved vlans 1-511 for regular bridging.
Mx series can accept any valid VLAN.
root@PE> show configuration routing-instances my-customer-2
instance-type l2vpn;
interface ge-0/0/0.200;
route-distinguisher 192.168.1.2:200;
vrf-target target:64501:200;
protocols {
l2vpn {
encapsulation-type ethernet-vlan;
site customer-2-site-1 {
site-identifier 1;
interface ge-0/0/0.200;
}
}
}
EtherType/TPID:
Tag Protocol Identifier
-
0x8100 :VLAN tagged fram
-
0x9100: QinQ (Double vlan tagged frame)
Some vendors use proprietary 0X9901.
ethernet-ccc
: any standard TPID/EtherType allowed
vlan-ccc
: only 0x8100 allowed
extended-vlan-ccc
: only 0x8100,0x9100, 0x9901 allowed
Common Errors
-
No connections found
-
EM -- encapsulation mismatch
-
MM -- MTU Mismatch
-
LD -- local site signaled down
-
RD -- remote site signaled down
-
OR -- Out of range
(Unexpected Site ID)