Configure Link Debounce time for all ports.
default link-debounce
link-debounce <0-300000>
no link-debounce
The default status is disabled for all ports when not initially configured. If you run the default link-debounce command, the default configuration is enabled with a value of 1,000 milliseconds. To return to the initial disabled state, you must run the no link-debounce command or set the Link Debounce timer to 0.
GigabitEthernet Configuration.