salman h wrote: > and while it disables the loopback interface, data > packets are still not being put on the physical > network. I don't know if this works, but you might as well give it a shot: while read dev x; do case "$dev" in eth*) dev="`echo -n "$dev" | sed 's/:.*$//'`" ifconfig "$dev" 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 ifconfig "$dev":1 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255 ping 192.168.0.2 -I "$dev" # do magic mactab stuff here ifconfig "$dev" down ifconfig "$dev":1 down ;; *) : ;; esac done < /proc/net/dev
Attachment:
signature.asc
Description: OpenPGP digital signature