cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
830
Views
0
Helpful
7
Replies

trunked port active in vlan

michellp
Level 1
Level 1

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.

7 Replies 7

Tagir Temirgaliyev
Spotlight
Spotlight

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

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)?

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 ios ?

when both configured

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

 

it is trunk port

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 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

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

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