To enable the
logging of link-status system logging (syslog) messages on a specific interface
for virtual interfaces and subinterfaces, use the
logging
events
link-status command in the appropriate interface
or subinterface mode. To disable the logging of link status messages, use the
no form of this
command.
logging events link-status
no logging events link-status
Syntax Description
This command has no keywords or arguments.
Command Default
The logging of
link-status messages is disabled for virtual interfaces and subinterfaces.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
Release 3.7.2
|
This command
was introduced.
|
Usage Guidelines
When the logging of
link-status messages is enabled, the router can generate a high volume of
link-status up and down system logging messages. The
logging events
link-status command enables messages for virtual interfaces and
subinterfaces only.
The
logging events link-status
command allows you to enable and disable logging on a
specific interface for bundles, tunnels, and VLANs.
Use the
no
logging
events
link-status command to disable the logging of
link-status messages.
![](https://www.cisco.com/content/dam/en/us/td/i/templates/note.gif)
Note
|
Enabling the
logging events
link-status command on a specific interface overrides the global
configuration set using the
logging events link-status command in global configuration
mode.
|
Task ID
Task ID
|
Operations
|
logging
|
read, write
|
Examples
This example shows
the results of turning on logging for a bundle interface:
RP/0/RSP0/CPU0:router(config)# int bundle-GigabitEthernet 1
RP/0/RSP0/CPU0:router(config-if)# logging events link-status
RP/0/RSP0/CPU0:router(config-if)# no shutdown
RP/0/RSP0/CPU0:router(config-if)# commit
LC/0/4/CPU0:Jun 29 12:51:26.887 : ifmgr[142]:
%PKT_INFRA-LINK-3-UPDOWN : Interface GigabitEthernet0/4/0/0, changed state to Up
LC/0/4/CPU0:Jun 29 12:51:26.897 : ifmgr[142]:
%PKT_INFRA-LINEPROTO-6-UPDOWN : Line protocol on Interface GigabitEthernet0/4/0/0, changed state to Up
RP/0/RSP0/CPU0:router(config-if)#
RP/0/RSP0/CPU0:router(config-if)# shutdown
RP/0/RSP0/CPU0:router(config-if)# commit
LC/0/4/CPU0:Jun 29 12:51:32.375 : ifmgr[142]:
%PKT_INFRA-LINK-3-UPDOWN : Interface GigabitEthernet0/4/0/0, changed state to Down
LC/0/4/CPU0:Jun 29 12:51:32.376 : ifmgr[142]:
%PKT_INFRA-LINEPROTO-6-UPDOWN : Line protocol on Interface GigabitEthernet0/4/0/0, changed state to Down
This example shows
a sequence of commands for a tunnel interface with and without logging turned
on:
RP/0/RSP0/CPU0:router(config)# int tunnel-te 1
RP/0/RSP0/CPU0:router(config-if)# commit
RP/0/RSP0/CPU0:router(config-if)# shutdown
RP/0/RSP0/CPU0:router(config-if)# commit
RP/0/RSP0/CPU0:router(config-if)# no shutdown
RP/0/RSP0/CPU0:router(config-if)# commit
RP/0/RSP0/CPU0:router(config-if)# logging events link-status
RP/0/RSP0/CPU0:router(config-if)# commit
RP/0/RSP0/CPU0:router(config-if)# shutdown
RP/0/RSP0/CPU0:router(config-if)# commit
RP/0/RSP0/CPU0:Jun 29 14:05:57.732 : ifmgr[176]:
%PKT_INFRA-LINK-3-UPDOWN : Interface tunnel-te1, changed state to Administratively Down
RP/0/RSP0/CPU0:Jun 29 14:05:57.733 : ifmgr[176]:
%PKT_INFRA-LINEPROTO-6-UPDOWN : Line protocol on Interface tunnel-te1, changed state to Administratively Down
RP/0/RSP0/CPU0:router(config-if)# no shutdown
RP/0/RSP0/CPU0:router(config-if)# commit
RP/0/RSP0/CPU0:Jun 29 14:06:02.104 : ifmgr[176]:
%PKT_INFRA-LINK-3-UPDOWN : Interface tunnel-te1, changed state to Down
RP/0/RSP0/CPU0:Jun 29 14:06:02.109 : ifmgr[176]:
%PKT_INFRA-LINEPROTO-6-UPDOWN : Line protocol on Interface tunnel-te1, changed state to Down
This example shows
the same process for a subinterface:
RP/0/RSP0/CPU0:router(config)# int gigabitEthernet 0/5/0/0.1
RP/0/RSP0/CPU0:router(config-subif)# commit
RP/0/RSP0/CPU0:router(config-subif)# shutdown
RP/0/RSP0/CPU0:router(config-subif)# commit
RP/0/RSP0/CPU0:router(config-subif)# no shutdown
RP/0/RSP0/CPU0:router(config-subif)# commit
RP/0/RSP0/CPU0:router(config-subif)# logging events link-status
RP/0/RSP0/CPU0:router(config-subif)# commit
RP/0/RSP0/CPU0:router(config-subif)# shutdown
RP/0/RSP0/CPU0:router(config-subif)# commit
LC/0/5/CPU0:Jun 29 14:06:46.710 : ifmgr[142]:
%PKT_INFRA-LINEPROTO-6-UPDOWN : Line protocol on Interface GigabitEthernet0/5/0/0.1, changed state to Administratively Down
LC/0/5/CPU0:Jun 29 14:06:46.726 : ifmgr[142]:
%PKT_INFRA-LINK-3-UPDOWN : Interface GigabitEthernet0/5/0/0.1, changed state to Administratively Down
RP/0/RSP0/CPU0:router(config-subif)# no shutdown
RP/0/RSP0/CPU0:router(config-subif)# commit
LC/0/5/CPU0:Jun 29 14:06:52.229 : ifmgr[142]:
%PKT_INFRA-LINK-3-UPDOWN : Interface GigabitEthernet0/5/0/0.1, changed state to Up
LC/0/5/CPU0:Jun 29 14:06:52.244 : ifmgr[142]:
%PKT_INFRA-LINEPROTO-6-UPDOWN : Line protocol on Interface GigabitEthernet0/5/0/0.1, changed state to Down