Как посмотреть ошибки на порту huawei

Checking Service Interface Indicators to Determine the Interface Status

Observe service interface indicators to quickly identify the service interface status. The following uses the S6730-H48X6C as an example. In Figure 1-1, the indicator numbered 4 is a 10GE optical interface indicator, and the indicator numbered 5 is a 40GE/100GE optical interface indicator.

Figure 1-1 Service interface indicators on the S6730-H48X6C

Table 1-1 Service interface indicators

Color

Status

Description

Steady off

The interface is not connected or has been shut down. The interface cannot send or receive packets normally.

Green

Steady on

A link has been established on the interface.

Green

Blinking

The interface is sending or receiving data.

Yellow

Blinking

The interface is sending or receiving data.

Running the display interface brief or display interface interface-type interface-number Command to Check the Interface Physical Status

You can run the display interface brief command in any view to check the physical status of all interfaces (based on the PHY field in the command output).

<HUAWEI> display interface brief
PHY: Physical   //Physical status of the interface 
*down: administratively down  
^down: standby                                                                  
~down: LDT down                                                            
#down: LBDT down   
(l): loopback                                                                  
(s): spoofing  
(E): E-Trunk down 
(b): BFD down 
(e): ETHOAM down 
(dl): DLDP down 
(d): Dampening Suppressed 
(ld): LDT block 
(lb): LBDT block 
(lp): Loop-detect block  
(ms): MACsec down     
(o): Observe-port forwarding down  
InUti/OutUti: input utility/output utility                                      
Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors   
Ethernet0/0/0               up    up       0.01%  0.01%          0          0   
GigabitEthernet1/0/0        down  down        0%     0%          0          0   
GigabitEthernet1/0/1        down  down        0%     0%          0          0   
GigabitEthernet1/0/2        down  down        0%     0%          0          0   
GigabitEthernet1/0/3        down  down        0%     0%          0          0   
GigabitEthernet1/0/4        down  down        0%     0%          0          0   
GigabitEthernet1/0/5        down  down        0%     0%          0          0   
GigabitEthernet1/0/6        up    up          0%     0%          0          0   
GigabitEthernet1/0/7        up    up          0%     0%          0          0   
GigabitEthernet1/0/8        up    up          0%     0%          0          0   
GigabitEthernet1/0/9        up    up          0%     0%          0          0   
GigabitEthernet1/0/10       down  down        0%     0%          0          0   
...

Alternatively, run the display interface interface-type interface-number command in any view to check the physical status of a specified interface (based on the current state field in the command output).

<HUAWEI> display interface gigabitethernet 0/0/12
GigabitEthernet0/0/12 current state : Administratively DOWN
Line protocol current state : DOWN
Description:
Switch Port, Link-type : access(negotiated),
PVID :1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000b-0974-a475 
Last physical up time: 2013-08-10 21:09:51 
Last physical down time : 2013-08-10 21:10:51
Current system time: 2013-08-10 21:15:06
Port Mode: COMMON FIBER
Speed : 1000,Loopback: NONE
Duplex: FULL,Negotiation: ENABLE
Mdi: -,Flow-control: DISABLE
Last 300 seconds input rate 96 bits/sec, 0 packets/sec
Last 300 seconds output rate 96 bits/sec, 0 packets/sec
Input peak rate 15184 bits/sec, Record time: 2013-08-10 17:45:05
Output peak rate 15184 bits/sec, Record time: 2013-08-10 17:45:05

In the preceding command output, the physical status of GE0/0/12 is Administratively DOWN, indicating that the shutdown command has been run on the interface. To enable the interface to go up, run the undo shutdown command in the interface view.

  • For a Layer 2 physical interface (an Ethernet interface works at Layer 2 mode by default): If its physical status indicated by the current state field displays up, its protocol status indicated by the Line protocol current state field displays up. For example, if a Layer 2 physical interface is connected correctly and its attribute configuration is correct, its physical status and protocol status are both up.
  • For a Layer 3 physical interface (The undo portswitch command has been run on the interface to change the working mode of the interface from Layer 2 mode to Layer 3 mode): Its protocol status indicated by the Line protocol current state field displays up only when its physical status indicated by the current state field displays up and its protocol negotiation succeeds. For example, if a Layer 3 physical interface is connected correctly, its attribute configuration is correct, and it is not configured with an IP address, its physical status and protocol status are up and down respectively.

The following table lists more commands for checking interface configurations or statistics.

Command

Description

display interface counters

Display statistics about packets sent or received on physical interfaces.

display interface ethernet brief

Display brief information about Ethernet interfaces, including the physical status, auto-negotiation mode, duplex mode, rate, and average bandwidth usages in the inbound and outbound directions in the recent period.

display counters error

Display error packet statistics on interfaces.

display error-down recovery

Display information about the interfaces in error-down state, including the interface name, cause of the error-down event, delay after which an interface changes to up, and remaining time for the up event.

Checking Interface Logs to Identify the Interface Status

You can run the display logbuffer command in any view to check interface logs. For example, if the following log information of the IFNET module is displayed, interfaces GigabitEthernet1/0/1 and GigabitEthernet3/0/0 are down.

Apr 15 2014 03:46:10-05:13 dgg62aslhw3i %%01IFNET/4/IF_STATE(l)[47]:Interface GigabitEthernet1/0/1 has turned into DOWN state.
Apr 15 2014 03:45:31-05:13 dgg62aslhw3i %%01IFNET/4/IF_STATE(l)[49]:Interface GigabitEthernet3/0/0 has turned into DOWN state.

Как открыть порты на коммутаторах Huawei?

Войдите в коммутатор и введите системный вид. Команда: системный вид. 2. Введите вид порта Ethernet, формат команды: номер интерфейса типа интерфейса.

6481354-3be8d6bac02e84ed.jpg

Переключатель Huawei для проверки статуса порта

1> Включите переключатель, подключите компьютер и войдите в режим пользователя;

2> введите «enable» или «en» для входа в привилегированный режим;

3> В привилегированном режиме введите «showinterfacef0 / 1» или «showintf0 / 1» для просмотра информации об интерфейсе f0 / 1;

4> В информации об интерфейсе содержится более релевантная информация, включая информацию о том, работает ли интерфейс (нет), MAC-адрес интерфейса, является ли интерфейс полнодуплексным или полудуплексным (Full-duplexorHalf-duplex), здесь интерфейс f0 / 1 Находится во включенном состоянии (вверх) и в дуплексном режиме (Full-duplex);

5> Давайте снова просмотрим информацию об интерфейсе f0 / 2 и введем «showintf0 / 2», где интерфейс f0 / 2 не работает и полудуплекс;

Команды и инструкции для коммутаторов Huawei для просмотра статуса порта

текущее состояние Текущее состояние порта: DOWN указывает, что порт закрыт, а UP указывает, что порт открыт;

Скорость ввода за последние 300 секунд: скорость передачи в байтах и ​​скорость сообщений, полученных портом за первые 5 минут;

Режим работы порта в режиме порта: COMMON COPPER — режим электрического порта, COMMON FIBER — режим оптического порта;

Скорость вывода за последние 300 секунд: скорость передачи в байтах и ​​скорость передачи пакетов, отправленных портом за первые 5 минут;

Порт коммутатора: показывает, что порт является портом уровня 2. Если порт является портом уровня 3, он отображается здесь как Порт маршрутизации;

Пиковая скорость ввода 0: максимальная скорость входящих пакетов и время достижения максимальной скорости;

Текущее состояние линейного протокола Состояние протокола соединения порта: DOWN указывает, что уровень протокола соединения порта неисправен или порт не настроен с IP-адресом, а UP указывает, что протокол соединения порта находится в нормальном состоянии запуска;

Пиковая выходная скорость 0: максимальная скорость пакетов исходящего порта и время достижения максимальной скорости;

Описание: описание информации о порте;

Ввод: общее количество полученных сообщений, Ввод — общее количество отправленных сообщений;

Mdi: тип сетевого кабеля порта;

Discard: количество отброшенных пакетов, обнаруженных портом во время обнаружения физического уровня;

Аппаратный адрес: MAC-адрес устройства;

Total Error: общее количество пакетов ошибок, обнаруженных портом во время обнаружения физического уровня;

PVID: номер VLAN по умолчанию для порта;

CRC: количество пакетов ошибок CRC, полученных портом;

Скорость; текущая скорость порта;

DropEvents: количество пакетов, потерянных из-за пакетов, полученных портом из-за переполнения памяти (GBP full) или обратного давления (Back Pressure);

Дуплексный режим работы дуплексного порта: FULL — полнодуплексный режим, HALF — полудуплексный режим;

Alignments: количество пакетов с неправильным выравниванием кадров, полученных портом;

TPID показывает типы фреймов, поддерживаемые портом: по умолчанию TPID равен 0x8100, что означает фреймы 802.1Q (это поле отображается только в том случае, если тип порта является портом уровня 2)

Символы: количество пакетов с неправильной кодировкой, полученных портом;

Максимальная длина кадра: самый длинный кадр, разрешенный портом;

Очищенные буферы: количество пакетов, которые слишком долго находились в буфере очереди и устарели, когда порт отправляет пакеты;

Формат отправки IP-пакетов Форматы отправки IP-протокола: включая PKTFMT_ETHNT_2, Ethernet_802.3 и Ethernet_SNAP;

Порог использования полосы пропускания ввода / вывода: порог использования полосы пропускания ввода / вывода;

Состояние автосогласования порта согласования: ENABLE означает, что для порта включено автосогласование, а DISABLE означает, что для порта отключено автосогласование;

Loopback: конфигурация обратной связи порта;

Я надеюсь, что предыдущий контент будет полезен для вас, чтобы использовать подключение оптического модуля коммутатора. Для некоторого контента, пожалуйста, обратитесь к онлайн-информации. Если что-то не так, пожалуйста, исправьте это, спасибо за вашу поддержку!

соответствующее предложение:Оптический модуль Huawei

Интернет-магазин: shop1458197280610.1688.com/

Причина — в случае выполнения моргнут комбо порты , как следствие может не сойтись spanning tree или может включиться порт, который не должен включаться.

IP адрес и vlan управления

D-Link

show switch

SNR и DCN

sh ip interface brief

Huawei

display ip interface brief

TP-Link

sh ip interface brief

Orion

show interface ip

Утилизация CPU коммутатора

D-Link

show utilization cpu

SNR и DCN

sh cpu utilization 

sh cpu usage 

sh cpu monitor   

Huawei

display cpu-usage

TP-Link

sh cpu-utilization 

Orion

sh cpu-utilization 

Просмотр информации по состоянию всех портов коммутатора

D-Link

sh ports

SNR и DCN

sh interface ethernet status

Huawei

display interface brief

TP-Link

sh interface status

Orion

sh interface port

Просмотр информации по состоянию определённого порта коммутатора

D-Link

sh ports 1

SNR и DCN

sh interface ethernet 1/0/1

Huawei

display interface Ethernet 0/0/1

TP-Link

sh interface status gigabitEthernet 1/0/2

Orion

sh interface port 1

Описание состояния порта с заведённым на коммутаторе описанием

D-Link

SNR и DCN

sh interface ethernet status | i 1/0/1

Huawei

display interface description | i TEST

TP-Link

Orion

sh interface port description | i Lenovo

Наличие mac-адреса в таблице mac-адресов коммутатора с информацией о том в каком влане и в каком порту он приходит.

D-Link

show fdb mac_address B8-27-EB-C0-E0-C1

SNR и DCN

sh mac-address-table address 50-c0-b1-ad-7b-0d

Huawei

display mac-address e48d-0c0a-30e5

TP-Link

sh mac address-table address 9c:d6:00:00:00:55

Orion

sh mac-address-table l2-address | i 001A.0001.001A

Наличие mac-адреса в определённом порту коммутатора

D-Link

SNR и DCN

sh mac-address-table interface ethernet 1/0/1

Huawei

display mac-address GigabitEthernet 0/0/1

TP-Link

sh mac address-table interface gigabitEthernet 1/0/2

Orion

sh mac-address-table l2-address port 1

Ошибки на порту 

D-Link

SNR и DCN

sh interface ethernet 1/0/1 | i error

Huawei

display interface GigabitEthernet 0/0/1 | i CRC

TP-Link

sh interface counters gigabitEthernet 1/0/2
смотрим Rx Alignment

Orion

sh interface port 1 statistics

Утилизация портов коммутатора

D-Link

SNR и DCN

sh interface ethernet counter rate 

sh interface ethernet counter packet

Huawei

TP-Link

Orion

not found

Информация по текущему трафику в порту коммутатора

D-Link

SNR и DCN

sh interface ethernet 1/25 | i rate

Huawei

display interface Ethernet 0/0/1 | i rate

TP-Link

Orion

not found

Просмотр журнала событий коммутатора(логи)

D-Link

SNR и DCN

Huawei

TP-Link

Orion

sh log file

Информация о текущем состоянии петлеопределения для всех портов коммутатора

D-Link

show loopdetect ports all

SNR и DCN

Huawei

TP-Link

sh loopback-detection interface

Orion

sh loopback-detection

Просмотр vlan’ов, имеющихся на данном коммутаторе

D-Link

SNR и DCN

Huawei

TP-Link

Orion
sh vlan

Просмотр ARP таблицы коммутатора

D-Link

SNR и DCN

Huawei

TP-Link

Orion

sh arp

Кабельная диагностика

D-Link

SNR и DCN

virtual-cable-test interface ethernet 1/0/1

Huawei

display virtual-cable-test Ethernet 0/0/18

TP-Link

show cable-diagnostics careful interface gigabitEthernet 1/0/2 — без перезапуска порта

show cable-diagnostics interface gigabitEthernet 1/0/2 — с перезапуском порта

Orion

Тут необходимо сначала произвеcти тест , затем вычитать результат.

Alpha-A28E# test cable-diagnostics port-list 1

Test on port 1 will affect link state and traffic Test will take a few seconds to run on these ports. Use ‘show cable-diagnostics’ to read the test results.

Alpha-A28E#show cable-diagnostics port-list 1

Port Attribute Time RX Stat RX Len(m) TX Stat TX Len(m)

1 Issued 06/07/2017 05:52:34 Normal 0 Normal0

Spanning Tree

D-Link

sh stp

SNR и DCN

Huawei

display stp 

TP-Link

Orion

sh spanning-tree

Посмотреть IGMP Группы

D-Link

SNR и DCN

sh ip igmp snooping vlan <multicast vlanID>

Huawei

display igmp-snooping port-info

TP-Link

sh ip igmp snooping groups

Orion

sh mvr vlan <client vlan id> member 

Команды config

Чтобы выполнить команды на коммутаторах SNR , DCN , Huawei, TP-Link , Oreon необходимо войти в режим конфигурации.

Вход в режим конфигурации:

SNR, DCN, TP-Link, Oreon 

config

Huawei 

system-view

Отключение/Включение порта коммутатора

D-Link

config ports 1 state disable

config ports 1 state enable

SNR и DCN

(config)#interface ethernet 1/0/5

(config-if-ethernet1/0/5)#shut 

(config-if-ethernet1/0/5)#no shut

Huawei

[Quidway]int Ethernet 0/0/18

[Quidway-Ethernet0/0/18]shutdown 

[Quidway-Ethernet0/0/18]undo shutdown

TP-Link

(config)#interface gigabitEthernet 1/0/2 

(config-if)#shut 

Orion

(config)#interface port 2

(config-port)#shut 

(config-port)#no shut

Выставление скорости порта

D-Link

config ports 5 speed 10_half

config ports 5 speed auto

SNR и DCN

(config)#interface ethernet 1/0/5

(config-if-ethernet1/0/5)#speed-duplex force10-half

Huawei

[Quidway]int Ethernet 0/0/18

[Quidway-Ethernet0/0/18]undo negotiation auto 

[Quidway-Ethernet0/0/18]speed 10 

[Quidway-Ethernet0/0/18]duplex half

TP-Link

(config)#interface gigabitEthernet 1/0/2

(config-if)#speed 10 

Orion

(config)#interface port 2

(config-port)#speed 10 

(config-port)#duplex half

Выставление приоритета на порту

D-Link

config 802.1p default_priority <номер порта> 5

SNR и DCN

(config)#interface ethernet 1/0/5

(config-if-ethernet1/0/5)#mls qos cos 5

Huawei

TP-Link

(config)#interface gigabitEthernet 1/0/2

(config-if)#qos 5

Orion

(config)#interface port 2

(config-port)#mls qos port-priority 5

Команды сброса

Удаление информации по mac-адресам в определенном порту

D-Link

SNR и DCN

clear mac-address-table dynamic interface ethernet 1/0/1

Huawei

<Quidway>system-view

[Quidway]undo mac-address dynamic Ethernet 0/0/3

TP-Link

(config)#interface gigabitEthernet 1/0/2 

(config-if)#clear mac address-table dynamic

Orion

Alpha-A28E#config

Alpha-A28E(config)#clear mac-address-table dynamic vlan 3890

Для Orion не нашёл пока как сбросить на определенном порту.

Несколько часто используемых команд:

system-view — привелегированый режим
save – запись текущих настроек в энергонезависимую память устройства;
undo — отмена команды
display this — показ текущей конфигурации
display current-configuration – вывод текущего файла конфигурации
quit — выход


Создание vlan

vlan 1
description примечание для пользователей
quit

vlan 2
description для управления
management-vlan
quit

vlan 3
description супервлан
supervlan
aggregate-vlan
access-vlan 1 2
management-vlan
quit

Добавление интерфейса в vlan

interface Vlanif 1
ip address 192.168.1.2 255.255.255.0
quit


Маршрут по умолчанию

ip route 0.0.0.0 0.0.0.0 192.168.1.1


SNMP
Настроим SNMP:

snmp-agent
snmp-agent sys-info version v2c
snmp community read КОМЬЮНИТИ

Чтобы принимались простые community введем команду:

snmp-agent community complexity-check disable


Http

http secure-server enable
http server enable
display http server

Если возникнет ошибка «Error: Starting the HTTP server failed.«,
то значет не загружен web пакет который является web-интерфейсом (http сервером).

Посмотрим какие есть файлы в памяти коммутатора следующей командой
(нам нужен файл заканчивающийся расширением .web.zip):

dir

Если файла нету, то его необходимо закачать в память коммутатора.
Когда он будет находится в памяти коммутатора, запустим его командой:

http server load flash:/имя_файла.web.zip

Теперь включим его командами:

http secure-server enable
http server enable
http secure-server ssl-policy 1


Таблица аналогов CISCO-вских команд у HUAWEI

CISCO HUAWEI
ping ping
traceroute tracert
show display
show interfaces display interface
Show ip route display routing-table
Show ip interface Display ip interface
Show version Display version
Show ip bgp Display bgp routing-table
Show clock Display clock
Show port Display port-mapping
Show flash dir flash: (on user view mode)
Show logging Display logbuffer
Show snmp Display snmp-agent statistics
Show frame-relay pvc Display fr pvc-info
Show users Display users
Show terminal length screen-length disable
undo screen-length disable
enable Super
disable Super 0 (number is privilege level from 0 to 3, where 3 is default and equivalent to “enable” on Cisco)
Conf t System-view
exit quit
end return
Show policy-map interface Display qos policy interface
send send (on user view mode)
write terminal (sh run) display current-configuration
Sh startup Display saved-configuration
[no equivalent: shows the files  used for startup] Display startup
Write erase Reset saved-configuration
Write mem (or wr or copy run  start) save
clear counters reset (on user view mode)
Reset counters interface
? ?
telnet telnet
Enable secret (conf mode) Super pass cipher (system mode)
Term mon term debu
clock clock
no undo
debug / no debug debugging / undo debugging
copy running-config Save safely
terminal monitor terminal monitor
terminal length screen-length disable
undo screen-length disable
terminal no monitor undo terminal monitor
clear counters reset counters interface
clear interface reset counters interface
clear crypto ipsec sa
ike sa
clear access-list counters reset acl counter all
reload reboot
shutdown shutdown
boot boot bootrom
Aaa hwtacacs scheme
terminal no monitor undo terminal monitor
tacacs-server hwtacacs scheme (in conf  command)
snmp-server tftp-server (in conf command)
router bgp bgp
Router rip rip
ip tacacs hwtacacs nas-ip (this  command doesn’t exist !!!)
mtu Mtu (this command doesn’t exist !!!)
clear ip cef reset ip fast-forwarding
clear ip route * reset ip routing-table statistics protocol all
Clear ip bgp Reset bgp all
Show tech display diagnostic-information
Sh ip nat translation Display nat session
Show Controller display controller (but not relevant for non-modular chassis)
show dsl int atm 0 display dsl status interface Atm 2/0
sho atm pvc Display atm pvc-info
debug pvc nego Debug atm all (very dangerous – might crash router)
sho crypto isakmp sa Display ike sa
sho crypto isakmp key Display ike peer
sho crypto isakmp police Display ike proposal

Источники:
Раз — ixnfo.com
Два — ixnfo.com
Три — tokarchuk.ru

Категории: Huawei

Метки: huawei, сети

How to obtain logs and alarms for Huawei switches, below is the details:

When a switch is faulty, collect logs and alarms on the device immediately. These logs and alarms help you know what happened during device operation and where the fault occurred.

A switch can save logs and alarms in log files. The log file saving method varies depending on product models and versions.

  • All fixed switches running V200R002C00 or V200R003C00, and S5700SI, and S5700-EI, and S6700 switch running V200R005C00 or a later version:
    • User logs are created after the switch restarts or the save logfile command is executed. These logs are saved in the syslogfile folder in standard zip format. The file name of a log file starts with syslogfile, followed by the time when the file is created, for example, syslogfile-2013-06-26-09-59-10.zip.
    • Important information log files are created after a system restart and on 00:00 every day. These logs are saved in the resetinfo folder in standard zip format. The name of an important information log file created after a system restart starts with reset-sysinfo, for example, reset-sysinfo-2013-06-06-23-40-32.zip. The name of an important information log file automatically created on 00:00 starts with sysinfo, for example, sysinfo-2013-06-20-00-00-29.zip.
  • S1720, S2720, S2750, S5700LI, S5700S-LI, S5710EI, and S5710HI (such as S5700-28C-SI, S5710-52C-EI)running V200R005C00 or a later version:
    • The system periodically saves information in the log buffer to a user log file (log.log) and a diagnostic log file (log.dblg), which are saved in the logfile folder. When the two log files exceed the specified size, the system compresses them into zip packages and names the compressed files date time.log.zip and date time.dblg.zip, for example, 2013-08-14.04-55-23.log.zip and 2013-09-05.05-15-23.dblg.zip.
    • Important information log files are created after a system restart and on 00:00 every day. These logs are saved in the resetinfo folder in standard zip format. The name of an important information log file created after a system restart starts with reset-sysinfo, for example, reset-sysinfo-2013-06-06-23-40-32.zip. The name of an important information log file automatically created on 00:00 starts with sysinfo, for example, sysinfo-2013-06-20-00-00-29.zip.

Perform the following steps to obtain logs and alarms from log files:

  1. Run the save logfile command to save information in the log buffer to a log file.
  2. Upload all files in flash:/syslogfile/ (or flash:/logfile/ in V200R005C00 and later versions) and flash:/resetinfo/ to your computer through FTP or TFTP.

NOTE:

If a fault occurs in a stack, for example, the stack splits or restarts unexpectedly, collect log files on all the member switches.

The more information about technical support you can consult with our engineer the e-mail address is as below:

support@huanetwork.com

More related:

Huawei switch password recovery

Huawei switch port isolation configuration

Power Supplies Supported by the Huawei S5700

Setting the POE Parameter for Huawei Switches

Obtaining the Equipment Serial Number on Huawei Switches

Понравилась статья? Поделить с друзьями:
  • Как посмотреть ошибки на порту d link
  • Как посмотреть ошибки на порту cisco
  • Как посмотреть ошибки на поло
  • Как посмотреть ошибки на пассат б7
  • Как посмотреть ошибки на панели калина