Hello,
Please give more details about input (how it will be obtained? is that just an ifconfig result?) and how output should be formatted.
Also, why awk? I mean it's cool, but why not plain old bash. Cause it sound like a work for a good oneliner right now.