Command Reference Interface Commands
Related
Commands
Command Description
clear interface
Reset the hardware.
show interfaces
Show the interface information.
Platform
Description
N/A
snmp trap link-status
You can set whether to send LinkTrap on a port. If the function is enabled, the SNMP will send the
LinkTrap when the link status of the port changes. The no form of this command prevents the SNMP
from sending the LinkTrap.
snmp trap link-status
no snmp trap link-status
Parameter
Description
Parameter Description
N/A N/A
Defaults
This function is enabled. If the link status of the port changes, the SNMP sends the LinkTrap.
Command
Mode
Interface configuration mode.
Usage Guide
For an interface (for instance, Ethernet interface, AP interface, and SVI interface), this command sets
whether to send LinkTrap on the interface. If the function is enabled, the SNMP sends the LinkTrap
when the link status of the interface changes.
Configuration
Examples
Do not send LinkTrap on the interface:
Ruijie(config)# interface gigabitEthernet 1/1
Ruijie(config-if)# no snmp trap link-status
Following configuration shows how to configure the interface to forwarding Link trap:
Ruijie(config)# interface gigabitEthernet 1/1
Ruijie(config-if)# snmp trap link-status
Related
Commands
Command Description
snmp trap link-status
Enable sending LinkTrap on the interface.
no snmp trap link-status
Disable sending LinkTrap on the interface.
Platform
Description
N/A