cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10646
Views
0
Helpful
10
Replies

Spaning Tree Blocking VLAN

vikas kumar
Level 1
Level 1

Dear All,

i am connected two routers with one switch.

SwitchA

interface FastEthernet1/0/1

Des Uplink to Switch B

switchport trunk encapsulation dot1q

switchport mode trunk

interface FastEthernet1/0/13

Des Rauter A

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface FastEthernet1/0/14

Des Router B

switchport trunk encapsulation dot1q

switchport mode trunk

Router A

interface FastEthernet0/1.131

description Switch A port 13

encapsulation dot1Q 131

Router B

interface FastEthernet0/1.130

description Switch A port 14

encapsulation dot1Q 130

when i connecte router to switch i get this error.

06:19:52: %SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan i

d 131 on FastEthernet1/0/14 VLAN130.

06:19:52: %SPANTREE-2-BLOCK_PVID_PEER: Blocking FastEthernet1/0/14 on VLAN0131.

Inconsistent peer vlan.

06:19:52: %SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet1/0/14 on VLAN0130.

Inconsistent local vlan.

06:19:52: %SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan i

d 130 on FastEthernet1/0/13 VLAN131.

06:19:52: %SPANTREE-2-BLOCK_PVID_PEER: Blocking FastEthernet1/0/13 on VLAN0130.

Inconsistent peer vlan.

06:19:52: %SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet1/0/13 on VLAN0131.

Inconsistent local vlan.

Switch#sh spanning-tree inconsistentports

Name                 Interface              Inconsistency

-------------------- ---------------------- ------------------

VLAN0130             FastEthernet1/0/13     Port VLAN ID Mismatch

VLAN0130             FastEthernet1/0/14     Port VLAN ID Mismatch

VLAN0131             FastEthernet1/0/13     Port VLAN ID Mismatch

VLAN0131             FastEthernet1/0/14     Port VLAN ID Mismatch

Please assist.

vikas kumar

10 Replies 10

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

Are both routers connected to the same switch?

If yes, you need to put each port in a different vlan

for example:

you need to create vlan 130 on the port that is connected to router-B and 131 to router-A

Can you post sh run from the switch?

HTH

hi Raza,

thanks for reply.

Please see Sh run of switch and router.

interface FastEthernet1/0/1

Des Uplink to Switch B

switchport trunk encapsulation dot1q

switchport mode trunk

interface FastEthernet1/0/13

Des Rauter A

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface FastEthernet1/0/14

Des Router B

switchport trunk encapsulation dot1q

switchport mode trunk

Router A

interface FastEthernet0/1.131

description Switch A port 13

encapsulation dot1Q 131

Router B

interface FastEthernet0/1.130

description Switch A port 14

encapsulation dot1Q 130

i am running encapsulation on router .

please assist

Hi,

Are ports 1/0/13 and 14 in different vlans?

have you created vlan 130 and 131 on the switch.

config t

vlan 130

config t

vlan 131

BTW, what you posted is not a full "sh run"

HTH

hi raza,

sorry i did not put full sh run

i have created VLANs on switch,

switch#sh run

00:20:50: %SYS-5-CONFIG_I: Configured from console by console

Building configuration...

Current configuration : 2541 bytes

!

version 12.2

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname switch

!

!

no aaa new-model

switch 1 provision ws-c3750-48p

system mtu routing 1500

ip subnet-zero

!

!

!

!

no file verify auto

spanning-tree mode pvst

spanning-tree extend system-id

!

vlan internal allocation policy ascending

!

interface FastEthernet1/0/1

description Uplink switch B

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface FastEthernet1/0/2

switchport access vlan 121

switchport mode access

!

interface FastEthernet1/0/3

!

interface FastEthernet1/0/4

!

interface FastEthernet1/0/5

switchport access vlan 122

switchport mode access

!

interface FastEthernet1/0/6

!

interface FastEthernet1/0/7

!

interface FastEthernet1/0/8

!

interface FastEthernet1/0/9

!

interface FastEthernet1/0/10

!

interface FastEthernet1/0/11

!

interface FastEthernet1/0/12

!

interface FastEthernet1/0/13

description Router A

switchport trunk encapsulation dot1q

switchport trunk native vlan 13

switchport mode trunk

!

interface FastEthernet1/0/14

description Router B

switchport trunk encapsulation dot1q

switchport trunk native vlan 14

switchport mode trunk

!

interface FastEthernet1/0/15

!

interface FastEthernet1/0/16

!

interface FastEthernet1/0/17

!

interface FastEthernet1/0/18

!

interface FastEthernet1/0/19

!

interface FastEthernet1/0/20

!

interface FastEthernet1/0/21

!

interface FastEthernet1/0/22

!

interface FastEthernet1/0/23

!

interface FastEthernet1/0/24

!

!

interface GigabitEthernet1/0/1

!

interface GigabitEthernet1/0/2

!

!

interface Vlan1

no ip address

!

ip classless

ip http server

!

!

control-plane

!

!

line con 0

line vty 0 4

login

line vty 5 15

login

!

--More--

Can you past o/p of "sh vlan" from the switch?

Sh run does not show vlan 130 and 131. All it shows vlans 121&122.

Hi there,

Enable

vlan data

Vtp mode trans

Vlan 131 name myvlan131

Vlan 130 name myvlan130

Apply

Exit

Conf t

Int vlan 130 ! This way you create the svi, not the vlan

Ip address 130.130.130.1 255.255.255.0

Int vlan 131

Ip address 131.131.131.1 255.255.255.0

!

End

Wr

!

Hope this helps

Alessio

Sent from Cisco Technical Support iPad App

Tim Glen
Cisco Employee
Cisco Employee

You have two options.

Remove the trunk config from the interfaces on the switch and the subinterfaces from the router since there is only one VLAN and the trunks are not really needed when there is only 1 VLAN.

Or

Configure the native VLAN on the switch ports.

Int f1/0/13

Switchport trunk native vlan 13

!

Int f1/0/14

Switchport trunk native vlan 14

!

Hope this helps

Sent from Cisco Technical Support iPhone App

Sent from Cisco Technical Support iPhone App

hi Tglen


thanks for reply

i need to add some more subinterface, but this problem i can do.

i have tried your suggestion but didnot work.

regards

can you post a diagram of your network?

mlund
Level 7
Level 7

Hi

I see You have configured native vlan on the switchports going to the routers. Have You configured those vlans as native (untagged) on the routers? If not, I suggest that You configure the same native vlan on the router that is configured on the switchport.

/Mikael

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card