Tuesday, December 22, 2020

Very useful command related to network concept in aix?

 Very useful command related to network concept in aix? 


How to identify the default gateway in aix?
#netstat -nr|egrep -iw 'default|ug'
#lsconf|grep -i gateway

How to find out the MAC address of the network card in aix?
# netstat -ai

How to find out the netmask and other important details of the network card?
#lsdev -Cc adapter
#lsattr -El en0        (remember it is ent0, it is en0) (This will help when you are in a position to restore the network card when it crashed)


The above commands may be familiar to you. But I am sure, this will get you the exact/direct information you looking for when you are in sev-1 call/service recovery.