更新时间:2023-12-08                  
                  
                  
  
  
  1Interface range命令
 
  1.1interface range
 
   命令描述 
 
   interface range type slot/<port1 - port2 | port3>[<port1 - port2|port3>] 
 
   参数 
 
   
    
     
      
      |  名称  |  说明  |  取值范围  | 
 
      
      |  type  |  端口类型  |  所有合理端口类型,机架式交换机主控版上的管理端口除外  | 
 
      
      |  slot  |  槽位号  |  所有合法槽位号  | 
 
      
      |  port1  |  端口号起始值  |  槽位slot上所有合法端口号  | 
 
      
      |  port2  |  端口号结束值  |  槽位slot上所有合法端口号,并且要比port1大  | 
 
      
      |  port3  |  一个单独的端口  |  槽位slot上所有合法端口号  | 
 
     
   
 
    
   缺省 
 
   无 
 
   使用说明 
 
   用于进入interface range模式 
 
   示例 
 
   通过以下命令进入端口配置模式,其中包含1槽位1、2、3、6、8、10、11、12千兆以太网端口: 
 
   switch_config#interface range G1/1-3,6,8,10-12 
 
   switch_config_if_range# 
 
   注意: 
 
   “-”和“,”两边均不能有空格