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 NFS Version 4 configuration over Kerberos inter-realm setup
Viewed 4932 times since Wed, Jun 27, 2018
Unlock User ID in IBM AIX
Viewed 16402 times since Mon, May 28, 2018
NTLMSSP, SPN and AIX CIFS
Viewed 8809 times since Fri, Jun 15, 2018
Script to make mksysb backup from NIM to LPAR
Viewed 4201 times since Thu, Feb 21, 2019
0516-787 extendlv: Maximum allocation for logical volume error
Viewed 9982 times since Tue, Mar 12, 2019
How to mirror the rootvg in AIX?
Viewed 5808 times since Mon, May 21, 2018
AIX Cloning a rootvg using alternate disk installation
Viewed 12366 times since Sun, Jun 30, 2019
AIX, Monitoring, System Admin↑ NMON recordings
Viewed 3581 times since Fri, Apr 19, 2019
How to start daemons at the system startup in AIX servers
Viewed 3081 times since Tue, Jun 18, 2019
AIX 6/7 Script to create a file with commands to remove missing and failed paths
Viewed 5054 times since Tue, Jun 14, 2022