如何使用 N1500 交换机的 interface range 命令
Summary: 同时在 Dell EMC N 系列交换机上配置多个接口。
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
文章摘要:本文介绍如何同时配置多个接口
有时您希望在一系列接口上应用相同的配置。例如,32 个工作站连接到同一交换机并使用相同的 VLAN、端口配置。要同时配置多个接口,请使用接口范围命令。
console(config)#interface range port-range |全部端口类型
您可以选择特定范围的接口,也可以选择该端口类型的所有接口。下面是一个允许您同时配置所有千兆接口的示例。
console>enable
console#config
console(config)#interface range gigabitethernet all
下面是配置千兆端口 1 至 10 的示例。请注意,范围 1 和 10 之间 没有 空格。
console(config)#interface range gi1/0/1-10
下面是配置千兆端口 1、3、5 和 7 的示例。请注意,接口之间 没有 空间。
console(config)#接口范围 gi1/0/1,gi1/0/3,gi1/0/5,gi1/0/7
您也可以将上述两种语法组合在一起。下面是配置千兆端口 1-10 以及 15、20 的示例。
console(config)#interface range gi1/0/1-10,gi1/0/15,gi1/0/20
Affected Products
PowerSwitch N1500 SeriesArticle Properties
Article Number: 000121867
Article Type: How To
Last Modified: 05 Jun 2025
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.