device# configure terminal
device(config)# interface Ethernet 0/2
device(conf-if-eth-0/2)# delay-link-event 2 down
You can specify a multiplier value from 1 to 200 for delay times from 50 ms to 10 seconds and a port event of up, down, or both.
device(conf-if-eth-0/2)# do show running-config internet ethernet 0/2 interface Ethernet 0/2 ... delay-link-event 2 down no shutdown !
The following example shows the steps in the previous configuration.
device# configure terminal device(config)# interface Ethernet 0/2 device(conf-if-eth-0/2)# delay-link-event 2 down