Difference between revisions of "Cisco L2VPN"

From HackerNet
Jump to: navigation, search
m
Line 4: Line 4:
  
 
=Konfiguration=
 
=Konfiguration=
 +
LDP based VPLS (RFC 4762)
 
  l2 vfi VPLS manual
 
  l2 vfi VPLS manual
 
   vpn id 10
 
   vpn id 10
Line 10: Line 11:
 
   neighbor 10.0.0.3 encapsulation mpls
 
   neighbor 10.0.0.3 encapsulation mpls
 
   neighbor 10.0.0.4 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
 
Attaching l2 vfi to VLAN
Line 22: Line 27:
 
   encapsulation default
 
   encapsulation default
 
   bridge-domain 10
 
   bridge-domain 10
 +
 +
'''BGP based VPLS''' (RFC 4761)
 +
router bgp 100
 +
  address-family l2vpn vpls
  
 
Verify
 
Verify
Line 47: Line 56:
  
 
=L2TPv3=
 
=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.
+
Layer 2 Tunneling Protocol (RFC 3931, RFC 4719) kräver [[Cisco_CEF|CEF]] och IP-konnektivitet end-to-end. Det är endast point-to-point. IP protocol: 115.
 
  pseudowire-class L2TP-PWCLASS
 
  pseudowire-class L2TP-PWCLASS
 
   encapsulation l2tpv3
 
   encapsulation l2tpv3
 
   ip local interface Loopback0
 
   ip local interface Loopback0
 +
 
  interface gi2
 
  interface gi2
 
   xconnect 2.2.2.2 102 pw-class L2TP-PWCLASS
 
   xconnect 2.2.2.2 102 pw-class L2TP-PWCLASS
 
Verify
 
Verify
 +
show l2tp session all
 
  show l2tun tunnel all
 
  show l2tun tunnel all
  
 
[[Category:Cisco]]
 
[[Category:Cisco]]

Revision as of 18:31, 18 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

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

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 l2tp session all
show l2tun tunnel all