在核心交换机上配置:
4506>en
password:输入密码
4506#vlan database 回车后显示:
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
4506(vlan)#no vlan 2
删除vlan 2,按照此命令格式将需要删除的Vlan全部删除。最后使用apply命令所有设置生效
4506(vlan)#apply
APPLY completed.
退出
4506(vlan)#exit
APPLY completed.
Exiting....
4506#
进入配置状态将所有vlan配置的ip均删除掉
4506#conf t
4506#conf t
Enter configuration commands, one per line. End with CNTL/Z.
4506(config)#int vlan 2
4506(config-if)#no ip address 10.XX.XX.XX 255.255.255.0
4506(config-if)#exit
4506(config)#int vlan 3
.
.
.
依次删除所有设定的IP地址
最后使用
4506#sh run
来查看配置情况
使用sh vlan来查看Vlan的设置情况
4506#sh vlan
最后是保存cisco的设置
4506#copy run start
Destination filename [startup-config]?
Building configuration...
Compressed configuration from 5469 bytes to 2088 bytes[OK]
4506#