CISCO交換機如何刪除Vlan |
發(fā)布時間: 2012/5/29 17:38:20 |
在一個網(wǎng)絡(luò)系統(tǒng)中VLAN規(guī)劃好后一般是不需要對Vlan進行變更。實際應(yīng)用中可能會因為網(wǎng)絡(luò)的結(jié)構(gòu)的變化,而對Vlan進行重新規(guī)劃,那就涉及要Vlan的刪除或重建。Vlan的刪除在cisco思科交換機中非常簡單,只要在核心交換機上進行操作就可以了。 在核心交換機上配置: 4506》en password:輸入密碼 4506#vlandatabase回車后顯示: %Warning:ItisrecommendedtoconfigureVLANfromconfigmode,asVLANdatabasemodeisbeingdeprecated.PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode. 4506(vlan)#novlan2 刪除vlan2,按照此命令格式將需要刪除的Vlan全部刪除。最后使用apply命令所有設(shè)置生效 4506(vlan)#apply APPLYcompleted. 退出 4506(vlan)#exit APPLYcompleted. Exiting. 4506# 進入配置狀態(tài)將所有vlan配置的ip均刪除掉 4506#conft 4506#conft Enterconfigurationcommands,oneperline.EndwithCNTL/Z. 4506(config)#intvlan2 4506(config-if)#noipaddress10.XX.XX.XX255.255.255.0 4506(config-if)#exit 4506(config)#intvlan3 依次刪除所有設(shè)定的IP地址 最后使用 4506#shrun 來查看配置情況 使用shvlan來查看Vlan的設(shè)置情況 4506#shvlan 最后是保存cisco的設(shè)置 4506#copyrunstart Destinationfilename[startup-config]? Buildingconfiguration. Compressedconfigurationfrom5469bytesto2088bytes[OK] 4506# 提問:用novlan刪除VLAN,但是VLAN刪不干凈,怎么刪比較干凈? 解答:這樣當然刪不干凈了,因為配置VLAN時還配置過接口。 先刪接口 switch(config)#intraf0/1-5 switch(config-if)#noswitchportaccessvlan20 switch(config-if)#exit 再刪除配置接口 switch(config)#nointvlan20 刪除VLAN switch(config)#NOvlan20 本文出自:億恩科技【1tcdy.com】 服務(wù)器租用/服務(wù)器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |