Dell Networking:如何在 OS9 交換器上設定 VLAN 並將連接埠與 VLAN 建立關聯
Summary: 本文說明如何在 Dell OS9 交換器上設定 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 或一個未標記的 VLAN。它不能同時接受未標記和已標記的流量。
若要設定交換器連接埠:
FTOS#config FTOS(conf)#Interface Te0/5 FTOS(conf-if-te-0/5)#switchport
若要卸下交換器連接埠:
FTOS(conf-if-te-0/5)#no switchport
注意:若要配置 switchport mode,請先確認已移除介面上的任何現有組態。例如,系統不允許在分配了IP位址的介面上配置交換機埠,因為該介面已處於Layer 3模式。
混合式交換器連接埠
當介面處於混合式交換器連接埠模式時,介面可能會同時傳遞未標記和已標記的 VLAN。
設定混合式交換器連接埠:
FTOS#config FTOS(conf)#Interface Te0/5 FTOS(conf-if-te-0/5)#portmode hybrid FTOS(conf-if-te-0/5)#switchport
移除混合式交換器連接埠:
FTOS(conf-if-te-0/5)#no switchport FTOS(conf-if-te-0/5)#no portmode hybrid
注意:若要配置混合式交換器連接埠模式,請先確認已移除介面上的任何現有組態。例如,系統不允許在分配了IP位址的介面上配置交換機埠,因為該介面已處於Layer 3模式。
建立 VLAN
若要建立 VLAN,請輸入下列命令此範例會建立 VLAN 414 和 515。
FTOS#config FTOS(conf)#Interface Vlan 414 FTOS(conf-if-vl-414)#exit FTOS(conf)#Interface Vlan 515
您一次只能建立一個 VLAN。
將 VLAN 套用至介面
若要將 VLAN 新增至未標記的介面,請輸入下列命令:
FTOS#config FTOS(conf)#Interface Vlan 414 FTOS(conf-if-vl-414)#untagged te0/5
要將 VLAN 新增到具有 802.1Q 標記的介面,請輸入以下命令:
FTOS(conf-if-vl-414)#tagged te0/9
若要將多個 VLAN 套用至介面:
FTOS(conf)#interface range Vlan 414 – 515 % Warning: interface-range ignores Non-existing ports (not configured).
注意:上述錯誤消息指出,在 414 到 515 的範圍內,只會配置我們已經創建的 VLAN。這對於創建到中繼思科埠的連結非常有用。介面範圍 Vlan 2-4094 允許您將所有現有 VLAN 添加到介面以類比中繼埠,而無需創建多餘的配置。此命令不會建立新的 VLAN。
若要將 VLAN 套用至多種介面:
FTOS(conf-if-vl-414)#tagged te0/5-10
從介面卸下 VLAN:
FTOS(conf-if-vl-414)#no tagged te0/5-10
實用的 show 命令
show vlan |
顯示現有的 VLAN 及其連接埠 |
show run interface te0/5 |
顯示介面 te0/5 的組態 |
show run interface vlan 414 |
顯示 VLAN 414 的組態 |
show interface switchport te0/5 |
顯示連接埠上已標記和未標記的 VLAN |
Affected Products
Force10 E1200i, Force10 E300, Force10 E600i, Force10 MXL Blade, Force10 S25N-S50N, Force10 S25-01-GE-24T, Force10 S25-01-GE-24V, Force10 S50-01-GE-48T-V, Force10 S50-01-GE-48T, PowerSwitch S3048-ON, PowerSwitch S4048-ON, PowerSwitch S4810P
, PowerSwitch S4810-ON, PowerSwitch S5000, Force10 S50P, Force10 S55T, Force10 S60-44T, PowerSwitch S6000, Force10 Z9000, Dell Networking Z9500, Dell Networking S3100 Series, PowerSwitch S4048T-ON
...
Article Properties
Article Number: 000119270
Article Type: How To
Last Modified: 27 Feb 2024
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.