AIX - How to get IP and MAC address of ethernet adapter in AIX

AIX - How to get IP and MAC address of ethernet adapter in AIX

 
Question : How to get MAC address of ethernet adapter in AIX?
Answer : "netstat -v" command can be used to obtain MAC address of ethernet adapter in AIX. Search for "Hardware address" value for MAC address for specific ethernet adapter from output of "netstat -v". Alternative, "entstat -d <interface>" command can be used.
Example :
root@server # entstat -d <enX> |egrep 'ETHER|Hard' <-- To get MAC add for specific ethernet
root@server # netstat -v |egrep 'ETHER|Hard' <-- To get MAC add for all ethernet


Question : How to get IP address of ethernet adapter in AIX?
Answer : ifconfig command can be used to obtain IP address and subnet value of network interface in AIX.
Example :
root@server # ifconfig -a <-- To get IP add and subnet of all interface
root@server # ifconfig <enX> <-- To get IP add and subnet of specific interface
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments (1)
Comment By Filip Hasa - Wed, Mar 9th, 2022 11:36 AM
lscfg -vpl ent0 | grep Address | sed 's/^.*\.//' is beeter way to get it for me. without double dots and small chars
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
SSH-COPY-ID on AIX. SSH remote AIX’s box without password
Viewed 20436 times since Thu, Feb 21, 2019
AIX smtctl The smtctl command controls the enabling and disabling of processor simultaneous multithreading mode.
Viewed 16681 times since Fri, Jan 18, 2019
How to Backup and Upgrade a Virtual I/O Server Part I
Viewed 6268 times since Wed, Jun 5, 2019
HOWTO: Copy a filesystem on AIX
Viewed 3363 times since Mon, May 28, 2018
AIX, user gets “pwd: The file access permissions do not allow the specified action.”
Viewed 14365 times since Tue, Mar 16, 2021
AIX Encrypted File System
Viewed 7020 times since Tue, Jul 17, 2018
Removing Failed or Missing Paths
Viewed 4967 times since Wed, May 30, 2018
Create memory resident filesystems (RAM disk) on AIX
Viewed 3714 times since Thu, Feb 21, 2019
AIX routing - How Do I Compare ODM with the Current Routing Table?
Viewed 4764 times since Mon, Jul 29, 2019
How to Easily Generate AIX Systems Management Reports
Viewed 4098 times since Wed, May 30, 2018