Display all interface information:
ifconfig -a
Display information for a specified interface:
ifconfig eth0
Display the IP address for a specified interface:
ifconfig eth0 | grep 'inet addr' | cut -d: -f2 | awk '{print $1}'
Display the MAC address for a specified interface:
ifconfig eth0 | grep 'HWaddr' | awk '{print $5}'
Display all socket information:
ifconfig -S
Display statistics for a specified interface:
ifconfig eth0 -s
Display all protocol information:
ifconfig -x
Display version information:
ifconfig -v
Display interface flags:
ifconfig -l
Display all supported AF_FAMILY:
ifconfig -L