RP/0/0/CPU0:router(config-if)#
logging events link-status
RP/0/0/CPU0:router(config-if)#
no shutdown
RP/0/0/CPU0:router(config-if)#
commit
LC/0/4/CPU0:Jun 29 12:51:26.887 : ifmgr[142]:
%PKT_INFRA-LINK-3-UPDOWN : Interface POS0/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 POS0/4/0/0, changed state to Up
RP/0/0/CPU0:router(config-if)#
RP/0/0/CPU0:router(config-if)#
shutdown
RP/0/0/CPU0:router(config-if)#
commit
LC/0/4/CPU0:Jun 29 12:51:32.375 : ifmgr[142]:
%PKT_INFRA-LINK-3-UPDOWN : Interface POS0/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 POS0/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/0/CPU0:router(config)#
int tunnel-te 1
RP/0/0/CPU0:router(config-if)#
commit
RP/0/0/CPU0:router(config-if)#
shutdown
RP/0/0/CPU0:router(config-if)#
commit
RP/0/0/CPU0:router(config-if)#
no shutdown
RP/0/0/CPU0:router(config-if)#
commit
RP/0/0/CPU0:router(config-if)#
logging events link-status
RP/0/0/CPU0:router(config-if)#
commit
RP/0/0/CPU0:router(config-if)#
shutdown
RP/0/0/CPU0:router(config-if)#
commit
RP/0/0/CPU0:Jun 29 14:05:57.732 : ifmgr[176]:
%PKT_INFRA-LINK-3-UPDOWN : Interface tunnel-te1, changed state to Administratively Down
RP/0/0/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/0/CPU0:router(config-if)#
no shutdown
RP/0/0/CPU0:router(config-if)#
commit
RP/0/0/CPU0:Jun 29 14:06:02.104 : ifmgr[176]:
%PKT_INFRA-LINK-3-UPDOWN : Interface tunnel-te1, changed state to Down
RP/0/0/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/0/CPU0:router(config)#
int gigabitEthernet 0/5/0/0.1
RP/0/0/CPU0:router(config-subif)#
commit
RP/0/0/CPU0:router(config-subif)#
shutdown
RP/0/0/CPU0:router(config-subif)#
commit
RP/0/0/CPU0:router(config-subif)#
no shutdown
RP/0/0/CPU0:router(config-subif)#
commit
RP/0/0/CPU0:router(config-subif)#
logging events link-status
RP/0/0/CPU0:router(config-subif)#
commit
RP/0/0/CPU0:router(config-subif)#
shutdown
RP/0/0/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]:
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
320
OL-24735-01
Logging Services Commands
logging events link-status (interface)