📜  VLAN和子网的区别

📅  最后修改于: 2022-05-13 01:57:02.132000             🧑  作者: Mango

VLAN和子网的区别

1. VLAN:
VLAN 代表虚拟局域网,它们由 802.1q 协议定义(它是一种 VLAN 标记协议,由于在以太网帧中插入了一个四字节的 VLAN 标记,它允许以太网帧的大小增加四个字节)。使用 VLAN,我们可以虚拟地将我们的 LAN 分隔成更小的网络,它们像普通 LAN 一样工作,除了它们在逻辑上或虚拟上是分开的,而不是物理上的。

使用 VLAN 有几个原因,其中一个主要原因是广播流量。 VLAN 为我们提供了虚拟物理分离网络的所有好处,而无需在硬件上花费额外的钱。流量仍以与物理分离或拆分相同的方式运行。

VLAN 的优势 –

  • VLAN 可以更轻松地拆分单个交换网络以匹配系统的安全性和功能要求,而无需对网络基础设施进行任何重大更改。
  • 使用 VLAN,我们可以在一个物理端口和 Wi-Fi 上设置多个虚拟网络。
  • 它们也很重要,因为它们通过将最频繁通信的设备组合在一起来帮助提高网络的整体性能。
  • VLAN 减少了广播流量,也使得控制广播域变得非常容易。
  • 它使网络管理变得容易。
  • 增加安全性。

2.子网:
子网/子网是网络内的网络,或者是大型网络的较小部分(子网)。基本上,子网是将 IP 网络逻辑划分为几个较小的网络,以使网络快速高效。

子网的好处——

  • 子网划分广播域,即提高速度、效率和网络性能。
  • 重新分配 IP 地址
  • 减少网络拥塞
  • 提高网络安全性

VLAN和子网的区别:

S.NO

VLAN

Subnet

1.

VLAN is a virtual or logical LAN its purpose is to communicate with other devices within the same LAN.A subnet is a logical partition of an IP network or it’s an IP address range of IP addresses and it helps hosts to communicate over layer 3 (Network Layer). 

2.

It allows us to create different physical and logical addresses.It allows us to create logical networks within the same physical network.

3.

VLAN is configured at the router side i.e. if you have the router you can decide which port is assigned to which VLAN.A subnet is decided by the IP address.

4.

As VLAN is based on MAC address hence it’s a Layer 2 (Data link layer) term.A subnet is based on an IP layer hence it’s a Layer 3 (Network layer) term.

5.

VLANs provide better and more stable network access.Where as Subnet has limited control.

6.

VLAN is primarily software-based. A subnet is more hardware-based.