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.
Причина — в случае выполнения моргнут комбо порты , как следствие может не сойтись 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 не нашёл пока как сбросить на определенном порту.
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:
- Run the save logfile command to save information in the log buffer to a log file.
- 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
Описание
Использование ONT терминала ставит определённые обязательства по его содержанию и обслуживанию.
Во время использования абонентского терминала могут возникнуть различные проблемы и ошибки.
Для того, чтобы их исправить необходимо применить некоторые команды.
Команды устранения неполадок OLT Huawei:
Показать сервисный порт:
Huawei-OLT#config
Huawei-OLT (config)#display service-порт 500
Чтобы показать порт обслуживания по портам:
Huawei-OLT (config)#display service-port port 0/0/6 ont 0
[Здесь PortID: 6, ONTID: 0]
Чтобы показать информацию ONT:
Huawei-OLT (config)#интерфейс gpon 0/0
Huawei-OLT (config-if-gpon-0/0)#display ont info 6 0
Чтобы показать состояние порта [Порт вверх/вниз]:
Huawei-OLT (config-if-gpon-0/0)#display ont port state 6 0 eth-port all
Huawei-OLT (config-if-gpon-0/0)#display ont port attribute 6 0 eth 1
Чтобы Показать Статистику:
Huawei-OLT (config-if-gpon-0/0)#показать статистику ont-eth 6 0 ont-port 1
Чтобы Показать Трафик:
Huawei-OLT (config-if-gpon-0/0)#display ont traffic 6 0 1
Чтобы Показать Оптическую Информацию:
Huawei-OLT (config-if-gpon-0/0)#display ont optical-info 6 0 [6=порт, 0=идентификатор ONT]
Чтобы показать MAC-адрес:
Huawei-OLT#display mac-address port 0/0/6
Huawei-OLT#display mac-адрес vlan 2816
Huawei-OLT#display mac-address service-порт 500
Чтобы сбросить ONT:
Huawei-OLT (config-if-gpon-0/0)#ont reset 6 0
Добавить ip на интерфейс vlan:
Huawei-OLT#config
Huawei-OLT (config)#интерфейс vlanif 2816
Huawei-OLT (config-if-vlanif2816)#ip-адрес 128.144.10.126 255.255.0.0
Команды траблшутинга / просмотра
| mode | Команда | Описание |
|---|---|---|
| > / ] | display current-configuration | показывает текущую конфигурацию устройства, если на коммутаторе дописать «configuration» то отобразится вся конфигурация кроме портов. |
| > / ] | display interface brief | показывает список и состояние интерфейсов |
| > / ] | display elabel | показывает информацию о железе (серийные номера, модели компонентов и т.д.) |
Базовые команды конфигурации
| mode | Команда | Описание |
|---|---|---|
| > | system-view | переход в режим конфигурации |
