05-10-2020 11:50 PM
recently I have noticed my switches are showing log when I connect a new device to it.
The port is functioning well just odd to see these log.
LCP-SW1: Mar 01 09:01:09 GMT: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/1, changed state to up
LCP-SW1: Mar 01 09:01:21 GMT: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/1, changed state to down
LCP-SW1: Mar 01 09:01:28 GMT: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/1, changed state to up
the process is due STP or BPDU ?
Solved! Go to Solution.
05-11-2020 01:05 AM
Hello,
the NIC cards in your machines going to sleep because of inactivity. You could try and set the keepalive timer on your switchports to something higher than the highest interval seen in your logs, say 20 minutes. That woud mean that the switchport would not go down even after not getting a response from the connected device for 20 minutes, if that is what you want:
interface GigabitEthernet0/0
keepalive 1200
In addition, if you just want to get rid of the messages in your log, you can configure the logging discriminator below:
logging discriminator LINKSTATUS severity drops 3 facility drops LINK mnemonics drops UPDOWN
!
logging buffered discriminator LINKSTATUS 100000
logging console discriminator LINKSTATUS
logging monitor discriminator LINKSTATUS
logging host 192.168.100.10 discriminator LINKSTATUS
05-10-2020 11:54 PM
@owen2 wrote:
when I connect a new device to it.
IT is due to your NIC card.
05-11-2020 12:17 AM
Hi Leo,
the NIC card on my devices?
not the switches?
05-11-2020 01:03 AM - edited 05-11-2020 01:05 AM
NIC Card on your devices. That's how they behave.
Layer 1 goes down and then up. (Line down/up)
Layer 2 goes down and then up. (Protocol down/up)
The switch will reflect that behaviour and you'll see a link go down/up two times.
Same behaviour when a PC wakes up from sleep.
05-11-2020 01:05 AM
Hello,
the NIC cards in your machines going to sleep because of inactivity. You could try and set the keepalive timer on your switchports to something higher than the highest interval seen in your logs, say 20 minutes. That woud mean that the switchport would not go down even after not getting a response from the connected device for 20 minutes, if that is what you want:
interface GigabitEthernet0/0
keepalive 1200
In addition, if you just want to get rid of the messages in your log, you can configure the logging discriminator below:
logging discriminator LINKSTATUS severity drops 3 facility drops LINK mnemonics drops UPDOWN
!
logging buffered discriminator LINKSTATUS 100000
logging console discriminator LINKSTATUS
logging monitor discriminator LINKSTATUS
logging host 192.168.100.10 discriminator LINKSTATUS
05-11-2020 01:10 AM
Hi
A switch is in down state when there is nothing connected to the port or if its admin shutdown.
When a device is connected to a switchport .. %LINK-3-UPDOWN messages in the log show when the port status.
The messages are generated by the switch. Switchport status changes.. when a connected device goes sleep (e.g printer) or users shutdown their PC/laptops.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide