- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- Aruba & ProVision-based
- >
- CLI - Display VLAN by Eth Port
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP