set neighbors warning-detection

Use this command to enable protocol checking for port mis-configuration (warning detection) with its neighbor.

Syntax

set neighbors warning-detection warning-type [port-string] {enable | disable}

Parameters

warning-type The following warning types are supported:
  • ciscodp-duplex – Detect neighbor differences in duplex; defaults to disabled.
  • ciscodp-max-frame – Detect neighbor differences in MTU; defaults to disabled.
  • lldp-v2-mac-phy – Detect neighbor differences in speed and duplex; defaults to enabled.
  • lldp-v2-power-via-mdi – Detect neighbor differences in power class; defaults to enabled.
  • lldp-v2-max-frame – Detect neighbor differences in MTU; defaults to enabled
  • lldp-v2-lacp – Detect neighbor differences in LACP status; defaults to disabled.
  • lldp-v2-pfc – Detect neighbor differences in PFC status; defaults to disabled.
port-string (Optional) Enables neighbor warning detection on the specified or range of ports. For a detailed description of possible port-string values, refer to the S-, K-, and 7100 Series Configuration Guide.
enable Enables the protection of neighbor configuration differences for the specified warning type.
disable Disables the protection of neighbor configuration differences for the specified warning type.

Defaults

  • If port-string is not specified, neighbor warning detection is enabled on all ports for the specified warning type.
  • ciscodp-duplex defaults to disabled.
  • ciscodp-max-frame defaults to disabled.
  • lldp-v2-mac-phy defaults to enabled.
  • lldp-v2-power-via-mdi defaults to enabled.
  • lldp-v2-max-frame defaults to enabled
  • lldp-v2-lacp defaults to disabled.
  • lldp-v2-pfc defaults to disabled.

Mode

All command modes.

Usage

Use show neighbors warning-detection to display the state of each warning type on a port basis.

Use show neighbors warnings to display any warnings generated on all or a specified port.

Examples

This example shows how to enable the detect neighbor differences in MTU neighbor warning on all ports:

System(rw)->set neighbor warning-detection lldp-v2-max-frame enable