交换机配置VLAN的时候,步骤是怎样的

来源:百度知道 编辑:UC知道 时间:2024/06/27 14:17:41

不同交换机命令不同
步骤是
先创建VLAN,在进入这个VLAN里,有的需要是设置模式
进入后添加端口即可
有的交换机需要吧默认的VLAN删除才可以吧其中的默认端口添加到别的地方
比如D-LINK就需要删除,要创建新的VLAN并添加端口就需要吧默认的删除,因为出厂默认所有端口为VLAN1
switch>enable
switch#config
switch(Config)#vlan 10
switch(Config-Vlan10)#switchport interface ethernet 0/0/1-8
switch(Config-Vlan10)#exit
switch(Config)#vlan 20
switch(Config-Vlan20)#switchport interface ethernet 0/0/9-16
switch(Config-Vlan10)#exit