用配置線鏈接到交換機(jī)以后,然后輸入用戶名admin 密碼zhongxing
輸入enable進(jìn)入配置模式:文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/8357.html
創(chuàng)建VLAN命令如下:文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/8357.html
set vlan 10 enable //創(chuàng)建ID為10的VLAN set vlan 10 add port 1-24 untag //在VLAN10內(nèi)加入端口1到24且去掉標(biāo)簽,即ACCESS口 set vlan 10 add port 25 tag ///在VLAN10內(nèi)加入端口25并打上TAG標(biāo)簽,即trunk口 set port 1-24 pvid 10 //把添加到VLAN10的用戶端口pvid至VLAN10中,交換機(jī)用戶端口必須在所添加的VLAN中做此項(xiàng)命令。
刪除VLAN命令如下:文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/8357.html
set vlan 10 delete port 1-24 //刪除VLAN10中的1-24端口 set vlan 10 delete port 25 //刪除級(jí)聯(lián)端口(即trunk口) set vlan 10 disable //刪除VLAN set port 1-24 pvid 1 //恢復(fù)默認(rèn)設(shè)置,該項(xiàng)命令必須添加,不然還會(huì)在show running-config中顯示。
最后輸入wr回車(chē)保存。文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/8357.html 文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/8357.html
版權(quán)聲明:文章圖片資源來(lái)源于網(wǎng)絡(luò),如有侵權(quán),請(qǐng)留言刪除!!!
評(píng)論