# Example /etc/network/interfaces
auto lo
iface lo inet loopback
# device: eth0
auto eth0
iface eth0 inet static
address 178.63.46.216
broadcast 178.63.46.255
netmask 255.255.255.192
gateway 178.63.46.213
# default route to access subnet
up route add -net 178.63.46.192 netmask 255.255.255.192 gw 178.63.46.213 eth0
# scan ip from mac
NET=192.168.0
for ((i=1; i<=254; i++));do
ping -c 1 ${NET}.$i 2>&1 >/dev/null
arp -a ${NET}.$i
done