Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

trunked port active in vlan

Maybe there's an obvious answer, but I have this strange thing;

Switchport config

interface GigabitEthernet0/2
 description Trunk to CORE02
 switchport mode trunk
 shutdown
 srr-queue bandwidth share 10 10 60 20
 queue-set 2
 priority-queue out
 mls qos trust cos
 auto qos voip trust

 

sh vlan brie

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Gi0/2

Why is it that this port, which is configured as a trunk port, shows up as active in vlan1? Also when I do a show interfaces trunk, this specific port is not listed as a trunked port. By the way I had to shutdown the port because it was causing issues. It's a redundant link, when enabled I would expect spanning tree to do it's magic, but somehow it does not and instead causes half of our lan to become unreachable. Not sure why.

Everyone's tags (1)
7 REPLIES

it is hidden configinterface

it is hidden config

you can see hidden config

sh runn all

sh runn all | beg interface GigabitEthernet0/2


interface GigabitEthernet0/2
 description Trunk to CORE02

 switchport
 switchport access vlan 1
 switchport mode trunk 

 

 

 

 

and dont forget to rate posts

Community Member

Hmz, sh running-config all |

Hmz,

 

sh running-config all | b GigabitEthernet0/2
interface GigabitEthernet0/2
 description Trunk to CORE02
 switchport mode trunk
 shutdown
 srr-queue bandwidth share 10 10 60 20
 queue-set 2
 priority-queue out
 mls qos trust cos
 snmp trap link-status
 auto qos voip trust

 

No difference. Could it be that 'show vlan brief' command shows the active/current status and because the port is shutdown and thus not actually active as a trunk it still shows up as it's default setting which is access port in native vlan (vlan 1)?

Community Member

I have to reply to my own

I have to reply to my own question, as what I suspected is true. I just took two test switches and tried it out.

So,

Could it be that 'show vlan brief' command shows the active/current status and because the port is shutdown and thus not actually active as a trunk it still shows up as it's default setting which is access port in native vlan (vlan 1)?

It seems this is indeed the case

 

 

it is ios bug.what is your

it is ios bug.

what is your ios ?

when both configured

interface GigabitEthernet1/0/41
 switchport access vlan 1
 switchport mode trunk

 

it is trunk port

Community Member

Cisco IOS Software, C2960

Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(44)SE6, RELEASE SOFTWARE (fc1)
 

I've seen this and assumed this is because trunk mode overrules access mode. I also have a setup where one switchport is configured as access port and the port on the other switch as trunk, but show commands reveal that the port is in trunk mode on both switches. I believe this is no bug.

in my switch I can not delete

in my switch I can not delete it


Switch Ports Model              SW Version            SW Image                 
------ ----- -----              ----------            ----------               
*    1 52    WS-C2960S-48TS-L   12.2(58)SE2           C2960S-UNIVERSALK9-M     

 

interface GigabitEthernet1/0/41
 description 2960_24_POE_5_24
 switchport mode trunk
 spanning-tree portfast


_Cat_2960s_5_1#sh vla br

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Gi1/0/41, 

 


_Cat_2960s_5_1#
_Cat_2960s_5_1#sh runn all | b interface GigabitEthernet1/0/41
interface GigabitEthernet1/0/41
 description 2960_24_POE_5_24
 switchport
 switchport access vlan 1
 switchport private-vlan trunk encapsulation dot1q
 switchport private-vlan trunk native vlan tag
 switchport mode trunk
 no switchport nonegotiate
 no switchport protected
 no switchport block multicast
 no switchport block unicast
 switchport port-security maximum 1
 no switchport port-security


_Cat_2960s_5_1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
_Cat_2960s_5_1(config)#interface GigabitEthernet1/0/41
_Cat_2960s_5_1(config-if)#no switchport access vlan 1
_Cat_2960s_5_1(config-if)#^Z
_Cat_2960s_5_1#
_Cat_2960s_5_1#
_Cat_2960s_5_1#
_Cat_2960s_5_1#
_Cat_2960s_5_1#
_Cat_2960s_5_1#
_Cat_2960s_5_1#sh runn all | b interface GigabitEthernet1/0/41
interface GigabitEthernet1/0/41
 description 2960_24_POE_5_24
 switchport
 switchport access vlan 1
 switchport private-vlan trunk encapsulation dot1q
 switchport private-vlan trunk native vlan tag
 switchport mode trunk

 

 

 

?

another trunk port with native vlan configured is not in vlan 1

Community Member

Can you execute this command

Can you execute this command :

show int status

if the Gigabit0/2 is notconnected then you can see, when you execute show vlan, the interface GigabitEthernet0/2 as status active. if the Gigabit0/2 is connected then the interface Gigabit0/2 is not in the output of the command

96
Views
0
Helpful
7
Replies
CreatePlease to create content