cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1440
Views
8
Helpful
12
Replies

Interface config does not match interface status?

chiseledst
Level 1
Level 1

show int status shows:
Gi1/0/14 notconnect 1 auto auto 10/100/1000BaseTX

 

But show run show:

#show run int gi1/0/14
Building configuration...

Current configuration : 134 bytes
!
interface GigabitEthernet1/0/14
switchport trunk native vlan 10
switchport trunk allowed vlan 111,1111
switchport mode trunk
end

 

What did I do? I tried resetting the int to default and it is still not working. The interface was configurable until it wasn't.

 

 

1 Accepted Solution

Accepted Solutions

Dustin Anderson
VIP Alumni
VIP Alumni

Guess it may depend on code, I'm on a new 9300 and have only personally only ever seen it this way. I made port 3 a trunk port for an AP, shows vlan1 until it's connected.

trunk1.jpgtrunk2.jpgtrunk3.jpg

View solution in original post

12 Replies 12

Hello,

Not quite sure what the question is. The first command shows its not connected to anything and also not administratively shutdown. It also shows the port is set to auto detect the speed/duplex of the  link when something is connected which I believe is the default.

The second command shows you the port status as far as trunking/access/configuration. It wont show the speed/duplex auto line because I believe that's the default and Cisco show run command does NOT show default commands, by default. You need to run the sh run all command.

Side note: The VLAN output is really weird to be 111,1111 like that. 

 

-David

I changed the vlan to random numbers. If the show running config says the port is a trunk port shouldn’t the show int status chart show that the port is a trunk port and not vlan 1? It’s suppose to show “trunk” whether connected or not.

I believe the command you're looking for is show interface g1/0/14 switchport. This shows the trunk statis as well.

SW1#sh int g0/0 switchport
Name: Gi0/0
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk associations: none
Administrative private-vlan trunk mappings: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL

Protected: false
Appliance trust: none
SW1#

Another command is show interface trunk.

-David

It show trunk if dtp is disable.

Do this 

Switchport trunk encapsulate dot1x 

Switchport mode trunk 

Then add allow and native.

Friend' 

The interface have many levels of config 

Show status <- this show config of L1 

Show switchport <- this show L2 and or L3 config 

Here what you see is two different level of config 

Hey, the show int status is suppose to show vlan # or trunk. The show run shows that i set the int to a trunk port but it is not updating in the show int status as a trunk but instead it says “1”.

I see what you're saying now. Yes you are correct. I ran a lab and it shows the trunk status even when not connected:

DavidRuess_0-1696524600551.png

What are you using? If its Packet Tracer then its likely a bug. 

 

-David

Yes exactly, I am actually using an old WS-C2960S 24PS-L.

@Dustin AndersonI tried plugging it in and it still showed vlan 1....I think it's a bug? I am rebooting the switch. 

Dustin Anderson
VIP Alumni
VIP Alumni

Trunk will always just show the default vlan 1 until it is connected, then the status will change to trunk.

It can be true.

@chiseledst  I will check by lab.

Dustin Anderson
VIP Alumni
VIP Alumni

Guess it may depend on code, I'm on a new 9300 and have only personally only ever seen it this way. I made port 3 a trunk port for an AP, shows vlan1 until it's connected.

trunk1.jpgtrunk2.jpgtrunk3.jpg

chiseledst
Level 1
Level 1

@Dustin Anderson @David Ruess I take back what I said, I plugged it in and it shows trunk. But it is odd, this morning, even when I didn't have it plugged in, it showed trunk in show int status.