User Tools

Site Tools


qnote:procurve

This is an old revision of the document!


Быстрые заметки по HP Procurve

Сбросить конфиг

CLI

Дать команду “erase startup-config”.

Находясь перед коммуатором
  • Одновременно нажать кнопки reset и clear.
  • Отпустить кнопку reset когда зажгутся лампочки Power и Fault.
    Кнопку clear продолжаем держать.
  • Когда начнут мигать лампочки линков на портах (запустится процесс само тестирования) можно отпускать кнопку clear.
To execute the factory default reset on the switch, perform these steps:
1. Using pointed objects, simultaneously press both the Reset and Clear buttons on the front of the switch. The >power and fault lights come on.
2. Continue to press the Clear button while releasing the Reset button.
3. When the Self Test LED begins to flash, release the Clear button.
The switch will then complete its self test and begin operating with its configuration restored to the factory >default settings.

Сбросить незначительные\временные ошибки

Нажать reset.

Resetting the switch
When the switch is powered on. This action clears any temporary error conditions that may have occurred and >executes the switch self test.

Сбросить пароли

Нажать на одну секунду кнопку clear.
Конфинурация при этом не сбросится.

Deleting Passwords
When pressed by itself for at least one second, the button deletes any switch console access passwords that you >may have configured. Use this feature if you have misplaced the password and need console access. This button is >provided as a convenience, however if you are concerned with the security of the switch configuration and >operation, you should make sure the switch is installed in a secure location. This button can be disabled by a >CLI command.

Перенос конфигурации между двумя коммутаторами

Есть два коммутатора hp2626-1 и hp2626-2, надо перенести конфирурацию с hp2626-1 на hp2626-2.

  • Копируем на tftp сервер конфигурацию коммутатора hp2626-1.
    hp2626-1# copy startup-config tftp x.x.x.x hp2626-1-config
  • При необходимости редактируем файл hp2626-1-config, меняем hostname, ip адреса и пр.
  • Копируем с tftp сервера конфигурацию на коммутатор hp2626-2.
    hp2626-2# copy tftp startup-config x.x.x.x hp2626-1-config
    Device may be rebooted, do you want to continue [y/n]? y
    Rebooting switch...

Если на коммутаторе hp2626-1 был включен ssh и https, а на коммутаторе hp2626-2 нет, то возникнет следующая ошибка:

“line: 8. https cannot be enabled with no certificate present. To install a
self-signed certificate,
* Use 'crypto key generate…' to install RSA key; then
* Use 'crypto host-cert generate…' to install certificate.

line: 168. ssh cannot be enabled until a host key is configured (use 'crypto' command).
Corrupted download file.”

Для решения проблемы создаем ключи и сертификаты для ssh и https:

hp2626-2(config)# crypto key generate ssh
Installing new RSA key.  If the key/entropy cache is
depleted, this could take up to a minute.

hp2626-2(config)# crypto key generate cert 1024 
Installing new RSA key.  If the key/entropy cache is
depleted, this could take up to a minute.

hp2626-m9(config)# crypto host-cert generate self-signed 
MM/DD[/[YY]YY]        Validity start date for certificate.
<cr>
Validity start date [01/01/1990]: 02/01/2015
Validity end date   [02/01/2016]: 02/01/2025
Common name            [0.0.0.0]: hp2626-m9
Organizational unit  [Dept Name]: IT-Dept
Organization      [Company Name]: IT-Comp
City or location  [City]: Moscow
State name               [State]: MOW
Country code                [US]: RU

Пробуем еще раз загрузить новую конфигурацию:hp2626-2# copy tftp startup-config x.x.x.x hp2626-1-config Device may be rebooted, do you want to continue [y/n]? y Rebooting switch…

qnote/procurve.1492192079.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki