Quote:
Originally Posted by anomie
|
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:
ifup eth0
Ignoring unknown interface eth0=eth0.
ifdown 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
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
# These lines added...
iface eth0 inet static
address 0.0.0.0
netmask 255.255.255.0
# netmask 0.0.0.0 doesn't work either !!
gateway 10.0.1.10