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
Problems with NFS on an AIX Reboot? Then Go Single
Viewed 5916 times since Wed, May 30, 2018
AIX, Networking Etherchannel failover testing
Viewed 1887 times since Fri, Apr 19, 2019
How to deal with performance monitoring in AIX ?
Viewed 7376 times since Fri, May 25, 2018
Creating Normal,Big,Scalable VG on AIX
Viewed 13359 times since Fri, Feb 1, 2019
AIX Creating a Volume Group
Viewed 2186 times since Tue, Jul 17, 2018
Working with Virtual media library on VIO servers
Viewed 13032 times since Thu, Feb 21, 2019
Trick to Purge/Clean Swap Usage on AIX
Viewed 6537 times since Thu, Nov 29, 2018
To do a quick check on the number of path present (does not mean all are Enabled] using for loop
Viewed 3351 times since Fri, Jun 8, 2018
Managing System Dump Devices sysdumpdev
Viewed 3010 times since Mon, Jul 9, 2018
Writing a Custom PVID
Viewed 2487 times since Fri, Feb 1, 2019