!----enable以后采用使用如下命令
vlan database
vlan 100 !----你的VLAN号
exit
conf t
int range f1/0 -4 !---- 注意0后面有个空格,
!----注意f表示100M, g表示1000M, 1/0 - 4表示第一个槽位的0~4, 共5个端口,
!----对于2918,你可以show ip int br 查看槽位及端口号。
switchport access vlan 100
no shut
exit
exit !---到show 模式----
vlan database
show current !--- 查看vlan配置
exit
--------------------------把以上内用copy下来, 直接鼠标右键, 就可以完成配置----------
测试图如下: