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
Create bootable DVD iso image from a mksysb backup
Viewed 4930 times since Tue, Jul 17, 2018
Part 2, NFS monitoring and tuning
Viewed 6739 times since Mon, Jun 4, 2018
Using expect to automate mundane tasks
Viewed 2073 times since Mon, Jun 3, 2019
IP configuration in AIX
Viewed 3030 times since Tue, Jul 17, 2018
Configuring an AIX client with multiple Kerberos realms
Viewed 9674 times since Mon, Jun 25, 2018
AIX WIKIS developerworks
Viewed 2539 times since Sun, Jun 17, 2018
How to upgrade TL and SP in AIX using alternate disk(alt_disk_copy)
Viewed 12463 times since Sun, Jun 30, 2019
System Admin Mirrorvg without locking the volume group
Viewed 3299 times since Mon, May 21, 2018
AIX Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 10032 times since Wed, May 22, 2019
AIX hangs on boot? How to debug boot process on AIX systems
Viewed 11767 times since Thu, Feb 21, 2019