Understand 和 configure VLANs
VLANs logically 段 physical 网络为 isolated 广播 domains. Learn VLAN IDs, tagging (802.1Q), 和 trunk vs access ports.
- 1
VLAN (Virtual LAN) 是 logical 网络段 created 开 switch. VLANs isolate 广播 traffic 和 improve 安全. 每个 VLAN 有 ID (1-4094, 具有 1 经常默认和 1002-1005 reserved). 802.1Q tag (4 bytes inserted 为 Ethernet 帧) carries VLAN ID 之间 switches 开 trunk ports.
- 2 MAC 地址工具 →
Look 上 MAC address 的网络 devices 到识别它们通过 vendor. 此 helps 映射 physical devices 到 VLAN assignments. Document 哪个 ports 连接到 哪个 VLANs 和 devices.
- 3 IP 信息查询器 →
Plan IP subnet 为每个 VLAN. 典型每个 VLAN maps 到 one subnet: VLAN 10 → 10.0.10.0/24, VLAN 20 → 10.0.20.0/24. Inter-VLAN routing requires 路由器或 Layer-3 switch.
常见问题
- 什么是 差集之间 access 和 trunk ports?
- access 端口 belongs 到 one VLAN 和 sends untagged frames ( PVID). trunk 端口 carries 多个 VLANs using 802.1Q tags. 结束 devices 连接到 access ports; switches 连接到 每个其他 via trunks. hybrid 端口能够两者 (tagged 为一些 VLANs, untagged 为 one).
- 为什么 use VLANs?
- 安全 (isolate departments, guest networks), 性能 (缩减广播域 大小), flexibility (move users 无 rewiring), 和合规 (段 PCI cardholder 数据). 无 VLANs, 所有 devices share one 广播域, 原因 unnecessary traffic 和安全 exposure.