AIX Net How to check VLAN ID number on AIX?

To check VLAN ID on AIX you can issue the command entstat filtering the result as the follow:

# entstat -d en0 | grep 'Port VLAN ID'
Port VLAN ID:   800

hostname:/:$ lsdev | grep ^ent
ent0         Available              Virtual I/O Ethernet Adapter (l-lan)
ent1         Available              Virtual I/O Ethernet Adapter (l-lan)
ent2         Available              EtherChannel / IEEE 802.3ad Link Aggregation
hostname:/:$ entstat -d en2 | egrep "ETHERNET STATISTICS|Port VLAN ID"
ETHERNET STATISTICS (en2) :
ETHERNET STATISTICS (ent0) :
Port VLAN ID:    10
ETHERNET STATISTICS (ent1) :
Port VLAN ID:    20
hostname:/:$

entstat -dt ent2 | grep -i pvid


 
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
AIX: Script to check if all paths are consistent and available
Viewed 3916 times since Tue, Jun 12, 2018
AIX Power replacing (hot-swap) failed disk in rootvg
Viewed 4282 times since Tue, Apr 16, 2019
NMON nmon
Viewed 13016 times since Tue, Apr 16, 2019
Backup and Restore With AIX
Viewed 5448 times since Sat, May 19, 2018
AIX Cloning a rootvg using alternate disk installation
Viewed 12366 times since Sun, Jun 30, 2019
How to determine why your AIX oslevel is downlevel (and a script to help!)
Viewed 5266 times since Fri, Jul 13, 2018
AIX: Error code 0516-1339, 0516-1397 0516-792: cannot extendvg with a previous Oracle ASM disk
Viewed 4359 times since Wed, Feb 6, 2019
AIX, Security, System Admin↑ Generating random passwords
Viewed 3603 times since Fri, Apr 19, 2019
My LPAR always boots into SMS. Why?
Viewed 4516 times since Tue, Apr 16, 2019
AIX Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 10907 times since Wed, May 22, 2019