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
sysdumpdev Command
Viewed 1824 times since Mon, Jul 16, 2018
AIX Resolving "missing" or "removed" disks in AIX LVM
Viewed 4466 times since Tue, Aug 6, 2019
AIX, System Admin Configuring dsh DSH
Viewed 3929 times since Fri, Apr 19, 2019
AIX: Script to get Total Disk Size
Viewed 3665 times since Tue, Jun 12, 2018
NTLMSSP, SPN and AIX CIFS
Viewed 8127 times since Fri, Jun 15, 2018
Useful AIX general commands
Viewed 11768 times since Wed, Apr 17, 2019
Undocumented AIX command lquerypv
Viewed 3586 times since Mon, Jul 16, 2018
Convert to Scalable Volume Groups
Viewed 3782 times since Wed, May 30, 2018
Trick to Purge/Clean Swap Usage on AIX
Viewed 7872 times since Thu, Nov 29, 2018
AIX, Security, System Admin↑ Fix user accounts
Viewed 4696 times since Fri, Apr 19, 2019