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
Create a mksysb + SPOT using NIM (CLI)
Viewed 6900 times since Tue, Jul 17, 2018
AIX, Security, System Admin↑ Fix user accounts
Viewed 5810 times since Fri, Apr 19, 2019
AIX LVM QUORUM mysteries revealed
Viewed 4658 times since Wed, May 22, 2019
AIX: Script to get Total Disk Size
Viewed 5289 times since Tue, Jun 12, 2018
How to set Kernel Parameters in AIX ?
Viewed 17395 times since Tue, Jul 2, 2019
AIX smtctl The smtctl command controls the enabling and disabling of processor simultaneous multithreading mode.
Viewed 16709 times since Fri, Jan 18, 2019
AIX hangs on boot? How to debug boot process on AIX systems
Viewed 14114 times since Thu, Feb 21, 2019
Troubleshooting Starts With Understanding Your Physical Disks’ Attributes
Viewed 5424 times since Sat, May 19, 2018
Mirroring the rootvg Volume Group for AIX
Viewed 6702 times since Mon, May 21, 2018
To do a quick check on the number of path present (does not mean all are Enabled] using for loop
Viewed 5316 times since Fri, Jun 8, 2018