Huawei

Huawei

𝔯𝔱_𝔣𝔞𝔫

Главная Назад

Детальный вывод информации на порту:

dis int ethernet


Просмотр состояния портов:

dis int ethernet brief


Линк/скорость/ошибки на портах:

dis int brief


Конфигурация коммутатора:

dis current-configuration 


Все мак адреса:

dis mac-address


Определяем порт по мак адресу:

display mac-address aaaa.bbbb.cccc


Мак-адрес на 10 порту:

dis mac-address Ethernet 0/0/10


Логи:

dis log


Логи на 10 порту:

display logbuffer | include 0/0/10


Метраж кабеля (кабель надо отключить от устройств!!!):

sys
int ethernet 0/0/10
virtual-cable-test
[Y]


Скорость на авто:

sys
int ethernet 0/0/10
negotiation auto


Скорость на 10 (или 100) мб/с:

sys
int ethernet 0/0/10
undo negotiation auto
speed 10 (100)


Режим работы порта (full-duplex, half-duplex):

sys
int ethernet 0/0/10
duplex full (half)


Выключить / включить порт:

sys
int ethernet 0/0/10
shutdown (no shutdown)


Сбросить ошибки на порту:

reset counters interface


ARP таблица (тут же можно посмотреть мак адрес самого коммутатора):

display arp


Автообновление даты и времени:

ntp-service unicast-server 81.163.39.114 source-interface Vlanif1111


Настройка SNTP:

sys
ntp unicast-server <ip-address>


Настройки портов:

interface Ethernet0/0/1
 port link-type access
 port default vlan 1234
 mac-limit maximum 4 alarm disable
 loopback-detect recovery-time 60
 loopback-detect enable
 stp disable
 stp bpdu-filter enable
 port-isolate enable group 1
 broadcast-suppression 5

interface GigabitEthernet0/0/1
 description UPLINK
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 1111 2222 1234


Сброс коммутатора на заводские настройки:

reset saved-configuration
> The action will delete the saved configuration in the device.
> The configuration will be erased to reconfigure. Continue? [Y/N]:
(Действие удалит сохраненную конфигурацию в устройстве.
Конфигурация будет удалена для повторной настройки. Продолжать? [Д/Н]:)
yes

reboot
> Info: The system is now comparing the configuration, please wait.
> Warning: All the configuration will be saved to the configuration 
> file for the next startup:, Continue?[Y/N]:
> (Информация: сейчас система сравнивает конфигурацию, подождите.
> Предупреждение: вся конфигурация будет сохранена в файле конфигурации > для следующего запуска: Продолжить?[Да/Нет]:)
no

> System will reboot! Continue?[Y/N]:
(Система перезагрузится! Продолжить?[Д/Н]:)
yes


Логин и пароль по умолчанию:

admin Admin@huawei.com
admin huawei
admin www.huawei.com


Объединение портов в стек:

interface stack-port 0/1
port interface XGigabitEthernet 0/0/3 enable -> [y]
port interface XGigabitEthernet 0/0/4 enable -> [y]

stack slot 0 priority 200 -> [y]
stack slot 0 renumber 1 -> [y]

display stack ...

Чтобы убрать порт из стека:

interface stack-port 0/1
shutdown interface XGigabitEthernet 0/0/3
undo port interface XGigabitEthernet 0/0/3 enable -> [y]
shutdown interface XGigabitEthernet 0/0/4
undo port interface XGigabitEthernet 0/0/4 enable -> [y]


TACACS+ Huawei S2300 Series

system-view
undo http server enable
undo http secure-server enable
ssh authentication-type default password

hwtacacs-server template tacacs
 hwtacacs-server authentication <ip-server-tacacs>
 hwtacacs-server authorization <ip-server-tacacs>
 hwtacacs-server accounting <ip-server-tacacs>
 hwtacacs-server shared-key cipher <tacacs-server-key>
 undo hwtacacs-server user-name domain-included
q
aaa
undo local-user admin
local-user <new-login> password cipher <new-password>
authentication-scheme default
  authentication-mode local hwtacacs
q
authentication-scheme tacacs
  authentication-mode hwtacacs local
q
 authorization-scheme tacacs
  authorization-mode hwtacacs local
  authorization-cmd 1 hwtacacs local
  authorization-cmd 3 hwtacacs local
  authorization-cmd 15 hwtacacs local
q
accounting-scheme tacacs
 accounting-mode hwtacacs
 accounting start-fail online
q
domain default_admin
 authentication-scheme tacacs
 accounting-scheme tacacs
 authorization-scheme tacacs
 hwtacacs-server tacacs
q
recording-scheme tacacs
 recording-mode hwtacacs tacacs
q
cmd recording-scheme tacacs
q
user-interface vty 0 4
 authentication-mode aaa
 user privilege level 3


TACACS+ Huawei S5700 Series

system-view
hwtacacs-server template tacacs
 hwtacacs-server authentication <ip-server-tacacs>
 hwtacacs-server authorization <ip-server-tacacs>
 hwtacacs-server accounting <ip-server-tacacs>
 hwtacacs-server shared-key cipher <tacacs-server-key>
 undo hwtacacs-server user-name domain-included
q
aaa
undo local-user admin
local-user <new-login> password cipher <new-password>
  local-user sbnthelp privilege level 15
  local-user sbnthelp service-type telnet
q
authentication-scheme tacacs
  authentication-mode hwtacacs local
q
 authorization-scheme tacacs
  authorization-mode hwtacacs local
  authorization-cmd 1 hwtacacs local
  authorization-cmd 3 hwtacacs local
  authorization-cmd 15 hwtacacs local
q
accounting-scheme tacacs
 accounting-mode hwtacacs
 accounting start-fail online
q
domain default_admin
 authentication-scheme tacacs
 accounting-scheme tacacs
 authorization-scheme tacacs
 hwtacacs-server tacacs
q
recording-scheme tacacs
 recording-mode hwtacacs tacacs
q
cmd recording-scheme tacacs
q
user-interface vty 0 4
 authentication-mode aaa
 user privilege level 3
 protocol inbound telnet

Чтоб не просил ввести новый пароль при первом входе через локальный логин:

system-view
aaa
  local-aaa-user password policy administrator
  undo password alert original
  (undo password expire)



Главная Назад

Report Page