09-21-2015 05:49 AM - edited 03-08-2019 01:52 AM
we have more than 45 ports, is there any command to list out only trunk ports?
I use show vlan command, vlan 30 is for wifi, but there is no interface appeared. but in my running config, port G1/0/35 , I have switchport trunk allowed vlan 30, so my question is how to list all the ports assigned to wifi vlan?
my laptop is using wifi and get ip 10.5.2.9, but if I use show ip arp 10.5.2.9, does it give me the wifi ap mac address?
my port 35 is linked to a access point_1 (lightweight ap), how would I know all the laptop mac using that AP? thanks
09-21-2015 06:53 AM
Hello
Show interface trunk
Show vlan brief
Show dot11 associations
res
Paul
11-19-2017 03:39 PM
Many thanks!
05-24-2020 03:58 PM
The solution presented here does not work on my 3850 with IOS 15.
How do I get a list of which VLAN's are allowed as trunk on which ports?
09-21-2015 08:12 AM
"we have more than 45 ports, is there any command to list out only trunk ports?"
#show int trunk
#show interface status | i trunk
"I use show vlan command, vlan 30 is for wifi, but there is no interface appeared. but in my running config, port G1/0/35 , I have switchport trunk allowed vlan 30, so my question is how to list all the ports assigned to wifi vlan?"
The Show Vlan command will only show access ports which are members of the corresponding Vlans. Trunk ports carry all Vlans by default so they don't appear in this output.
You could use:
#show int trunk
#show interface status | i 30
The second command above will probably show port 30 (as it includes anything with 30) but you can just ignore this port unless it also is in Vlan 30.
"my port 35 is linked to a access point_1 (lightweight ap), how would I know all the laptop mac using that AP? thanks"
#show mac address table interface gi1/0/35
This will show all MAC addresses by Vlan ID.
09-21-2015 08:26 AM
To list trunks use show interface trunk.
show vlan is not showing any interfaces for vlan 30 because you did not assign any interfaces to vlan 30! switchport trunk allowed vlan 30 doesn't assign that port to vlan 30, but merely permits vlan 30 to pass along the trunk if the port is designated as a trunk. To add a port to vlan 30 use switchport access vlan 30 after switchport mode access. Once you add these two commands to a port, sh vlan will show you the correct information.
If port 35 is linked to another switch (access point_1), then you shouldn't issue the above mentioned switchport commands, as it would turn the ports into access ports, and switches should be attached together via trunk ports.
Are you trying to connect a switch to another switch, or are you trying to assign a vlan to an access port? These are two very different goals. You cannot assign a vlan to a trunk, but you can permit only one vlan onto a trunk with the switchport trunk allowed vlan 30 command as you mentioned above.
03-11-2020 10:58 AM
What would be a command to list all ports configured as switchport mode trunk ?
Show interfaces trunk includes only active ports on my 3750x
Thx
04-16-2020 08:40 PM
try show vtp counters
07-16-2024 08:40 PM
Show interface status | in trunk
It will display something as below:
Gi1/0/1 Connected trunk a-full a-1000 10/100/1000BaseTX
G1/0/2 Connected trunk a-full a-1000 10/100/1000BaseTX.
07-17-2024 01:06 PM
Genius, I love simple solutions. Tx a bunch.
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