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
Getting bosboot errors, don’t reboot just yet
Viewed 3480 times since Tue, Apr 16, 2019
AIX Reviewing AIX Error and Boot Logs
Viewed 3930 times since Wed, Mar 20, 2019
AIX rootvg Mirroring
Viewed 5490 times since Mon, May 21, 2018
How to know witch process is running in a particular port on AIX using KDB
Viewed 13451 times since Thu, Nov 29, 2018
O’Reilly’s CD bookshelf
Viewed 14207 times since Wed, Jun 27, 2018
How to Analyze or Read OS Watcher Output in three easy steps -- With Example ?
Viewed 43267 times since Thu, Jun 21, 2018
Manages processor scheduler tunable parameters schedo AIX
Viewed 3126 times since Thu, Sep 20, 2018
AIX FC Performance improvements for IBM AIX FC and FCoE device driver stacks
Viewed 6785 times since Fri, Jan 31, 2020
LVM: Display basic information about Physical Volumes, Volume Groups and Logical Volumes
Viewed 3482 times since Sun, Jun 3, 2018
How to Backup and Upgrade a Virtual I/O Server Part I
Viewed 5423 times since Wed, Jun 5, 2019