MAC Address
$ /sbin/ifconfig eth0 | grep HWaddr | awk '{print $5}'
IP Address
$ /sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $2}'
Broadcast Address
$ /sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $3}'
SUBNET mask
$ /sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $4}'
GATEWAY Address
$ netstat -rn | grep ^0.0.0.0 | awk '{printf $2}'
$ /sbin/ifconfig eth0 | grep HWaddr | awk '{print $5}'
IP Address
$ /sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $2}'
Broadcast Address
$ /sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $3}'
SUBNET mask
$ /sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $4}'
GATEWAY Address
$ netstat -rn | grep ^0.0.0.0 | awk '{printf $2}'