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
AIX, Networking↑ Adding and deleting a static network route using the command line
Viewed 2195 times since Fri, Apr 19, 2019
Rootvg Mirroring in AIX
Viewed 2226 times since Mon, May 21, 2018
How to disable SSH cipher/ MAC algorithms for Linux and Unix
Viewed 39241 times since Fri, Aug 21, 2020
AIX, System Admin Configuring dsh DSH
Viewed 3501 times since Fri, Apr 19, 2019
replacing (hot-swap) failed disk in rootvg
Viewed 8529 times since Thu, Sep 20, 2018
DISK OPERATION ERROR in AIX
Viewed 12761 times since Thu, Feb 21, 2019
bootlist multiple boot logical volume found
Viewed 2402 times since Tue, Apr 16, 2019
AIX - How to monitor memory usage
Viewed 4001 times since Fri, Jun 8, 2018
Monitoring Events with AIX Audit
Viewed 3481 times since Wed, May 30, 2018
Problems with NFS on an AIX Reboot? Then Go Single
Viewed 5911 times since Wed, May 30, 2018