L2TPV3 es un estándar creado por la IETF que permite encapsular trafico de capa 2 y llevarlo sobre redes IP, la definición de Wikipedia es la siguiente:
"Layer 2 Tunneling Protocol Version 3 is an IETF standard related to L2TP that can be used as an alternative protocol to Multiprotocol Label Switching (MPLS) for encapsulation of multiprotocol Layer 2 communications traffic over IP networks. Like L2TP, L2TPv3 provides a pseudo-wire service, but scaled to fit carrier requirements."
Esta tecnologia se puede utilizar para compartir un segmento LAN entre dos sitios a traves de redes IP, Internet o una WAN privada.
Un ejemplo se ve en este diagrama:
Aquí se uniran dos data center con virtualizacion, L2TPv3 permitirá migrar maquinas virtuales de un sitio a otro manteniendo la configuración de red de la misma.
Data Center Sitio 1
#Parámetros básicos de bridge
set interfaces bridge br0 aging '300'
set interfaces bridge br0 hello-time '2' set interfaces bridge br0 max-age '20' set interfaces bridge br0 priority '0' set interfaces bridge br0 stp 'false'
# interface que conectara el Tunel
set interfaces ethernet eth0 address 'x.x.x.x/24'
# Agregar interface de la LAN al bridge
set interfaces ethernet eth1 bridge-group bridge 'br0'
# Configuración interface L2TPv3
set interfaces l2tpv3 l2tpeth0 bridge-group bridge 'br0' set interfaces l2tpv3 l2tpeth0 destination-port '10000' set interfaces l2tpv3 l2tpeth0 encapsulation 'udp' set interfaces l2tpv3 l2tpeth0 local-ip 'x.x.x.x' set interfaces l2tpv3 l2tpeth0 peer-session-id '1' set interfaces l2tpv3 l2tpeth0 peer-tunnel-id '1' set interfaces l2tpv3 l2tpeth0 remote-ip 'y.y.y.y' set interfaces l2tpv3 l2tpeth0 session-id '1' set interfaces l2tpv3 l2tpeth0 source-port '10000' set interfaces l2tpv3 l2tpeth0 tunnel-id '1'
Data Center Sitio 2
#Parámetros básicos de bridge
set interfaces bridge br0 aging '300' set interfaces bridge br0 hello-time '2' set interfaces bridge br0 max-age '20' set interfaces bridge br0 priority '0' set interfaces bridge br0 stp 'false'
# interface que conectara el Tunel
set interfaces ethernet eth0 address 'y.y.y.y/24'
# Agregar interface de la LAN al bridge
set interfaces ethernet eth1 bridge-group bridge 'br0'
# Configuración interface L2TPv3
set interfaces l2tpv3 l2tpeth0 bridge-group bridge 'br0' set interfaces l2tpv3 l2tpeth0 destination-port '10000' set interfaces l2tpv3 l2tpeth0 encapsulation 'udp' set interfaces l2tpv3 l2tpeth0 local-ip 'y.y.y.y' set interfaces l2tpv3 l2tpeth0 peer-session-id '1' set interfaces l2tpv3 l2tpeth0 peer-tunnel-id '1' set interfaces l2tpv3 l2tpeth0 remote-ip 'x.x.x.x' set interfaces l2tpv3 l2tpeth0 session-id '1' set interfaces l2tpv3 l2tpeth0 source-port '10000' set interfaces l2tpv3 l2tpeth0 tunnel-id '1'
No hay comentarios.:
Publicar un comentario