SW2 Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SW2 SW2(config)#vlan SW2(config-vlan)#name caiwu SW2(config-vlan)#vlan SW2(config-vlan)#name it SW2(config-vlan)#exit SW2(config)#/- SW2(
vlan:virtual LAN 虚拟局域网 作用:通过VLAN技术,可以对局域网进行隔离,互相隔离开的局域网相互之间不能进行通信,一个VLAN为一个广播域 Vlan配置 GNS3(使用路由器来模拟交换机) Switch2,3,4的配置 Switch1# no ip routeing 关闭路由功能 Switch1(config-if)# ip address x.x.x.x255.255.255.0 Switch1(config-if)# no shutdown 打开接口 配置完之后,三个ip