在指定端口范围时,需要注意几下问题:
有效的端口范围
vlan vlan-id,SI版本的vlan-id的取值范围是1~1005,EI版本的vlan-id的取值范围是1~4096;
fastethernet slot/{first-port} - {last-port}:slot的值为0;
gigabitethernet slot/{first-port} - {last-port}:slot的值为0;
port-channel :port-channel-number - port-channel-number:port-channel-number的取值范围是1-6.
连字符的使用
连续的端口号可以在起止端口号间使用连字符表示。不过,必须在连字符的“-”的前后加一个“空格”,如:fastethernet 0/1 - 5 是正确的,而fastethernet 0/1-5是错误的。
注意:vlan、interface命令在指定端口使用连字符时就不加空格。
端口组内所有端口必须是相同类型的,fast ethernet端口,或者gigabit ethernet端口,或者enterchannel端口,再或者全部为vlan
美商婕斯智能交换机在使用端口组边字符的时候,与接口,VLAN是不一样的,注意区分下。