环境
操作
操作:按照如图所示连接拓扑图
![image.png image.png](https://i-blog.csdnimg.cn/blog_migrate/91162bf602f5df4780e6818920a32d43.png)
实验步骤
- 创建VLAN 2和VLAN 3
- 将部门PC对应端口划分到相应的VLAN中
PC设置
192.168.1.2 //PC0
192.168.1.3 //PC1
192.168.1.4 //PC2
192.168.1.5 //R0
//子网掩码和网关
255.255.255.0
192.168.1.1
Switch0配置
Switch>en // 进入特权模式
Switch#conf t // 进入全局配置模式命令缩写
Enter