思科交換機Vlan如何刪除
- 網路技術
- 關注:2.94W次
實際應用中可能會因為網路的結構的變化,而對Vlan進行重新規劃,那就涉及要Vlan的刪除或重建。Vlan的刪除在cisco思科交換機中非常簡單,只要在核心交換機上進行操作就可以了。
在核心交換機上配置:
4506》en
password:輸入密碼
4506#vlandatabase回車後顯示:
%Warning:ItisrecommendedtoconfigureVLANfromconfigmode,seconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.
4506(vlan)#novlan2
刪除vlan2,按照此命令格式將需要刪除的Vlan全部刪除。最後使用apply命令所有設定生效
4506(vlan)#apply
APPLYcompleted.
退出
4506(vlan)#exit
APPLYcompleted.
Exiting.
4506#
進入配置狀態將所有vlan配置的`ip均刪除掉
4506#conft
4506#conft
Enterconfigurationcommands,ithCNTL/Z.
4506(config)#intvlan2
4506(config-if)#
4506(config-if)#exit
4506(config)#intvlan3
依次刪除所有設定的IP地址
最後使用
4506#shrun
來檢視配置情況
使用shvlan來檢視Vlan的設定情況
4506#shvlan
最後是儲存cisco的設定
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
- 文章版權屬於文章作者所有,轉載請註明 https://xuezhezhai.com/zh-tw/jsj/wl/5g0rvz.html