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
Troubleshooting Starts With Understanding Your Physical Disks’ Attributes
Viewed 3505 times since Sat, May 19, 2018
Part 1, Network overview - Monitoring the hardware
Viewed 5197 times since Mon, Jun 4, 2018
AIX Commands Related to Boot and Init Process
Viewed 4233 times since Tue, Apr 16, 2019
Backing up your VIOS configuration with viosbr.
Viewed 11324 times since Mon, May 28, 2018
Working with Virtual media library on VIO servers
Viewed 14020 times since Thu, Feb 21, 2019
How to check dual path in AIX
Viewed 13220 times since Fri, Jun 8, 2018
7 Tips – Tuning Command Line History in Bash
Viewed 4887 times since Fri, Jul 5, 2019
AIX perf how to
Viewed 18413 times since Tue, Aug 14, 2018
Setting new device attributes with chdef
Viewed 2046 times since Mon, Jun 3, 2019
AIX FC Performance improvements for IBM AIX FC and FCoE device driver stacks
Viewed 5414 times since Fri, Jan 31, 2020