Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell Networking:如何在 OS9 交换机上配置 VLAN 并将端口关联到 VLAN

Summary: 本文介绍如何在戴尔 OS9 交换机上设置 VLAN。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

目录

  1. 交换机端口
  2. 混合交换机端口
  3. 创建 VLAN
  4. 将 VLAN 应用于接口
  5. 有用的 show 命令

 

交换机端口

当接口处于交换机端口模式时,它会传递多个标记 VLAN 或一个未标记 VLAN。它不能同时接受未标记和已标记的流量。

要配置交换机端口,请执行以下操作:

FTOS#config

FTOS(conf)#Interface Te0/5

FTOS(conf-if-te-0/5)#switchport

要卸下交换机端口:

FTOS(conf-if-te-0/5)#no switchport

 

提醒:要配置交换机端口模式,请首先验证是否已删除接口上的任何现有配置。例如,系统不允许在分配了 IP 地址的接口上配置交换机端口,因为该接口已处于第 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 地址的接口上配置交换机端口,因为该接口已处于第 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。这对于创建到中继 Cisco 端口的链路非常有用。接口范围 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

 

Article Properties


Affected Product
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 ...
Last Published Date

27 Feb 2024

Version

5

Article Type

How To