HP ProCurve 2510
Интерфейсы
Просмотр информации об интерфейсах
sw1(config)# sh interfaces brief
Задать имена интерфейсам
sw(config)# interfaces 1 name perviy
Просмотр заданных имен
sw# show name
Сохранить конфигурацию на SSH сервер
HP-2530-24(config)# copy startup-config sftp root@192.168.17.12 switch-tmb-18-224.cfg
Конфигурация сохранится в корень домашней директории пользователя на сервере
Создать пользователя
HP-2530-24(config)# password manager user-name admin
Вводим пароль и подтверждение
Имя свитча
HP-2530-24(config)# sysname switch-tmb-18-224
SSH доступ
HP-2530-24# config
HP-2530-24(config)# crypto key generate ssh
The switch will now generate a key.
Now that you have created a certificate and the appropriate keys, you can enable SSH on the switch
HP-2530-24(config)# ip ssh
HP-2530-24(config)# ip ssh show
Назначить IP адрес Vlan 1
configure
vlan 1
ip address 192.168.29.224
write memory
Шлюз по-умолчанию
configure
ip default-gateway 192.168.29.8
write memory
Hard reset
Press in both the Clear and Reset buttons (tiny buttons on the left edge)
Release the Reset button after the port lights come on (~2 seconds)
When the Self-Test LED starts flashing (to the left of the Clear and Reset buttons), release the Clear button.
This resets the switch to the factory default settings, including the IP address.
By default this switch uses DHCP for its IP if available; try checking your
router’s DHCP client list after the switch boots if you’re having trouble finding it.
Найти в какой порт свитча подключено устройство с определенным mac-адресом
Показать mac-адреса всех устройств в сети и в какой порт нашего свитча они подключены
show mac-address
Показать в какой порт нашего свитча подключено устройство с конкретным mac-адресом
show mac-address D4:CA:6D:F2:EB:59
Показать мак-адрес на физическом порту 25
sh mac-address 25
VLAN
Заходим в конфигурирование
configure
Создаем vlan
vlan 11
Вешаем vlan на физические порты
tagged 1,2,3,4,5,6
Сохранить настройки
wr mem
Удалить vlan с физических портов
tagged 1,2,3,4,5,6
Показать мак-адреса устройств в сети, с которых приходит vlan 12, и также в какой порт свитча при ходит vlan 12
sh mac-address vlan 12
Выходим в начальное меню
end
Заблокировать устройство по мак-адресу (mac-address lockout)
Lock out a MAC address. The switch drops all traffic to or from the locked out address.
ProCurve Switch 2510-48(config)# lockout-mac help
ProCurve Switch 2510-48(config)# lockout-mac 008801-5d9ddc
ProCurve Switch 2510-48(config)# show lockout-mac
Locked Out Addresses 008801-5d9ddc
ProCurve Switch 2510-48(config)# no lockout-mac 008801-5d9ddc