Dell Networking OS6:如何创建 VLAN
Summary: 如何在运行 Dell Networking OS6 的 PowerSwitch 设备上创建虚拟局域网 (VLAN)。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
概览
虚拟局域网 (VLAN) 用于在广播域内创建逻辑网络分段,以达到流量管理、安全性和网络管理的目的。默认情况下,N 系列交换机(N1100、N1500、N2000、N2100、N3000、N3100 和 N4000 型号)上的所有端口都分配给 VLAN ID 1 作为访问端口。这意味着接口将在该 VLAN 中发送未标记的流量,并在单个广播域中运行,除非另有配置。
单VLAN配置示例
| 命令 | 参数 |
DellSwitch# configure |
进入配置模式。 |
DellSwitch(config)# VLAN 10 |
输入要以 VLAN X 格式创建的特定 VLAN ID。 |
DellSwitch(config-vlan10)# exit |
退出 VLAN 配置模式。 |
配置的有效 VLAN ID 为 1-4093。
可以使用连字符“-”来指定 VLAN 的顺序范围,或者使用逗号“,”来指定非顺序 VLAN 时,可以一次创建多个 VLAN。
多VLAN配置示例
| 命令 | 参数 |
DellSwitch# configure |
进入配置模式。 |
DellSwitch(config)# vlan 3-5 |
以 vlan x-y 格式输入 VLAN ID 的特定范围。 |
DellSwitch(config-vlan3-5)# exit |
退出 VLAN 配置模式。 |
为 VLAN 设置可选名称
| 命令 | 参数 |
DellSwitch# configure |
进入配置模式。 |
DellSwitch(config)#vlan 10 |
输入要命名的 VLAN 的 ID。 |
DellSwitch(config-vlan10)#name Storage |
以 名称 X 格式输入名称。 |
DellSwitch(config-vlan10)#end |
退出配置模式 |
DellSwitch# show vlan
VLAN Name Ports Type
----- --------------- ------------- --------------
1 default Gi6/0/1-48, Default
Te6/0/1-2
10 Storage Static
VLAN 1 自动被分配名称“default”,该名称无法更改。
新 VLAN 将使用语法自动命名”VLANxxxx“,其中 xxxx 是四位 VLAN ID。例如,VLAN 50 的名称为 VLAN0050。
其他 VLAN 命令
使用命令检查所有交换机 VLAN 和端口分配 show vlan。
Dell# show vlan
VLAN Name Ports Type
----- --------------- ------------- --------------
1 default Po1-128, Default
Gi1/0/1-24,Te2/0/1-2
Check information on a specific VLAN by using the command show vlan id or show vlan name.
Dell# show vlan id 100
VLAN Name Ports Type
----- --------------- ------------- --------------
100 VLAN0100 Static
RSPAN Vlan
---------------------------------------------------------------------
Disabled
有关如何在 N 系列交换机上创建新 VLAN 的视频
Affected Products
PowerSwitch N1100-ON Series, PowerSwitch N1500 Series, PowerSwitch N2000 Series, PowerSwitch N2100 Series, PowerSwitch N2200-ON Series, PowerSwitch N3000 Series, Dell EMC PowerSwitch N3100 Series, Dell EMC Networking N3200-ON
, PowerSwitch N4000 Series
...
Article Properties
Article Number: 000104854
Article Type: How To
Last Modified: 02 Jul 2025
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.