10-05-2023 08:23 AM - edited 10-05-2023 08:23 AM
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.
Solved! Go to Solution.
10-05-2023 10:15 AM
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.
10-05-2023 08:30 AM
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
10-05-2023 08:46 AM
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.
10-05-2023 09:26 AM - edited 10-05-2023 09:29 AM
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
10-05-2023 09:36 AM
It show trunk if dtp is disable.
Do this
Switchport trunk encapsulate dot1x
Switchport mode trunk
Then add allow and native.
10-05-2023 08:45 AM
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
10-05-2023 08:52 AM
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”.
10-05-2023 09:50 AM
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:
What are you using? If its Packet Tracer then its likely a bug.
-David
10-05-2023 10:23 AM
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.
10-05-2023 09:37 AM
Trunk will always just show the default vlan 1 until it is connected, then the status will change to trunk.
10-05-2023 09:38 AM
It can be true.
@chiseledst I will check by lab.
10-05-2023 10:15 AM
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.
10-05-2023 10:26 AM
@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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide