Aruba & ProVision-based
cancel
Showing results for 
Search instead for 
Did you mean: 

CLI - Display VLAN by Eth Port

 
SOLVED
Go to solution
RBICH10
Occasional Visitor

CLI - Display VLAN by Eth Port

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!

8 REPLIES
EricAtHP
Esteemed Contributor

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?

RBICH10
Occasional Visitor

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!

EricAtHP
Esteemed Contributor
Solution

Re: CLI - Display VLAN by Eth Port

Add 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

RBICH10
Occasional Visitor

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!

Sietze Reitsma
Respected Contributor

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

 

 

jj27sf
Occasional Visitor

Re: CLI - Display VLAN by Eth Port

you should be able to use "show int status"  

 

This works for 2910,  2920 and 5412zl switches

Patco
Occasional Visitor

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

Sietze Reitsma
Respected Contributor

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