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 - How to get network speed and statistic of ethernet adapter in AIX
Viewed 14583 times since Fri, Jun 8, 2018
How do I analyze and debug core files on AIX
Viewed 6780 times since Thu, Feb 21, 2019
AIX Increase paging space logical volume size
Viewed 3085 times since Tue, Jul 17, 2018
AIX Oracle tuning
Viewed 225986 times since Tue, Jul 2, 2019
Part 3, Tuning swap space settings AIX7
Viewed 9164 times since Wed, Jun 19, 2019
AIX - How to shutdown or reboot
Viewed 6204 times since Fri, Jun 8, 2018
List AIX File Systems the Easy Way With the lsvgfs Command
Viewed 2283 times since Thu, Sep 20, 2018
Calculate hdisk READ / WRITE throughput (sequential IO) from AIX systems
Viewed 2791 times since Thu, Feb 21, 2019
AIX: How do you send an attachment via mail
Viewed 3048 times since Mon, Jun 11, 2018
AIX, Security, System Admin↑ Fix user accounts
Viewed 4906 times since Fri, Apr 19, 2019