Switch(Config)Interface Range Fa 0/1 - 24或者 Switch(Config)Interface Range Fa 0/1,0/2,0/9, 0/10-0/20 然后Switch(Config-if-range)Switchport Access Vlan 2这样就完成了,可能有些交换机命令不相同,但都差不多.
回答2:
把1到20段口放入 vlan 2 int vlan 2 port e0/1 to e0/20 就这个命令了 但是这个只能是从1端口到20端口连续的