您好,登錄后才能下訂單哦!
實驗環(huán)境:GNS3,路由器c2691
首先進(jìn)行vlan與接口的配置。先設(shè)置好vlan如圖。<img src="https://cache.yisu.com/upload/information/20200309/33/53642.jpg" alt="mark" style="zoom:75%;" />
然后把sw1的接口分給對應(yīng)的vlan<img src="https://cache.yisu.com/upload/information/20200309/33/53644.jpg" alt="mark" style="zoom:75%;" />
接著我們對sw2進(jìn)行同樣的操作。如圖。<img src="https://cache.yisu.com/upload/information/20200309/33/53645.jpg" alt="mark" style="zoom:75%;" />
接著我們要對sw1的f1/2接口設(shè)置trunk,如圖<img src="https://cache.yisu.com/upload/information/20200309/33/53646.jpg" alt="mark" style="zoom:75%;" />
接下來對sw2的f1/2接口進(jìn)行同樣的設(shè)置,如圖<img src="https://cache.yisu.com/upload/information/20200309/33/53647.jpg" alt="mark" style="zoom:75%;" />
最后我們再對pc機(jī)設(shè)置ip地址就行了。如下圖依次是pc1到pc4的設(shè)置。<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%;" />
至此實驗結(jié)束,實驗結(jié)果如何大家可以自行互ping試試,用wireshark抓包看看實驗結(jié)果。over!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。