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
Setup private yum repository for AIX clients
Viewed 12235 times since Thu, Feb 21, 2019
Technology level update on AIX using smit_update and alt_disk_install method
Viewed 6978 times since Sun, Jun 30, 2019
AIX Creating EtherChannel Devices from Command Line
Viewed 5032 times since Mon, Jun 3, 2019
AIX: How to determine which application created the OS core file
Viewed 3145 times since Mon, Jun 11, 2018
Getting list users and groups in AIX
Viewed 5113 times since Mon, May 28, 2018
List AIX File Systems the Easy Way With the lsvgfs Command
Viewed 3148 times since Thu, Sep 20, 2018
How to Investigate a System Reboot
Viewed 5400 times since Mon, Jul 16, 2018
AIX Power replacing (hot-swap) failed disk in rootvg
Viewed 4586 times since Tue, Apr 16, 2019
AIX: Remove existing disk
Viewed 3400 times since Sun, Jun 3, 2018
AIX TCP connection status
Viewed 18726 times since Mon, Jul 29, 2019