|

[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

  • [ACSA Training #38] OSPFv2 Operation

    ⏱️ Estimated read time: Approx. 16 minutes (16 min read) In the last post, we looked at what OSPF is as a protocol and how it works. Today, we will explore what needs to be kept in mind to actually operate OSPFv2. Network Types From a protocol perspective, there are two network types. Point-to-Point Network: Only two peers are located on the link. The interface is Point-to-Point…

  • [ACP-DC Training #12] Virtual Routing and Forwarding (VRF)

    ⏱️ Estimated read time: Approx. 10 minutes (10 min read) Virtual Routing and Forwarding (VRF) is an L3 (Network Layer) isolation technology used to build a Virtual Private Network (VPN). VRF isolates routing tables from other VPNs within the system and allows the use of redundant IP addresses. In other words, VRF allows multiple routing tables within a single router…

  • [ACSA Education #30] Link Aggregation

    ⏱️ Estimated read time: Approx. 3 minutes (3 min read) Switches must provide connections to many devices located on various VLANs. All traffic generated here communicates with each other by sharing links between switches. Therefore, multiple links are often connected between switches to ensure resilience. However, even so, the bandwidth of the connection between the two switches…

  • [ACSA Training #8] TCP Header

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) In the last post, we looked at the IPv4 header at Layer 3 (Network Layer). Today, we will explore TCP and UDP, which can be found at the Transport Layer, Layer 4. 3-Way Handshake First, before processing application data, TCP first ensures that data can be reliably delivered to the destination…

  • Running out of rack space? Half-width switches can help.

    ⏱️ Estimated reading time: Approx. 3 minutes (3 min read) Today, many businesses operate in a distributed manner. They must build purpose-specific servers and storage, along with appropriately sized networks, to power and connect these multiple locations. However, many face limitations in space and power, and across various departments such as IT, video, and security…

  • [ACSA Education #3] Physical Media (Devices)

    ⏱️ Estimated reading time: Approx. 5 minutes (5 min read) Computer devices use different media to transmit information. Each medium has different characteristics depending on its type. Fiber optic media modulates light wavelengths, Wi-Fi modulates radio waves, and copper wire media modulates electrical characteristics such as voltage. Copper Cable past…