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, Red Hat, Security, System Admin↑ System-wide separated shell history files for each user and session
Viewed 2386 times since Fri, Apr 19, 2019
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 4422 times since Wed, Jun 19, 2019
AIX- Procedure to replace rootvg harddisk
Viewed 4772 times since Tue, Apr 16, 2019
AIX, Security, System Admin Difference between sticky bit and SUID/GUID
Viewed 9141 times since Fri, Apr 19, 2019
Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 2530 times since Thu, Sep 20, 2018
AIX: How to determine which application created the OS core file
Viewed 2605 times since Mon, Jun 11, 2018
LVM: Shrink & extend a filesystem/volume
Viewed 2285 times since Sun, Jun 3, 2018
vfcpmap on VIO Server
Viewed 9700 times since Tue, Jun 4, 2019
Removing Failed or Missing Paths
Viewed 2950 times since Wed, May 30, 2018
AIX NFS Version 4 configuration over Kerberos inter-realm setup
Viewed 4218 times since Wed, Jun 27, 2018