if you look at the network configuration on your enterprise network you'll notice there are many different vlans that have been configured sometimes these vlans are arranged organizationally so you might have a vlan for one particular part of a business and another vlan that would handle another part of the business maybe there's a network engineering vlan or a separate vlan just for security communication these vlans are used as a way to segment the network so if you're on one vlan you don't have access to devices that might be on a different vlan however crafty attackers have found different ways to circumvent these existing security controls and find ways to move from one vlan to another without going through a router the two methods that we'll discuss that provide an attacker with a way to have an unauthorized communication between vlans is both switch spoofing and double tagging on many switches a network administrator will specifically configure an interface on that switch to act like an access port that means you'll be plugging in a laptop a desktop or some other end user station you can also configure ports on a switch to be a trunked interface so that you can send many different vlans over one single connection between switches although the best practice is for a network administrator to manually make these configurations on a switch there are configuration options in the switch to set up an automatic configuration that means when you plug in your device the switch will automatically determine if that is an access device or a trunk connection another interesting part about this automatic configuration is that it doesn't need any type of authentication this means that an attacker could find a way to make the switch interpret that connection as one thing or the other an attacker could then plug in with a laptop but tell the laptop to send trunk negotiation down that link to the switch the switch in the other end will automatically configure it as a trunk connection because it assumes the device on the other end is a switch and not the attacker's laptop now that the attacker's laptop is acting as a switch it can send any information down that link across any particular vlan and have that information switched off to the appropriate vlan on the other side of that switch although this does require the attacker to have physical access to the switch it's a relatively easy way for the attacker to circumvent the vlan segmentation that keeps one vlan from communicating with another this is why best practice is for switch administrators to disable that automatic configuration process and make them configure each interface as an access interface or a trunk interface normally when information is sent across a trunk a tag is added to that frame that has the vlan information that could then be interpreted on the other side if you add an additional tag to that same frame you may be able to take advantage of double tagging where the first switch will interpret the first tag send the traffic on to another switch where the second tag will then be evaluated this takes advantage of a feature in the switch called the native vlan that doesn't require a tag to exist so once the first native vlan tag is removed the attacker's fake tag can be used to send that traffic to any vlan although the attacker is double tagging this traffic to get it onto that external vlan there's no way for the other vlan to send that traffic back since the users on that network are not going to be doing any type of double tagging this means that it's a one-way trip this makes it very good for denial of service traffic where you're sending all of the information in one direction or you're using an application that doesn't require any type of response the way that you would prevent double tagging is to prevent anyone from using the native vlan you would change the native vlan id and force tagging of anyone who's putting traffic onto the native vlan let's visually see how this double tagging process would work we'll start with an attacker who is on vlan 10 that wants to send information to a victim on vlan 20. in between both of those is a trunk for both vlan 10 and 20 and you'll notice the native vlan is vlan 10. the attacker will begin by creating a specially crafted frame this frame has an ethernet header and data inside of it just like any other ethernet frame but instead of having a single tag inside of it there are two separate 802.1q tags one for vlan 10 and one for vlan 20. that frame is sent to the first switch where the native vlan is 10 so the vlan 10 tag is no longer needed that means it will be removed from this ethernet frame and the only thing left would be the vlan 20 tag that means that frame will be sent to the other side of that communication the vlan 20 tag is then identified within the frame that switch removes it from the frame and places that data onto vlan 20 where it finds its way to the victim although the victim doesn't have a way to communicate back to the original attacker device because that attacker is on a different vlan the attacker could send any type of traffic and as much traffic as they would like to this victim that is clearly on a completely different vlan you