Hello! I am trying to install a Debian 3.1 server with the help of this tutorial http://www.howtoforge.com/perfect_setup_debian_sarge When I want to change from DHCP to static, it become impossible to connect to the internet, even after a complete reboot. I can still ping the router and the other computers in my LAN, and I get pinged by the other computers. The IP I choose is in the correct router's range for the static IP. ifconfig will show the choosed static ip but the router list wont list it. I had exactly the same problem with my father's computer which run win98; I thought it was due to the fact it is an old box and I then left his computer running on DHCP. Has anybody found the solution for that problem?
Make sure you use the correct gateway IP address (your router's local IP address). Also specifiy valid nameservers in /etc/resolv.conf (you can use those from the tutorial). And finally make sure that you don't give your system an IP address that is already used by another computer in your LAN.
Still in trouble... Hello Falko, thanks for you help. I checked and rechecked the settings and everything should be correct but the system still don't want to connect to the wan. I am going to reinstall all from the beginning without plugging the lan cable, so the installer is going to ask me for the network settings. About /etc/resolv.conf, I tryed three settings: first with the two DNS my IPS gave, second with the router IP and third with both of them. Nothing seems to improve. What is the correct setting for the DNS?
What's in /etc/network/interfaces? You can use the nameservers mentioned in the tutorial. They work fine.
Voilà! # The loopback interface auto lo iface lo inet loopback # The first network card - this entry was created during the Debian installation # (network, broadcast and gateway are optional) auto eth0 iface eth0 inet static address 192.168.0.35 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1
By the way... By the (gate)way I solved the problem by reinstalling all with the option "linux netcfg/disable_dhcp=true". In the /ect/network/interfaces there are now two lines more: dns-nameservers 145.253.2.75 193.174.32.18 194.25.0.60 dns-search example.com Thanks for your inspiration!