08-15-2013 02:51 AM - edited 03-07-2019 02:56 PM
Hello,
Due to a migration project I need to be able to migrate servers one by one from one of our offices to a new datacentre.
I've choosen L2TP in order to do this as it's supported on the equipment we have and doesn't require any special cooperation with our WAN provider. It's going well with one problem.
The problem we have is that we need to migrate multiple VLANs for which we do not have enough ports on the router to be able to do on a per-port basis, therefore we're using VLAN based sessions and trunking to the switch.When the VLANs are the same this works fine but there a couple of where the VLAN in the datacentre is different to that on the LAN and we were hoping of being able to do VLAN Rewrite as the traffic enters/leaves the tunnel.
I've used the document below as reference but it doesn't give a clear example of how do the VLAN rewrite:
http://www.cisco.com/en/US/docs/ios/ios_xe/wan/configuration/guide/wan_l2_tun_pro_v3_xe.pdf
On the switch side we are using 3750X's, at present these are just being used for Layer 2 not Layer 3. The routers are ASR 1001's with IP Services license.
My Lab topology is as follows:
PC<---->VLAN6<----->3750x<---->ASR1<----L2TP-->ASR2<----->3750x<---VLAN4<---->PC
The config is:
!ASR1 (Datacentre)
no spanning-tree vlan 4,6
pseudowire-class l2tp
encapsulation l2tpv3
ip local interface GigabitEthernet0/0/1
!
interface GigabitEthernet0/0/1
ip address 172.23.0.1 255.255.255.0
!
interface GigabitEthernet0/0/0.2
encapsulation dot1Q 2
xconnect 172.23.0.2 2 encapsulation l2tpv3 pw-class l2tp
!
interface GigabitEthernet0/0/0.3
encapsulation dot1Q 3
xconnect 172.23.0.2 3 encapsulation l2tpv3 pw-class l2tp
!
interface GigabitEthernet0/0/0.4
encapsulation dot1Q 4
xconnect 172.23.0.2 4 encapsulation l2tpv3 pw-class l2tp
!ASR2 (Office)
no spanning-tree vlan 4,6
pseudowire-class l2tp
encapsulation l2tpv3
ip local interface GigabitEthernet0/0/1
!
interface GigabitEthernet0/0/1
ip address 172.23.0.2 255.255.255.0
!
interface GigabitEthernet0/0/0.2
encapsulation dot1Q 2
xconnect 172.23.0.1 2 encapsulation l2tpv3 pw-class l2tp
!
interface GigabitEthernet0/0/0.3
encapsulation dot1Q 3
xconnect 172.23.0.1 3 encapsulation l2tpv3 pw-class l2tp
!
interface GigabitEthernet0/0/0.6
! Trying to do VLAN rewrite
encapsulation dot1Q 6
xconnect 172.23.0.1 4 encapsulation l2tpv3 pw-class l2tp
The tunnels all appear to be up fine:
#show l2tun
L2TP Tunnel and Session Information Total tunnels 1 sessions 3
LocTunID RemTunID Remote Name State Remote Address Sessn L2TP Class/
Count VPDN Group
2665053201 3580733410 R01 est 172.23.0.1 3 l2tp_default_cl
LocID RemID TunID Username, Intf/ State Last Chg Uniq ID
Vcid, Circuit
3228838299 3330464863 2665053201 2, Gi0/0/0.2:2 est 00:13:19 0
3156076578 870942034 2665053201 3, Gi0/0/0.3:3 est 00:13:19 0
3618643402 1760691600 2665053201 4, Gi0/0/0.6:4 est 00:13:19 0
Would really appreciate if anyone could explain where I'm going wrong.
Thanks
Lee
08-15-2013 04:07 AM
Hi Lee,
What VLAN ID are you changing to? You have VLAN 2,3,4 configured on both end?
HTH,
Lei Tian
08-15-2013 04:27 AM
On the Office side in the example I'm trying to rewrite VLAN 6 to VLAN 4 at the Datacentre. Thanks
08-15-2013 05:38 AM
The local interface is supposed to be a loopback. Probably not the problem but better to follow the instructions. I'm guessing that the interfaces shown are not on a supported port adapter. Other than that it looks ok, what does a show l2tun tunnel all show?
Sent from Cisco Technical Support Android App
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide