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 組態模式。

 

HOW12374_en_US__1icon 組態的有效 VLAN ID 為 1-4093。
HOW12374_en_US__1icon 您可以使用破折號「-」指定 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」。
 
HOW12374_en_US__1icon 新的 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.