cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
62041
Views
23
Helpful
9
Replies

Inconsistent port type error on VLAN

buzzhani1
Level 1
Level 1

hello,

i have a NAT failover configured on my 1942 router. (The config file is attached to this post). Main link is ISP1 and secondary link is ISP2. The secondary link is connected to one of the EHWIC switchports at the back of the 1942 router. The configuration had been working well until i changed the ISP2 company. Now i am getting the following errors:

********
%SPANTREE-7-RECV_1Q_NON_TRUNK: Received 802.1Q BPDU on non trunk GigabitEthernet0/0/0 VLAN2.
%SPANTREE-7-BLOCK_PORT_TYPE: Blocking GigabitEthernet0/0/0 on VLAN2. Inconsistent port type.
********

From what i suspect, this is happening because the port from the ISP2 is in trunk mode and my own port is access mode as shown in the config file. I have tried to apply bpdufilter but i can’t get the command to work on the router.

I'd appreciate any help on how to fix this.

Thanks

1 Accepted Solution

Accepted Solutions

Hello,

what if you turn spanning tree off altogether for Vlan 2 ? You don't have any trunks configured on your router anyway, so there shouldn't be any loops...

no spanning-tree vlan 2

View solution in original post

9 Replies 9

Hello,

try and configure bpdu filter on GigabitEthernet0/0/0:

Zotel(config-if)#spanning-tree bpdufilter enable

Hello,

I tried that command already and It doesn't seem to work. I get the message "% Invalid input detected at '^' marker." each time in enter that command.

Hello,

I am not sure what is available in your IOS and on your platform, but try:

spanning-tree portfast bpdufilter

in global config mode,

or remove

spanning-tree portfast bpduguard (that puts your port in err-disable every time a BPDU is received).

Hello,

The command "spanning-tree portfast bpdufilter " in global config mode still gives the same "invalid input detected" error message. 

I have also removed "spanning-tree portfast bpduguard" but that didn't change anything.

Here's some info about my router:

Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.2(4)M4, RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2013 by Cisco Systems, Inc.

Hello,

what if you turn spanning tree off altogether for Vlan 2 ? You don't have any trunks configured on your router anyway, so there shouldn't be any loops...

no spanning-tree vlan 2

Hello, 

I'll try that out. I'm unable to test it at the moment. I'll write back immediately i do.

Thank you very much.

That was a great idea. it worked..!

No more "inconsistent port type errors". 

Thanks a lot

This worked for me as well. Thanks!

bobmead61
Level 1
Level 1

7-13-24 Just fought this error trying to get PNET_Lab working with a cisco image to cloud0 for internet access for my lab. the moral of the story is bpduguard will block trying to pick up an access vlan through a trunk on esxi. I even allowed Promiscuous mode, MAC address changes, Forged transmits to accept on the port group/VSwitch in ESXi Networking.

-3560-SW(config)#no spanning-tree vlan 68

 

Ethernet0/0 VLAN68.
*Jul 13 21:22:19.811: %SPANTREE-7-BLOCK_PORT_TYPE: Blocking Ethernet0/0 on VLAN0068. In
consistent port type.
SW#
*Jul 13 21:25:57.601: %SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking Ethernet0/0 on VLAN0
068. Port consistency restored.
 
 
SW#show ip int br
Interface              IP-Address      OK? Method Status                Protocol
Ethernet0/0            unassigned      YES unset  up                    up      
Ethernet0/1            unassigned      YES unset  up                    up      
Ethernet0/2            unassigned      YES unset  up                    up      
Ethernet0/3            unassigned      YES unset  up                    up      
Vlan68                 192.168.68.253  YES NVRAM  up                    up      
SW#ping 192.168.68.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.68.254, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 2/2/2 ms
SW#ping 192.168.68.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.68.254, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/2/2 ms
SW#