I was checking the VLAN’s on one of my switches. It’s two stacked Catalyst C9200L-24P-4X.

There is one port that I didn’t see on any VLAN, neither is it a trunk. So I went config t, port, switchport access VLAN 2, then I check the VLANs again and the port still doesn’t appear on any VLAN. The switch takes the command, meaning there are not error messages.

Any ideas?

Thanks

5 Spice ups

Not in config t mode, but at the # type this command. → interface “your port #info” swithport, then hit enter and review the displayed information. You should see the information regarding the assigned vlan.

1 Spice up

at the # prompt, interface is an unrecognized command

1 Spice up

Is the port shut down? It might not appear in that output if it is shut down.

1 Spice up


Your port information is specific to your device. Just replace it with the port that you are trying to configure.

I hope that helps, if not hit me up on a DM and I can help walk you through it. Cheers!

1 Spice up

No, it’s very much active

1 Spice up

The port is assigned to VLAN 9, but VLAN 9 doesn’t show the port

You’re missing a command

default int

I don’t know what you mean that I’m missing a command. I ran the command you suggested (show int xxx switchport) at the # prompt. Now you are showing me a different one (do sh run int xxx) at the config-if prompt, but that comes back as invalid command:

Maybe we have different iOS versions?

These are do subcommands

I don’t know what you mean.

Exit configuration mode to use the show commands.

The output from ‘sh int gi1/0/10 switchport’ shows that the port IS in trunk mode.

try again the “switchport mode access” on the interface.
If not as agenglercain suggests default the port and reconfigure it.

conf t
default int gi 1/0/10
int gi 1/0/10
switchport mode access
switchport access vlan 9
no shut
end
1 Spice up

Good morning, I want to apologize for my informtion. I over looked the fact that you were using IOS XE. I the command that you are missing is “switchport mode access” while you are in configuration mode within the specific interface config.

1 Spice up

I have no idea what happened other than me being brain fried yesterday because I listed the trunks and this int was not there. I also ran the switchport mode access command twice. And the screenshot that I posted shows that it was on VLAN 9. Yet, today I listed the trunks again and lo and behold, I saw it. And now I ran switchport mode access again and this time “it took” and the port is now in the VLAN that I wanted. So either yesterday I ran all the commands wrong and saw all the results wrong, or I don’t know what the heck happened.

Nonetheless, I’m good now.

Thanks!

No worries. I did run that command yesterday, twice. One of the few things that I’ve been doing for decades is assigning ports to VLANs on Cisco switches. Since the Catalyst 1900!