1、设置交换机管理IP: Switch(config)#interface vlan 1 Switch(config-if)#no shutdown Swithc(config-if)#ip address 192.168.0.253 255.255.255.0 enable密码设置: Switch(config)#enable password xxx设置进入虚拟终端登入密码: Switch(config)#line vty 0 4 Switch(config-line)#password xxx Switch(config-line)#login
2、创建标识为10的VLAN,并把端口作为其成员:
3、跨交换机VLAN设置:
4、在单台三层交换机上实现VLAN间的路由:
5、在多台交换机上实现VLAN间的路由 :
6、在路由器上做单臂路由可以实现vlan间的通信: