API Guide

端口通道
VLAN 接口
批量配置包括配置中接口范围内的任何非现有接口。
只有在配置的接口范围仅包含 VLAN 端口时才能配置默认 VLAN。当其中一个 VLAN 端口发生故障时接口范围内的所有 VLAN
口都会受到影响。
创建接口范围允许使用 interface range 命令将其他命令应用到该接口范围。
配置以太网地址的范围并启用它们
OS10(config)# interface range ethernet 1/1/1-1/1/5
OS10(conf-range-eth1/1/1-1/1/5)# no shutdown
查看配置
OS10(conf-range-eth1/1/1-1/1/5)# show configuration
!
interface ethernet1/1/1
no shutdown
switchport access vlan 1
!
interface ethernet1/1/2
no shutdown
switchport access vlan 1
!
interface ethernet1/1/3
no shutdown
switchport access vlan 1
!
interface ethernet1/1/4
no shutdown
switchport access vlan 1
!
interface ethernet1/1/5
no shutdown
switchport access vlan 1
配置 VLAN 的范围
OS10(config)# interface range vlan 1-100
OS10(conf-range-vl-1-100)#
配置端口通道的范围
OS10(config)# interface range port-channel 1-25
OS10(conf-range-po-1-25)#
Identifier
GUID-0343C100-A7BC-4577-901E-4037EE0A65DE
Version 4
Status Translation approved
交换机端口配置文件
端口配置文件用于确定以太网和统一端口上已启用的前面板端口和受支持的分解模式。更改交换机上的端口配置文件以自定义上行
链路和统一端口操作以及前面板数据端口的可用性。
要在下一次重新引导时更改端口配置文件请使用 switch-port-profile 命令和所需的配置文件将其保存到启动配置中然后
使用 reload 命令应用更改。
1. CONFIGURATION 模式下配置特定于平台的端口配置文件。对于独立交换机请为 node/unit 输入 1/1
switch-port-profile node/unit profile
2. EXEC 模式下将端口配置文件更改保存到启动配置。
write memory
接口
243