您好,登录后才能下订单哦!
实验环境:GNS3,路由器c2691
首先进行vlan与接口的配置。先设置好vlan如图。<img src="https://cache.yisu.com/upload/information/20200309/33/53642.jpg" alt="mark" style="zoom:75%;" />
然后把sw1的接口分给对应的vlan<img src="https://cache.yisu.com/upload/information/20200309/33/53644.jpg" alt="mark" style="zoom:75%;" />
接着我们对sw2进行同样的操作。如图。<img src="https://cache.yisu.com/upload/information/20200309/33/53645.jpg" alt="mark" style="zoom:75%;" />
接着我们要对sw1的f1/2接口设置trunk,如图<img src="https://cache.yisu.com/upload/information/20200309/33/53646.jpg" alt="mark" style="zoom:75%;" />
接下来对sw2的f1/2接口进行同样的设置,如图<img src="https://cache.yisu.com/upload/information/20200309/33/53647.jpg" alt="mark" style="zoom:75%;" />
最后我们再对pc机设置ip地址就行了。如下图依次是pc1到pc4的设置。<img src="https://cache.yisu.com/upload/information/20200309/33/53648.jpg" alt="mark" style="zoom:75%;" />
<img src="https://cache.yisu.com/upload/information/20200309/33/53649.jpg" alt="mark" style="zoom:75%;" />
<img src="https://cache.yisu.com/upload/information/20200309/33/53650.jpg" alt="mark" style="zoom:75%;" />
<img src="https://cache.yisu.com/upload/information/20200309/33/53652.jpg" alt="mark" style="zoom:75%;" />
至此实验结束,实验结果如何大家可以自行互ping试试,用wireshark抓包看看实验结果。over!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。