CLI ReferenceInterface Configuration Commands Interface Configuration Commands
snmp trap link-status
You can set up whether to send LinkTrap on an interface. If the function is enabled,
the SNMP will send the LinkTrap when the link status of the interface changes. The
no attribute of this command prevents the SNMP from sending the LinkTrap.
This function is enabled. If the link status of the port changes, the SNMP sends the
LinkTrap.
Interface configuration mode.
For an interface such as Ethernet interface, AP interface, and SVI interface, this
command determines 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.
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
Ruijie(config-if)# snmp
trap link-status
Enable sending LinkTrap on the interface.
Ruijie(config-if)# no snmp
trap link-status
Disable sending LinkTrap on the interface.