03-30-2023 12:56 AM - edited 03-30-2023 12:57 AM
When connecting between Switch1 and Switch2 of Nexus9000 with different VLANs assigned to each other,
I assumed that the Native VLAN mismatch log (see below) would be output like the Catalyst switch,
However, nothing was output.
Is it correct to assume that VLAN mismatch is detected on NX-OS as well? Also, if there is a way to output the VLAN mismatch log, please let us know.
CDP is enabled by default.
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (20), with XXX FastEthernet0/24 (10)
<Switch1>
interface Ethernet 1/1
switchport access vlan 10
<Switch2>
interface Ethernet 1/1
switchport access vlan 20
03-31-2023 01:38 AM
Hello @YEH
In NX-OS, the [CDP-4-NATIVE_VLAN_MISMATCH] message is sent when there is a native VLAN mismatch on a trunk link. If a switchport is configured as an access port and not a trunk, then a native VLAN mismatch will not be detected or reported.
In your example, both Ethernet 1/1 interfaces on Switch1 and Switch2 are configured as access ports with VLANs 10 and 20 respectively. Therefore, there is no native VLAN mismatch, as the native VLAN is only relevant for trunk links.
If you want to detect VLAN mismatches on access ports in NX-OS, you can use the "show interface status" command to check the VLAN configuration of the interfaces. This command will display a list of interfaces and their respective VLAN assignments, making it easy to spot any mismatches.
03-31-2023 07:03 AM
Hi, M02@rt37
Thank you for informative information.
Thanks to you, I was convinced.
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