Nope, it didn't work for me.
I disconnected the cable, added the suggested lines, saved the file and then re-connected the cable. Then ping times out. If I take the lines out again and re-save the file then the network is unreachable.
Bash commands in a su terminal results:
Ignoring unknown interface eth0=eth0.
ifdown: interface eth0 not configured
I have to reboot the computer to restore the connection.
This may be relevant, the server has 2 nics, one for the internal network and the other for the adsl connection.
Here is my /etc/network/interfaces file with the modifications, (have tried it with commenting out the dhcp as well):
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface eth0 inet dhcp
# These lines added...
iface eth0 inet static
# netmask 0.0.0.0 doesn't work either !!