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
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
This document discusses a new feature implemented for JFS2 filesystems to prevent simultaneous mounting.
Viewed 1087 times since Sat, Jun 1, 2019
Checking HBA status on AIX
Viewed 1093 times since Fri, Oct 5, 2018
The new VIOS performance advisor tool part util
Viewed 681 times since Tue, Jun 4, 2019
AIX rootvg Mirroring
Viewed 1279 times since Mon, May 21, 2018
AIX - How to get CPU infomation
Viewed 607 times since Fri, Jun 8, 2018
AIX snap - Prevent dump collection
Viewed 702 times since Mon, Sep 17, 2018
Setting new device attributes with chdef
Viewed 566 times since Mon, Jun 3, 2019
AIX Assign a PVID to a new hdisk
Viewed 2096 times since Tue, Jul 17, 2018
10 AIX Commands to Add to Your Toolbox
Viewed 1776 times since Sat, May 19, 2018
Epoch & Unix Timestamp Conversion Tools
Viewed 13741 times since Fri, Jun 22, 2018