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
Understanding dump devices sysdumpdev
Viewed 4844 times since Mon, Jul 9, 2018
Ethernet tunning for VIOS and AIX for 10 Gib/sec environtement.
Viewed 10851 times since Thu, Feb 21, 2019
https://www.ibm.com/developerworks/learn/aix/index.html
Viewed 11444 times since Wed, May 30, 2018
Find out which port the daemon is using on AIX OS. (similar like command netstat -anp for Linux)
Viewed 11800 times since Thu, Feb 21, 2019
How to Backup and Upgrade a Virtual I/O Server Part I
Viewed 4848 times since Wed, Jun 5, 2019
AIX Resolving "missing" or "removed" disks in AIX LVM
Viewed 4948 times since Tue, Aug 6, 2019
Customizing a NIM Client Restore With a Post-Install Script
Viewed 11198 times since Wed, May 30, 2018
AIX 6.1: Extend VG 0516-1714 extendvg 0516-1254 extendvg
Viewed 4687 times since Fri, Jul 6, 2018
AIX - How to extend JFS filesystem
Viewed 19718 times since Fri, Jun 8, 2018
AIX ODM for MPIO User Guide 09
Viewed 4199 times since Mon, Dec 31, 2018