Trunk必看版,最基础,最简单的实验

小白必看:超简单Trunk小实验,一看就懂
一.实验环境
实验环境:GNS3,路由器c2691

二.实验拓扑图<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191020/134200507.png" alt="mark" style="zoom:75%;" />
三.实验步骤
首先进行vlan与接口的配置。先设置好vlan如图。<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191020/135827527.png" alt="mark" style="zoom:75%;" />

然后把sw1的接口分给对应的vlan<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191020/140100910.png" alt="mark" style="zoom:75%;" />

接着我们对sw2进行同样的操作。如图。<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191020/140446018.png" alt="mark" style="zoom:75%;" />

接着我们要对sw1的f1/2接口设置trunk,如图<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191020/141016675.png" alt="mark" style="zoom:75%;" />

接下来对sw2的f1/2接口进行同样的设置,如图<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191020/141326543.png" alt="mark" style="zoom:75%;" />

最后我们再对pc机设置ip地址就行了。如下图依次是pc1到pc4的设置。<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191020/141704049.png" alt="mark" style="zoom:75%;" />

<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191020/141715483.png" alt="mark" style="zoom:75%;" />

<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191020/141733119.png" alt="mark" style="zoom:75%;" />

<img src="http://itmc.oss-cn-hangzhou.aliyuncs.com/blog/20191020/141747120.png" alt="mark" style="zoom:75%;" />

至此实验结束,实验结果如何大家可以自行互ping试试,用wireshark抓包看看实验结果。over!

上一篇:在ensp上配置Trunk接口


下一篇:假装网络工程师4——多VLAN间通信