enable
show running-config
show startup-config
show version
show inventory
show vlan brief
show ip interface brief copy running-config tftp
# Введите IP TFTP-сервера
# Укажите имя файла (например, switch-backup-2025-01-12.txt) enable
# Введите enable secret write erase
# Или:
erase startup-config
# Система спросит [confirm] — нажмите Enter delete flash:vlan.dat
# Подтвердите удаление: Delete filename [vlan.dat]? — Enter
# Delete flash:/vlan.dat? [confirm] — Enter reload
# На вопрос «Save configuration changes? [yes/no]:» — ответьте no
# System configuration has been modified. Save? [yes/no]: no
# Proceed with reload? [confirm] — Enter switch: flash_init
# Инициализация flash-памяти
switch: dir flash:
# Проверка файлов во flash (убедитесь, что config.text и vlan.dat присутствуют)
switch: del flash:config.text
# Удаление startup-конфига
# Delete filename [config.text]? — Enter
# Delete flash:/config.text? [confirm] — Enter
switch: del flash:private-config.text
# Удаление приватной конфигурации (если есть)
switch: del flash:vlan.dat
# Удаление базы VLAN
switch: boot
# Загрузка IOS delete flash:vlan.dat
# Delete filename [vlan.dat]? — Enter
# Delete flash:/vlan.dat? [confirm] — Enter
reload Would you like to enter the initial configuration dialog? [yes/no]:
enable
configure terminal
interface vlan 1
ip address 192.168.1.10 255.255.255.0
no shutdown
exit ip default-gateway 192.168.1.1 hostname SW-Office-01 write memory
# Или:
copy running-config startup-config show ip interface brief
# Убедитесь, что VLAN 1 (или ваша mgmt VLAN) имеет IP и статус up/up
ping 192.168.1.1
# Проверьте доступность шлюза enable secret StrongPassword123 username admin privilege 15 secret AdminPass456 ip domain-name example.local
crypto key generate rsa modulus 2048 line vty 0 4
login local
transport input ssh
exit no ip http server
no ip http secure-server banner motd #
Unauthorized access is prohibited.
# write memory delete flash:vlan.dat
reload
show vlan brief
show startup-config show vlan brief VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, ... (все порты)
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup show running-config
enable
write erase
delete flash:vlan.dat
reload delete flash:vlan.dat