#!/bin/bash
# Copyright (c) 1997-now, NeoNova BV, The Netherlands. All rights Reserved.
#
# This software is the copyrighted work of NeoNova BV.
# Use of the software is subject to the general business terms and conditions of NeoNova BV
# and its related transaction documents like license sheets or other written notices.#
# Any reproduction or redistribution of the software not in accordance with the license terms
# is expressly prohibited by law, and may result in severe civil and criminally penalties.
# Violators will be prosecuted to the maximum extent possible.

for interface in `/sbin/ifconfig |grep Link|grep Ethernet|awk '{ print $1 }'|sort`
do
	echo -n "$interface#" 
	/sbin/ifconfig $interface|grep inet|grep -v inet6|sed -e "s/^.*addr://g" -e "s/Bcast://g" -e "s/Mask://g" -e "s/ /#/g" -e "s/##/#/g"
done
