默认就在vlan1 你那是啥牌子的交换机,要问命令先说牌子,
锐捷网络交换机配置 思科的一样
en
conf t
int f 0/1
sw mo acc
sw acc vlan 1
exit
exit
wr
一般情况下交换机出厂默认vlan都是vlan1,一般称为natvie vlan。
SwitchA(config)#interface ethernet 0/1
SwitchA(config-port-Range)#switchport mode access
SwitchA(config-port-Range)#switchport access vlan 1
SwitchA(config-port-Range)#no shutdown
SwitchA(config-port-Range)#exit
SwitchA(config)#interface ethernet 0/1
SwitchA(config-port-Range)#switchport access vlan 1
SwitchA(config-port-Range)#no shutdown
SwitchA(config-port-Range)#exit