Implementing Layer 2 Services
Martini (LDP-Signaled Circuits)
Martini uses LDP to signal Layer 2 circuits across an MPLS network. Here's a step-by-step guide to configure Martini pseudowires:
Configuration Steps
Enable MPLS and LDP on Interfaces:
! On Cisco CPE and Juniper PE
interface GigabitEthernet0/1
mpls ip
ip address 192.0.2.1 255.255.255.0
Implementing Layer 2 Services
Martini (LDP-Signaled Circuits)
Martini uses LDP to signal Layer 2 circuits across an MPLS network. Here's a step-by-step guide to configure Martini pseudowires:
Configuration Steps
Enable MPLS and LDP on Interfaces:
! On Cisco CPE and Juniper PE
interface GigabitEthernet0/1
mpls ip
ip address 192.0.2.1 255.255.255.0
Configure LDP on the Cisco CPE:
! Enable LDP on the router
mpls label protocol ldp
mpls ldp router-id Loopback0 force
Configure xconnect on Cisco CPE:
interface GigabitEthernet0/1.100
encapsulation dot1Q 100
xconnect 192.0.2.2 101 encapsulation mpls
```Configure LDP on Juniper PE:
set protocols ldp interface ge-0/0/0.0
set protocols ldp interface lo0.0
Configure pseudowire on Juniper PE:
```set interfaces ge-0/0/0 unit 100 encapsulation vlan-cccset protocols l2circuit neighbor 192.0.2.1 interface ge-0/0/0.100 virtual-circuit-id 101
Kompella (BGP-Signaled Circuits)
While BGP-signaled Layer 2 VPNs are more commonly associated with VPLS (Virtual Private LAN Services), they can also be used for point-to-point services. However, Cisco support for BGP-signaled L2 VPNs (Kompella) may be limited.
Configuration Steps
Configure BGP for L2VPN on Cisco CPE:
router bgp 65000
address-family l2vpn evpn
neighbor 192.0.2.2 activate
Configure BGP for L2VPN on Juniper PE:
set protocols bgp group EVPN type internal
set protocols bgp group EVPN local-address 192.0.2.2
set protocols bgp group EVPN family l2vpn signaling
set protocols bgp group EVPN neighbor 192.0.2.1
Configure interface for L2VPN on Juniper PE:
set interfaces ge-0/0/0 unit 100 family vpls
Configure the L2VPN instance on Juniper PE:
set routing-instances L2VPN instance-type l2vpn
set routing-instances L2VPN interface ge-0/0/0.100
set routing-instances L2VPN protocols vpls neighbor 192.0.2.1
Configure LDP on the Cisco CPE:
! Enable LDP on the router
mpls label protocol ldp
mpls ldp router-id Loopback0 force
Configure xconnect on Cisco CPE:
interface GigabitEthernet0/1.100
encapsulation dot1Q 100
xconnect 192.0.2.2 101 encapsulation mpls
```Configure LDP on Juniper PE:
set protocols ldp interface ge-0/0/0.0
set protocols ldp interface lo0.0
Configure pseudowire on Juniper PE:
```set interfaces ge-0/0/0 unit 100 encapsulation vlan-cccset protocols l2circuit neighbor 192.0.2.1 interface ge-0/0/0.100 virtual-circuit-id 101
Kompella (BGP-Signaled Circuits)
While BGP-signaled Layer 2 VPNs are more commonly associated with VPLS (Virtual Private LAN Services), they can also be used for point-to-point services. However, Cisco support for BGP-signaled L2 VPNs (Kompella) may be limited.
Configuration Steps
Configure BGP for L2VPN on Cisco CPE:
router bgp 65000
address-family l2vpn evpn
neighbor 192.0.2.2 activate
Configure BGP for L2VPN on Juniper PE:
set protocols bgp group EVPN type internal
set protocols bgp group EVPN local-address 192.0.2.2
set protocols bgp group EVPN family l2vpn signaling
set protocols bgp group EVPN neighbor 192.0.2.1
Configure interface for L2VPN on Juniper PE:
set interfaces ge-0/0/0 unit 100 family vpls
Configure the L2VPN instance on Juniper PE:
set routing-instances L2VPN instance-type l2vpn
set routing-instances L2VPN interface ge-0/0/0.100
set routing-instances L2VPN protocols vpls neighbor 192.0.2.1