- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- Aruba & ProVision-based
- >
- CLI - Display VLAN by Eth Port
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 08:21 AM
04-14-2015 08:21 AM
Is there a way to display VLAN tagging by ethernet port? For instance I would like to see what VLANs have been tagged/untagged for int eth 1/1.
Currently I do a show run and then have to look through each VLAN whch seems a bit tedious.
Is there an easier way (other than show run) to see what has been tagged/untagged per port?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 08:30 AM
04-14-2015 08:30 AM
Re: CLI - Display VLAN by Eth Port
Based on your comment about "show run", I assume you are using a ProVision based device. Use this command:
show vlan ports <port list>
If this doesn't work, what switch are you using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 08:37 AM
04-14-2015 08:37 AM
Re: CLI - Display VLAN by Eth Port
Thank you Eric, I apologize for not being more clear on the hardware.
HP 2920-48G J9728A
WB.15.16.0005, ROM WB.15.05
That command seems to show all VLANs associated with the port which is helpful but doesn't seem to show if the VLANs listed are tagged or untagged at the port.
Is it possible to see tagging/untagging by port?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 08:46 AM
04-14-2015 08:46 AM
SolutionAdd the "detail" option at the end of the command:
show vlans ports <port list> detail
By the way, I use the tab key a lot in the CLI to both autocomplete commands and verify that i have the syntax correct but also to list the available options for a specific command. For example, if you typed "show vlans ports 1" and hit the tab key twice, you will see that there are two options: detail or <cr>.
In Comware, you can do the same thing with the tab key to autocomplete and then use the question mark key to see available options.
Hope this helps,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 08:48 AM
04-14-2015 08:48 AM
Re: CLI - Display VLAN by Eth Port
Thank you very much for the help, adding "detail" looks to show exactly what I was searching for.
I appreciate the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 10:51 AM
04-14-2015 10:51 AM
Re: CLI - Display VLAN by Eth Port
there is also another command to show the vlan or interface config
try:
#show config vlan 1
or
#show config interface 1/1
or
#show config interface 1/1-1/4
also with display command in (config) mode:
2920-1(config)#vlan 1
2920-1(vlan-1)#display this
name "DEFAULT_VLAN"
untagged 1/2-1/24,1/A1-1/A2,1/B1-1/B2,2/2-2/24,2/A1-2/A2,2/B1-2/B2,Trk1
ip address dhcp-bootp
exit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2015 07:50 AM
05-14-2015 07:50 AM
Re: CLI - Display VLAN by Eth Port
you should be able to use "show int status"
This works for 2910, 2920 and 5412zl switches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 04:02 PM
09-08-2015 04:02 PM
Re: CLI - Display VLAN by Eth Port
Hello.
I need help , concerning the untagged ethernet <port-list> command into the HP2920 stacking.
i means , when I have one HP 2920 stack (with 2 HP 2920) , how can I use : untagged <port-list> command to give a range of port to one vlan , for example the range : 2/2 -2/24 and 1/13-1/35.
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2015 06:02 AM
09-09-2015 06:02 AM
Re: CLI - Display VLAN by Eth Port
EXAMPLE to add untagged vlan 10 to a range of ports
# Interface 1/13-1/35,2/2-2/24
(eth1/13-1/35,2/2-2/24)#untagged vlan 10