|

[ACSA Training #20] Virtual LAN

⏱️ Estimated reading time: Approx. 6 minutes (6 min read)

LAN and VLAN

A Local Area Network (LAN) refers to a group of devices in the same broadcast domain.

[ACSA 교육#20] Virtual LAN - image 21

As shown in the figure, there are LAN-A and LAN-B. Two devices are connected to LAN-A.
Host A is connected to Port 1, and Host B is connected to Port 2.
The other switch LAN-B has a similar configuration.

When a switch receives a broadcast message on a random port, it forwards the broadcast to all ports except the port that sent it (flooding). Therefore, when Host A sends a broadcast, the LAN-A switch forwards the broadcast to all other ports. However, Host D and Host E do not receive this frame.

How can we connect these physically separate switches and LANs into a single internetwork? Adding a router capable of routing unicast and multicast traffic between the LANs would be a simple solution.

So, let's take a look at a virtual LAN (VLAN), which functions like a physical LAN.
SW1Let's say we have an Aruba switch called .

[ACSA 교육#20] Virtual LAN - image 22

Hosts A, B, D, and E are connected to Ports 1, 2, 11, and 12 of SW1, respectively.
By default, if you don't configure anything, all these devices will be in the same broadcast domain.
When Host A sends a broadcast message, all three remaining hosts receive the broadcast message.

Here “VLAN10”called Virtual LANLet's assume we created .

Inside the physical switch Created a small virtual switchIt is the same as .
This virtual switch exists inside the switch, but is not connected to a physical port.
Therefore, we need to physically define or map Port 1 and Port 2 of SW1 as members of VLAN 10.

Similarly, create VLAN20 and assign Port 11 and Port 12 as members of VLAN 20.

Okay, I've created two separate broadcast domains on one physical switch – VLAN-10 / VLAN-20

Now, when Host A sends a broadcast, the switch forwards the frame to all ports in the same VLAN except the ingress port. This means that only Host B receives the broadcast. We've effectively recreated the same scenario using a single physical switch.

[ACSA 교육#20] Virtual LAN - image 25

As with the physical configuration, there is no connection between VLANs.
That is, neither unicast, multicast, nor broadcast traffic is passed between VLANs.
Of course, you can create an internetwork by connecting routers, just like in the physical switch scenario.

Well, if it works the same way, why bother using VLANs?
Now let's look at how to configure VLANs along with their advantages.

Create VLAN

The AOS-CX switch identifies VLANs by VLAN ID. The VLAN ID is a number between 1 and 4094.
By default, VLAN 1 is created and cannot be removed. All ports are mapped to VLAN 1.
This is the general default for most switches, not just the AOS-CX switches.

VLAN Commands and Syntax

Create and enable VLANs using the VLAN command.

  • The following is an example of creating VLAN 10.
SW1(config)# vlan 10
SW1(config-vlan-10)#
  • You can create multiple VLANs at once with a single command.
SW1(config)# vlan 2-5, 10
  • If you are no longer using VLANs, no command나 shutdown commandYou can remove it through .
SW1(config)# no vlan 10
SW1(config)# vlan 10
SW1(config-vlan-10)# shutdown
  • Naming VLANs using the name command is a good practice for administrative purposes.
SW1(config)# vlan 10
SW1(config-vlan-10)# name Sales
[ACSA 교육#20] Virtual LAN - image 27

It's important to note that creating VLAN 10 using the VLAN command essentially creates a virtual switch within the physical switch. Even though you've created the VLAN, you haven't yet specified its members.
This means that no devices are connected to this virtual switch.

Access Port

Now, let's create a VLAN and specify its members.

[ACSA 교육#20] Virtual LAN - image 29
Define VLAN

First, let's create VLAN 10 named Sales and VLAN 20 named Service.

SW1(config)# vlan 10
SW1(config)-vlan-10)# name Sales
SW1(config)-vlan-10)# exit
SW1(config)# vlan 20
SW1(config)-vlan-20)# name Service
SW1(config)-vlan-20)# exit
Mapping ports to VLANs

You can specify interface scopes at once in the global configuration context.
We will map ports 1/1/1 through 1/1/2 to VLAN 10, and ports 1/1/11 through 1/1/12 to VLAN 20.

SW1(config)# interface 1/1/1-1/1/2
SW1(config-if-<1/1/1/-1/1/2)# vlan access 10
SW1(config-if-<1/1/1/-1/1/2)# exit
SW1(config)# interface 1/1/11-1/1/12
SW1(config-if-<1/1/11/-1/1/12)# vlan access 20
SW1(config-if-<1/1/11/-1/1/12)# exit

Here Only one VLAN ID can be assigned to an interface.It is important to remember that.
That is, interface 1/1/1 cannot be a member of both VLAN 10 and VLAN 20. This would be like attending a sales meeting and a technical meeting at the same time.

Check VLAN

You can check the created VLAN and the mapped port using the show command.

SW1# show vlan
---------------------------------------------------------------- VLAN Name Status Reason Type Interfaces ---------------------------------------------------------------- 1 DEFAULT_VLAN_1 up ok default
10 Sales up ok static 1/1/1-1/1/2 20 Service up ok static 1/1/11-1/1/12

In the next post, we will learn about 802.1q trunk ports.

Similar Posts

  • [ACMA Training #7] AOS 8 License (2)

    ⏱️ Estimated reading time: Approx. 3 minutes (3 min read) In the last post, we looked at the types of licenses in AOS 8. This time, we will examine how to manage and activate these licenses. Centralized License Management AOS 8.x supports a centrally managed license architecture, where Managed Device (MD) groups share a license pool. Primary and Backup…

  • [ACSA Education #13] Hierarchical Model

    ⏱️ Estimated reading time: Approx. 4 minutes (4 min read) When designing networks, hierarchical design is frequently discussed. In English, it is referred to as a Hierarchical Model. Let's take a look at why this is necessary. A hierarchical model provides the network in a modular form. Ultimately, this simplifies the design and even provides for future infrastructure expansion… .

  • [ACMA Training #6] AOS 8 License (1)

    ⏱️ Estimated reading time: Approx. 5 minutes (5 min read) In this post, we will look at the licenses for AOS 8. Although AOS 8.11 has been released as of now (November 2022), the ACMA certification (HPE6-A70) is based on AOS 8.6, so I will explain accordingly. Therefore, please note in advance that there may be slight differences. License Classification Each license is…

  • [ACSA Education #1] Network Basics

    ⏱️ Estimated reading time: Approx. 2 minutes (2 min read) Today, shall we start with a brief look at networks? Before that, I think we need to understand what communication is. In English, communication is called "Communication." In other words, it means communicating with one another. People conveying their intentions and exchanging information with one another—that is what communication means. The same applies to machines….

  • No interruptions in traffic even during firmware updates? The ISSU Complete Guide

    ⏱️ Estimated reading time: Approx. 5 minutes (5 min read) One of the first disconcerting moments you experience after joining a company as a network engineer is when a senior colleague says, “We’re going to update the switch firmware at 2 AM tonight, so get ready.” Whenever you update a smartphone or PC, you always have to reboot and become unusable for a few minutes. Network switches are the same…

  • [ACSA Training #27] How RSTP Works

    ⏱️ Estimated read time: Approx. 10 minutes (10 min read) RSTP (Rapid STP) operates a loop-free topology through the following algorithm: Select Root Switch Select Root Ports (RPs) of all other non-root switches or non-designated bridge switches Select Designated Ports (DPs) of links connected between each switch Other…