Difference between revisions of "Cisco L2VPN"

From HackerNet
Jump to: navigation, search
(Created page with "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 m...")
 
Line 4: Line 4:
  
 
=Konfiguration=
 
=Konfiguration=
  l2 vfi l2vpn manual
+
  l2 vfi VPLS manual
 
   vpn id 10
 
   vpn id 10
 +
  bridge-domain 10
 
   neighbor 10.0.0.2 encapsulation mpls
 
   neighbor 10.0.0.2 encapsulation mpls
 
   neighbor 10.0.0.3 encapsulation mpls
 
   neighbor 10.0.0.3 encapsulation mpls
Line 14: Line 15:
 
   no ip address
 
   no ip address
 
   xconnect vfi l2vpn
 
   xconnect vfi l2vpn
 +
 +
Attach router interface
 +
interface gi2
 +
  no ip address
 +
  service instance 10 ethernet
 +
  encapsulation default
 +
  bridge-domain 10
 +
 +
Verify
 +
show xconnect all
 +
show l2vpn vfi
 +
show mpls l2transport vc
  
 
=AToM=
 
=AToM=
Any Transport over MPLS (RFC 4448). Requires end-to-end MPLS LSP.
+
Any Transport over MPLS (RFC 4448). Requires end-to-end MPLS LSP och att targeted LDP tillåts.
 
  xconnect logging pseudowire status  
 
  xconnect logging pseudowire status  
 +
mpls ldp discovery targeted-hello accept
 
PE1
 
PE1
 
  interface gi2
 
  interface gi2
Line 28: Line 42:
 
  show xconnect all
 
  show xconnect all
 
  show xconnect peer 2.2.2.2 vcid 102
 
  show xconnect peer 2.2.2.2 vcid 102
 +
show mpls l2transport vc 102 detail
 +
 
Segment 1 är de interface som kunden sitter på, segment 2 är core.
 
Segment 1 är de interface som kunden sitter på, segment 2 är core.
  

Revision as of 18:26, 5 June 2016

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

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

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

Verify

show xconnect all
show l2vpn vfi
show mpls l2transport vc

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

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

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 l2tun tunnel all