08-03-2021 02:40 AM
Hello,
In a client campus network there are two switches connected via a trunk link with a different native vlan:
(SW1 with native vlan 7 and SW2 with native vlan 1),
By looking at the logs, there isn't any native vlan mismatch log, in the interfaces I found that interface on SW2 (with NV: 1) which is connected to SW1 (NV:7) contains the following command "spanning-tree bpdufilter enable".
I deleted this command and these messages started appearing in both switches:
%CDP-4-NATIVE_VLAN_MISMATCH
%SPANTREE-2-BLOCK_PVID_LOCAL
- As far as I know, BPDU Filter is used to stop an interface from generation BPDUs (for some STP puspose)
- Can anyone explain to me how does BPDU Filter prevent a native VLAN mistamch from happening ??
Any help would be much appreciated
Thank you all
08-03-2021 02:45 AM
check this may give some examples :
08-03-2021 04:22 AM
OK,
config the trunk with disable DTP prevent the both SW to detect native VLAN mismatch because the DTP will inform other SW about native VLAN it use.
BUT
STP also do the same
config the port with prevent it to send BPDU make both SW no detect the native VLAN mismatch.
NOW your case disable STP and DTP so the mismatch not detect
after enable STP in port immediately SW detect mismatch.
08-03-2021 06:36 AM
@MHM Cisco World As I understand from your reply, the command "Spanning-tree bpdufilter enable" doesn't prevent the mismatch, So the mismatch is still happening but the switches can't detect it right ?
08-03-2021 08:39 AM - edited 08-03-2021 08:40 AM
Is there any reason you need different native vlan each switch (best practice you should configure the same Native VLAN on the both side of a Trunk), if not i suggest to match native vlan to get rid of this error.
or that is the requirement try below :
interface Gi t0/1 <<-- change the trunk interface as per the environemtn
switchport trunk native vlan XXXX
switchport mode trunk
no cdp enable
08-03-2021 09:48 AM - edited 08-03-2021 09:54 AM
Yes you are right, SW detect mismatch either through DTP or STP, and both you disabled
08-03-2021 06:55 AM
Hello
@Hamza DEHAL wrote:
I deleted this command and these messages started appearing in both switches:
%CDP-4-NATIVE_VLAN_MISMATCH
%SPANTREE-2-BLOCK_PVID_LOCAL
Disbale cdp on the nterfaces
int x/x
no cdp enable
08-03-2021 05:24 PM
Very strange indeed; what about CDP ?
is this real gear or virtual lab like CML ? Although they are getting better, I would not trust any virtual IOS like IOL or IOLv2 from CML.
Regards, ML
**Please Rate All Helpful Responses **
08-04-2021 12:56 AM
@Martin L it is not a lab, it is real gear
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