VLANs and Trunking - N10-008 CompTIA Network+ : 2.3

Professor Messer
12 Oct 202110:30

Summary

TLDRThis script discusses the use of VLANs for network segmentation to enhance security and organization. It explains how VLANs allow logical separation within a single switch, reducing the need for multiple physical switches and wasted interfaces. The concept of VLAN trunking, or IEEE 802.1Q, is introduced as a method to extend VLANs across switches efficiently. The script also touches on the practical application of VLANs in managing devices like computers and VoIP phones on a single network cable, ensuring quality of service for voice communications.

Takeaways

  • 🔒 **Network Segmentation**: Network administrators use VLANs to segment networks into different broadcast domains for enhanced security and organization.
  • 🛠️ **Physical vs. Logical Separation**: Separating networks can be done physically with separate switches or logically within a single switch using VLANs.
  • 🚫 **Isolation of Broadcast Domains**: VLANs prevent devices in one VLAN from communicating with devices in another, maintaining network isolation.
  • 🌐 **Efficient Use of Resources**: Using VLANs within a single switch reduces the number of unused interfaces compared to having separate switches for each VLAN.
  • 🔌 **Trunking VLANs**: VLAN trunking, or IEEE 802.1Q, allows multiple VLANs to be sent across a single link, simplifying the inter-switch connections.
  • 🔗 **Scalability**: VLAN trunking is scalable and more efficient than using separate Ethernet cables for each VLAN, which would be impractical with a large number of VLANs.
  • 🏷️ **VLAN Header**: An 802.1Q trunk adds a VLAN header to Ethernet frames to indicate the VLAN ID, allowing multiple VLANs to be distinguished on a single link.
  • 📈 **VLAN Ranges**: VLANs are numbered in a range from 1 to 4094, with 0 and 4095 reserved, and are often divided into normal and extended ranges.
  • 📞 **Voice and Data Integration**: VLANs can be used to segregate voice (VoIP) and data traffic on a single physical link, ensuring quality of service for voice communications.
  • 🔄 **Inter-Switch Communication**: Devices on the same VLAN across different switches can communicate with each other through trunked links, maintaining VLAN integrity.

Q & A

  • Why do network administrators segment networks into different broadcast domains?

    -Network administrators segment networks into different broadcast domains to enhance security features and to keep the network organized.

  • What is one way to segment a network into different broadcast domains?

    -One way to segment a network is by using completely separate switches, each with its own broadcast domain.

  • What challenge arises from using separate switches for different broadcast domains?

    -Using separate switches results in a lot of wasted interfaces, as many interfaces are powered and managed but are not connected to any devices.

  • How do VLANs help in reducing the challenge of wasted interfaces?

    -VLANs allow for logical separation of networks within a single switch, thus reducing the need for multiple physical switches and minimizing wasted interfaces.

  • What is the IEEE 802.1Q standard and how does it relate to VLANs?

    -The IEEE 802.1Q standard, also known as dot1Q, is an Ethernet trunking standard that allows multiple VLANs to be sent across a single connection, streamlining communication between switches.

  • How does VLAN trunking simplify the connection between switches with multiple VLANs?

    -VLAN trunking simplifies connections by allowing all VLANs to be communicated across a single link, instead of requiring separate Ethernet cables for each VLAN.

  • What is the maximum number of VLANs that can be supported within a trunk connection?

    -A trunk connection can support up to 4,094 VLANs, as the VLAN ID is 12 bits long.

  • What is the purpose of the VLAN header added to an Ethernet frame when it hits a trunk?

    -The VLAN header, added when an Ethernet frame hits a trunk, contains information about which VLAN the data is associated with, allowing for proper routing and separation of traffic.

  • Why might a network administrator choose to separate voice and data traffic onto different VLANs?

    -Separating voice and data traffic onto different VLANs ensures quality of service for voice communications by preventing data traffic from overwhelming the time-sensitive voice over IP connections.

  • How does the 802.1Q standard handle the configuration for a single network link used by both a computer and a phone?

    -The 802.1Q standard allows for a single network link to be used by both a computer and a phone by designating each switch interface with both a data VLAN and a voice VLAN, enabling prioritization of voice traffic.

Outlines

00:00

🌐 Network Segmentation and VLANs

This paragraph discusses the practice of segmenting networks into different broadcast domains for enhanced security and organization. It explains the concept of using separate switches for each broadcast domain and the inefficiency of this method due to wasted interfaces. The paragraph introduces Virtual Local Area Networks (VLANs) as a solution to logically separate networks within a single switch, reducing the need for multiple physical switches. It also touches on the scalability issue of connecting VLANs across multiple switches and the introduction of VLAN trunking as a method to transmit multiple VLANs over a single link, adhering to the IEEE 802.1Q standard.

05:02

🔌 VLAN Trunking and Practical Applications

The second paragraph delves into the practical implementation of VLAN trunking, explaining how it allows communication between devices on the same VLAN across different switches. It contrasts the older Inter-Switch Link (ISL) method with the more widely adopted IEEE 802.1Q standard. The paragraph also explores the practical use of VLANs in office environments, where a single Ethernet cable can serve both data and voice devices by leveraging VLAN trunking. It discusses the configuration of a trunk link between two switches and the advantages of using VLANs for quality of service, particularly for voice communications over IP phones, ensuring that voice traffic is prioritized over data traffic.

10:04

📞 Prioritizing Voice Communications with VLANs

The final paragraph focuses on the application of VLANs to prioritize voice communications in a network environment. It describes how a single network link can be used for both data and voice traffic by assigning them to different VLANs. The paragraph explains the process of tagging voice traffic with an 802.1Q header to ensure it is prioritized on the network, thus maintaining the quality of voice communications. It also touches on the configuration of switches to recognize both data and voice VLANs on a single interface, allowing for the segregation and prioritization of voice traffic to prevent disruptions from data communication.

Mindmap

Keywords

💡Network Segmentation

Network segmentation refers to the process of dividing a large network into smaller, more manageable parts called subnetworks or segments. This is done to enhance security, improve network performance, and simplify management. In the video, network administrators segment networks into different broadcast domains to provide additional security features and to keep the network organized. For example, the video describes having separate switches for different broadcast domains, with devices connected to each, ensuring that devices on one network cannot communicate with those on another.

💡Broadcast Domain

A broadcast domain is a logical segment of a network where all devices can hear each other's broadcasts. This term is crucial in the video as it explains the concept of limiting the scope of broadcast traffic to a specific segment of the network. The video illustrates this by showing how devices connected to a red network cannot communicate with those on a blue network when they are on separate switches, thus forming distinct broadcast domains.

💡VLAN (Virtual Local Area Network)

A VLAN is a logical grouping of networked devices that are configured to work as a separate network segment, regardless of their physical location. VLANs are central to the video's theme as they allow for network segmentation within a single switch. The video explains how VLANs maintain separation of broadcast domains logically, rather than physically across multiple switches, which is more efficient and reduces the number of unused interfaces on switches.

💡VLAN Trunking

VLAN trunking is a method of carrying multiple VLANs across a single link between network devices. It's a key concept in the video, which discusses how it allows for the connection of devices on the same VLAN across different physical switches. The video uses the term to describe the process of sending multiple VLANs across a single connection, which is more efficient than using separate Ethernet links for each VLAN.

💡IEEE 802.1Q

IEEE 802.1Q is a standard for VLAN tagging, which is part of the IEEE 802.1 family of standards. In the video, it's mentioned as the protocol used for VLAN trunking, allowing multiple VLANs to be transmitted over a single link. The video explains that when a frame hits a trunk, an additional VLAN header is added to the Ethernet frame, which contains information about the VLAN associated with the data.

💡VLAN Header

The VLAN header is an additional field added to an Ethernet frame when it is sent across a trunk link. It contains information about the VLAN to which the data belongs. The video uses this term to explain how VLAN information is embedded within the frame, allowing for the logical separation and routing of traffic to the appropriate VLAN on the other side of the trunk.

💡Inter-Switch Link (ISL)

Inter-Switch Link (ISL) is a Cisco proprietary protocol used to trunk information between switches. The video mentions ISL in the historical context, noting that before the 802.1Q standard, ISL was used for VLAN trunking. However, the video emphasizes that the IEEE 802.1Q standard is now the widely accepted method because it is recognized by switches from multiple manufacturers.

💡Quality of Service (QoS)

Quality of Service (QoS) refers to the ability to prioritize certain types of network traffic to ensure that time-sensitive applications, such as voice over IP, receive the necessary bandwidth and low latency. In the video, QoS is discussed in the context of ensuring that voice communications are not disrupted by data traffic on the same network link. The video explains how VLANs can be prioritized to maintain the quality of voice communications.

💡Voice over IP (VoIP)

Voice over IP (VoIP) is a technology that allows voice communication over IP networks. The video discusses how VoIP phones use data connections, similar to computers, and how they can be integrated into the same network infrastructure. The video also addresses the challenge of ensuring that VoIP traffic is not negatively impacted by the potentially higher data traffic from computers, which is resolved by using VLANs to separate voice and data traffic.

💡Private Branch Exchange (PBX)

A Private Branch Exchange (PBX) is a telephone system within an enterprise that switches calls between enterprise users on local lines while allowing all users to share a certain number of external phone lines. The video mentions PBX in the context of traditional telephone systems, contrasting it with the modern approach of using VoIP phones that connect to the network like computers, thus simplifying the need for separate phone lines.

Highlights

Network administrators segment networks into different broadcast domains for security and organization.

Separate switches can be used to create distinct broadcast domains, but this leads to wasted interfaces.

VLANs provide logical segmentation within a single switch, reducing the need for multiple physical switches.

VLANs maintain separation of broadcast domains while allowing more efficient use of switch interfaces.

Trunking allows extending VLANs across a single connection, streamlining communication between switches.

IEEE 802.1Q standard, also known as dot1Q, enables VLAN trunking for efficient network communication.

VLAN header is added to Ethernet frames when sent across a trunk, identifying the VLAN.

VLAN ID is 12 bits long, supporting up to 4,094 VLANs within a trunk connection.

VLANs 0 and 4,095 are reserved, not used for separate VLAN configurations.

Inter-Switch Link (ISL) was a method for trunking before the 802.1Q standard but is less commonly used today.

Trunking simplifies network cabling by allowing multiple VLANs to be transmitted over a single link.

VLANs can be extended to manage devices like computers and VoIP phones on a single network cable.

Using 802.1Q trunking, a single network cable can support both data and voice VLANs for a computer and phone.

Quality of service can be maintained by assigning different priorities to data and voice VLANs.

VLANs help in organizing networks and optimizing the use of network resources.

Trunking and VLANs are key to modern network design, providing flexibility and efficiency.

Transcripts

play00:02

Many network administrators like to segment the network

play00:05

into different broadcast domains.

play00:07

This is sometimes done to allow additional security features

play00:10

or we may need to provide separation just

play00:13

to keep the network organized.

play00:15

One way you could do this is to have

play00:17

completely separate switches.

play00:18

We would have one switch with one broadcast domain,

play00:22

and you can see there are devices

play00:23

connected to this red network.

play00:25

And we have a completely separate switch

play00:27

on a blue broadcast domain, and we have devices

play00:30

connecting into that switch.

play00:32

Because these are physically separated

play00:34

switches there's no way for anyone on the red network

play00:37

to communicate to the blue network and vice versa.

play00:40

One challenge that we have with separating things out

play00:43

into these separate local area networks

play00:45

is that there are certainly a lot of wasted interfaces

play00:49

on the front of these switches.

play00:51

Since we have only a few devices,

play00:53

we have a number of interfaces that we've paid for,

play00:55

that we are powering, and that we're

play00:57

managing but nothing is ever going

play00:59

to connect to those interfaces.

play01:01

It would make a lot more sense if we

play01:03

could combine these switches together, but still

play01:06

maintain the separation between the two networks.

play01:09

Fortunately, there's a way to accomplish this using Virtual

play01:13

Local Area Networks, or VLANs.

play01:15

VLANs still provide segmentation within the switch.

play01:18

We have some interfaces that are configured for the red VLAN,

play01:22

and we have other interfaces that are

play01:24

configured for the blue VLAN.

play01:26

This still maintains separation of the broadcast domains.

play01:29

The red devices can't communicate

play01:31

to the blue devices, and vice versa,

play01:33

but the separation is now done logically inside

play01:36

of the switch rather than physically

play01:39

across multiple switches.

play01:41

If you were to look at a physical switch configuration,

play01:44

here's one where three separate VLANs are configured-- a VLAN

play01:48

1, a VLAN 2, and a VLAN 3.

play01:51

There are devices connected to each one of these VLANs,

play01:54

and the devices on a single VLAN can't

play01:57

communicate to any of the other VLANs on the switch.

play02:01

In most organizations, of course,

play02:03

there will be more than a single switch

play02:05

that is connecting the users together.

play02:07

In fact, there may be tens or hundreds of switches.

play02:10

And we may need to connect devices

play02:12

that are on one VLAN on one switch

play02:15

to the same VLAN on a separate physical switch.

play02:18

In this example we have two switches.

play02:21

This ethernet switch on the top has a VLAN 100 and 200.

play02:24

And the switch on the bottom also

play02:26

has a VLAN 100 and VLAN 200.

play02:29

It would be great if we could connect VLAN 100 on one switch

play02:33

to VLAN 100 on the other, and VLAN 200 on one

play02:37

switch to VLAN 200 on the other.

play02:40

One way to accomplish this would be

play02:41

to simply extend an ethernet cable from VLAN 100

play02:45

on one switch to a VLAN 100 interface on the other switch.

play02:49

We could then connect another cable

play02:51

from a VLAN 200 interface on one switch

play02:54

to a VLAN 200 interface on the other switch.

play02:57

Of course, this obviously won't scale very well.

play03:00

What if there were 20 VLANs on each of these switches?

play03:04

We would need 20 separate ethernet cables going

play03:07

between these two switches.

play03:08

Although that functionally could be used,

play03:11

it certainly adds a lot of additional overhead

play03:14

and uses a lot of interfaces on each switch.

play03:17

Instead of extending separate ethernet links

play03:20

for each individual VLAN, we can extend a single connection

play03:25

and communicate all VLANs across that single connection.

play03:28

We refer to this as VLAN trunking.

play03:31

You might also see this referred to as the IEEE 802.1Q standard

play03:36

for ethernet trunking or dot1Q.

play03:39

When we have a dot1Q trunk, we can send multiple VLANs

play03:42

across that trunk and then break them out

play03:45

into the appropriate VLAN on the other side.

play03:48

So someone on VLAN 100 on the top switch

play03:50

can communicate to someone with VLAN 100 on the bottom switch

play03:54

by sending information into the dot1Q trunk.

play03:57

That would then be put onto the trunk to the other switch,

play04:00

broken out of the trunk, and then placed

play04:03

onto the original VLAN 100 network.

play04:06

We're still logically segmenting these VLANs,

play04:08

we're just sending them over a single link when we're

play04:11

communicating between switches.

play04:13

The process of adding and removing this frame

play04:16

to an 802.1Q trunk is relatively straightforward.

play04:19

We have our normal ethernet frame

play04:22

that we're sending across.

play04:23

When that hits the trunk, we're going

play04:25

to add an additional field into this ethernet frame called

play04:29

a VLAN header.

play04:30

This VLAN header will contain information about which VLAN

play04:34

is associated with this data.

play04:36

So if we add a VLAN 100 frame into the trunk,

play04:40

VLAN 100 will be embedded within this VLAN header.

play04:43

And we can have many VLANs extending

play04:46

across this dot1Q trunk.

play04:48

This VLAN ID is 12 bits long and allows

play04:50

us to have 4,094 VLANs inside of that trunk connection.

play04:55

Some switches will separate these VLANs

play04:58

into what's called a normal range and an extended range,

play05:02

where the normal range are VLANs between 1 and 1,005

play05:06

and the extended range is between 1,006 and 4,094.

play05:11

You'll notice that the first and last VLANs are reserved.

play05:14

So VLAN 0 and VLAN 4,095 are reserved values

play05:19

that you would not normally configure as a separate VLAN.

play05:22

Before this 802.1Q standard existed,

play05:25

there was another method to trunk information between

play05:28

switches called Inter-Switch Link, or ISL.

play05:32

You may see a reference to ISL when looking through a switch

play05:35

configuration, but practically everyone uses the IEEE standard

play05:40

of 802.1Q because that standard is understood and recognized

play05:44

by switches from multiple manufacturers.

play05:48

Now that we know the process for adding that VLAN information,

play05:52

let's see how it would work in a practical form.

play05:54

Let's take a device on VLAN 200 and have

play05:57

that device communicate with another device on VLAN 200

play06:01

that's on a separate ethernet switch.

play06:04

This device on VLAN 200 will start

play06:06

by sending this information over the network.

play06:09

Since this has to go to a device on a separate switch,

play06:11

it will be directed towards the 802.1Q trunked interface.

play06:15

That interface will add a VLAN header inside

play06:19

of that ethernet frame that designates

play06:21

that it began on VLAN 200.

play06:24

And it sends that information to the other 802.1Q interface

play06:28

on the other switch.

play06:29

That switch examines the VLAN header,

play06:32

sees that it originated on VLAN 200, removes the VLAN header,

play06:37

and then places that frame onto the VLAN 200 network.

play06:42

On two physical switches, the configuration

play06:45

is relatively straightforward.

play06:46

This is the original switch we started

play06:48

with that has a VLAN 1, VLAN 2, and VLAN 3.

play06:52

And you can see there are devices connected

play06:53

to each of those VLANs.

play06:55

We've added a separate switch B that

play06:57

also has VLAN 1, VLAN 2, and VLAN 3,

play07:01

but we've added a trunk link between both of those.

play07:04

And on that trunk, we're sending information

play07:06

that includes data from VLAN 1, VLAN 2, and VLAN 3.

play07:12

We've been able to extend this idea of trunking

play07:14

to better manage the devices that are currently

play07:16

on our desks.

play07:17

Specifically, the voice over IP phone and the computer

play07:21

that we might have on our desk.

play07:23

Traditionally, we would run one ethernet cable

play07:25

from the computer that's on our desk

play07:27

to a switch that exists in a closet nearby.

play07:30

We would then have a completely separate cable

play07:32

run for the analog telephone that's

play07:34

on our desk that usually connects to a PBX,

play07:37

or Private Branch Exchange switch that's inside

play07:41

of our organization.

play07:42

This means we have two separate cables going

play07:45

to every single desk.

play07:46

And each one of those cables is using

play07:49

a different type of technology.

play07:51

Of course, these days we're using voice over IP phones

play07:55

which use data connections-- the same data connections

play07:58

that we would use for our computer.

play08:00

So we would have all devices on our desk connecting ultimately

play08:04

to the ethernet switch that's in the closet.

play08:07

To simplify this, we now only need one single network cable

play08:11

for both the computer on our desk and the phone.

play08:14

Physically, this is the way it would connect.

play08:17

We would have the computer on our desk.

play08:19

We would plug a computer into our phone.

play08:21

There would be a separate ethernet connection

play08:23

that would run from our phone to the switch that's located

play08:26

inside of a closet nearby.

play08:29

This means we would only need one cable or one

play08:31

run between our desk and the switch that's in the closet.

play08:36

If you've ever used a voice over IP phone that's on a computer

play08:40

and tried to use the both at the same time,

play08:43

you may notice that this is not an optimal configuration.

play08:46

Our computers can send a lot of data

play08:49

down these network connections, and it's very easy

play08:51

to overwhelm the time-sensitive communication used

play08:55

for voice over IP.

play08:56

One way to resolve this is you would have the computer operate

play09:00

on one VLAN, and we would have our phone communicating

play09:03

on a completely separate VLAN.

play09:05

Since we have a single network link from our desk

play09:09

to the switch, we would use 802.1Q trunking to accomplish

play09:13

this.

play09:14

This is a specialized configuration

play09:16

that's available in many switches that recognizes

play09:19

that people will be using a phone and a computer

play09:22

at the same time from their desk,

play09:24

and it designates each switch interface

play09:26

as having both a data VLAN and a voice VLAN.

play09:30

And since you can configure them separately,

play09:33

you can provide additional priority

play09:35

for your voice configuration so that none

play09:38

of your data communication will ever disrupt your phone calls.

play09:41

Functionally, this is the way it would work.

play09:44

Our computer would be on one VLAN--

play09:46

let's say, VLAN 100--

play09:48

and our phone would be on a separate phone VLAN,

play09:51

and we'll call that VLAN 200.

play09:53

When we send information from our computer,

play09:55

it's sent across the ethernet link as a normal access

play09:58

ethernet frame without any type of VLAN trunking.

play10:01

But if we're ever communicating from our phone,

play10:04

we'll tag all of the communication between our phone

play10:07

and the switch with an 802.1Q header that designates that it

play10:11

came from VLAN 200.

play10:12

That allows us to set priorities in the switch

play10:15

and assure that the quality of service

play10:17

is maintained for all of our voice communication.

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
Network SegmentationVLAN ConfigurationSecurity FeaturesSwitch ManagementBroadcast DomainsEthernet TrunkingIEEE 802.1QVLAN TrunkingNetwork OptimizationQuality of Service
¿Necesitas un resumen en inglés?