VLAN和TRUNK实验

 

 

 ( VLAN和TRUNK实验拓扑图)

实验开始

VLAN和TRUNK实验配置过程:
S1
1.Switch>enable
2.Switch#vlan database
3.Switch(vlan)#vlan 2
4.Switch(vlan)#vlan 3
5.Switch(vlan)#exit
6.Switch#config terminal
7.Switch(config)#interface f0/2
8.Switch(config-if)#switchport access vlan 2
9.Switch(config)#interface f0/3
10.Switch(config-if)#switchport access vlan 3
11.Switch(config)#interface f0/24
12.Switch(config-if)#switchport mode trunk
13.switchport trunk allowed vlan 1-3

S2
1.Switch>enable
2.Switch#vlan database
3.Switch(vlan)#vlan 2
4.Switch(vlan)#vlan 3
5.Switch(vlan)#exit
6.Switch#config terminal
7.Switch(config)#interface f0/2
8.Switch(config-if)#switchport access vlan 2
9.Switch(config)#interface f0/3
10.Switch(config-if)#switchport access vlan 3
11.Switch(config)#interface f0/24
12.Switch(config-if)#switchport mode trunk

实验验证
1.PC1 ping PC4 Reply
2.PC2 ping PC5 Reply
3.PC3 ping PC6 Reply

 

sw1

 

 

 

 

sw2

 

 

 

 

ping(pc1 ping pc4)

 

posted @   会飞的木鱼o  阅读(107)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
点击右上角即可分享
微信分享提示