您好,登錄后才能下訂單哦!
實驗環境: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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。