11-21-2018 04:31 AM - edited 03-08-2019 04:39 PM
Hi
Does anyone know how I strip VLAN tags from a trunk connection using a Cisco Switch?
From our ISP we get our different sites delivered on individual VLANs on a trunk. But I want all sites on the same L2 network/subnet.
Any idea on how to achieve this the easiest way?
11-21-2018 04:55 AM
Hi there,
Trunk these ISP tagged VLANs through your network until it gets to a device which supports VLAN translation/ mapping.
Keep in mind that the VLAN translation is not just applied to a single switchport but to groups of ports on a linecard (I'm thinking of a 6509 from personal experience), so you may need to spread your incoming connections across the chassis to ensure that there is no translation overlap.
cheers,
Seb.
11-21-2018 06:30 AM
It is unusual to receive traffic from remote sites on separate vlans and want to put it all into the same layer 2 vlan at your main site. Remember that it will result in any broadcast traffic from any site being sent to every machine at every site. But if that is what you want to do this should work. In my suggestion you will need two switches. Let us assume that you are receiving traffic on the trunk on vlans 10, 20, 30, and 40. And let us assume that on your site you will use vlan 50. On switch 1 configure a trunk to carry vlans 10, 20, 30, and 40. Then configure an access port in each of those vlans. Connect the access ports for these vlans on switch 1 to access ports on switch 2 which are all assigned to vlan 50. No trunk on switch 2. Now vlan tags will be gone and all traffic will be in the same vlan and same subnet.
HTH
Rick
11-21-2018 10:28 AM
11-21-2018 11:06 AM
Thanks for the additional information. Especially if you have between 50 and 2000 sites I would question putting them all into a single layer 2 network. But if this is what you want to do then it may be best to look into what the ASR can do for you.
HTH
Rick
11-21-2018 10:30 AM
11-21-2018 11:55 PM - edited 11-21-2018 11:59 PM
Hi there,
Since you have ASR920's available they do support VLAN translation. The command you are looking for is:
!
int <int>
rewrite ingress tag translate 1-to-1 dot1q vlan-id symmetric
!
I can't find any information regarding maximum translations or port-group limitations..
cheers,
Seb.
11-21-2018 07:34 AM
This can be done on an ASR900 series router. I tend to opt for the ASR920-12sz-im. You can add/remove tags in the service instance. It tends to be seen as a SP function, so is not often available in traditional enterprise kit.
Hope this helps.
Dave
11-21-2018 10:31 AM
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