Cisco L2VPN

From HackerNet
Revision as of 13:31, 3 July 2016 by Helikopter (talk | contribs)
Jump to: navigation, search

Virtual Private LAN Service (VPLS) är ett sätt att tillhandahålla Ethernet-baserad multipoint-to-multipoint-kommunikation över IP eller MPLS. Multipla siter kopplas ihop med hjälp av pseudo-wires. De underliggande tekniker som kan användas som pseudo-wire är Ethernet over MPLS, L2TPv3 eller GRE. För control plane (Auto-Discovery och Signaling) kan LDP eller BGP användas. VPLS skalar inte superbra eftersom det kräver full-mesh, detta går att bygga ut med Hierarchical VPLS. Att sträcka L2 är aldrig häftigt men man får göra så gott man kan med STP eller ha routrar direkt på andra sidan.

Se även MPLS.

Konfiguration

LDP based VPLS (RFC 4762)

l2 vfi VPLS manual
 vpn id 10
 bridge-domain 10
 neighbor 10.0.0.2 encapsulation mpls
 neighbor 10.0.0.3 encapsulation mpls
 neighbor 10.0.0.4 encapsulation mpls

LDP based VPLS with BGP Auto discovery

l2 vfi VPLS autodiscovery
 vpn id 100

Attaching l2 vfi to VLAN

interface Vlan10
 no ip address
 xconnect vfi l2vpn

Attach router interface

interface gi2
 no ip address
 service instance 10 ethernet
  encapsulation default
  bridge-domain 10

BGP based VPLS (RFC 4761)

router bgp 100
 address-family l2vpn vpls

Verify

show xconnect all
show l2vpn vfi
show mpls l2transport vc
show vfi

AToM

Any Transport over MPLS (RFC 4448). Requires end-to-end MPLS LSP och att targeted LDP tillåts.

xconnect logging pseudowire status 
mpls ldp discovery targeted-hello accept

PE1

interface gi2
 xconnect 2.2.2.2 102 encapsulation mpls

PE2, VCID måste matcha på båda sidor

interface gi2
 xconnect 1.1.1.1 102 encapsulation mpls

Verify

show xconnect all
show xconnect peer 2.2.2.2 vcid 102
show mpls l2transport vc 102 detail
ping mpls pseudowire 10.0.0.10 102

Segment 1 är de interface som kunden sitter på, segment 2 är core.

Inter AS
Inter AS pseudowire går att bygga PE <-> ASBR <-> ASBR <-> PE.

AS1-BR

pseudowire-class PW
 encapsulation mpls

l2 vfi PW-SWITCH point-to-point
 neighbor <AS2-BR IP> 100 pw-class PW
 neighbor <PE IP> 16 pw-class PW

L2TPv3

Layer 2 Tunneling Protocol (RFC 3931, RFC 4719) kräver CEF och IP-konnektivitet end-to-end. Det är endast point-to-point. IP protocol: 115.

pseudowire-class L2TP-PWCLASS
 encapsulation l2tpv3
 ip local interface Loopback0

interface gi2
 xconnect 2.2.2.2 102 pw-class L2TP-PWCLASS

Verify

show l2tp session all
show l2tun tunnel all