Here is a working version based on Kents verson:
ifconfig -a|awk -v RS="" '{for(i=1;i<=NF;i++){
if($i=="HWaddr") mac=$(i+1)
else if($i~/addr:[0-9]/) {split($i,a,":");ip=a[2]}
else if($i~/Mask/) {split($i,a,":");mask=a[2]}}
if(ip!="127.0.0.1")print $1,mac,ip,bcast,mask}'
eth0 00:18:71:6a:f0:45 192.168.1.30 255.255.255.0
I have skipped the Broad Cast address, since its always the last IP in the segment and normally not needed.