Can access local LAN Webserver, but not Internet
I have just installed Debian 3.1 on a slave harddrive. The master disk is running Windows 2000, when I'm in the need of using M$. The computer is in a local LAN with a Freesco (Linux) router to be able to access the Internet. The LAN also have another Freesco box, only as a local webserver for test purposes only.
The problem is that I can access the Freesco Web server without problem, but I can't access the internet. When I supply an url in the Firefox browser, it waits forever. I have supplied the Freesco router IP-address as DNS for the eth0, with no luck. If I reboot the computer with Windows it works ok. Any suggestions? TIA |
Do you have the router set as gateway? Try "route add default gw *.*.*.*". Do you mean you've set the router's IP address in /etc/resolv.conf like this:
Quote:
|
I added a 'route add default gw 192.168.7.5' command and it worked ok, but how can it survive a reboot?
TIA |
In /etc/network/interfaces find the interface then in the list under it add a line like this:
Quote:
|
Quote:
So what is going on here? TIA |
Are you using DHCP? /etc/hosts will have a line like this if it is:
Code:
# The primary network interface Code:
auto lo |
Thankx for your effort to help here.... yes I use DHCP. I find it hard to belive that it could be the reason for my problem that the changes are not surviving a reboot.
Please... anyone! |
Please... someone must be knowing this?
TIA |
When using DHCP, network settings are NOT stored on the machine. They are aquired when the machine boots from the DHCP server. This includes the IP address, the gateway address and dns addresses.
|
You have reason to disbelieve the advice you have recieved to date?
When you reboot - the DHCP part will erase the gateway addr. If it is static, then it won't get erased. So setting a static IP would seem to be a reasonable suggestion. (Check - does your network provide a DHCP service?) Of course, you can always add the gateway route command right at the end of your boot script... Apart from this, I think we'd need to know exactly how the LAN is wired... I am picturing a NAT Router + 4-port ethernet hub in the same box in a small home network. Each host connects via a cat5 cable to one of the ethernet ports and the NAT Router goes to a xDSL modem or something to the internet? Refusing to believe the advise you are given, refusing to accept it, is the reason your support just dried up. |
Hmm... tomj88 accidentally writes about lines you should add to /etc/hosts . The information is quite correct but the config file is wrong -- it should be /etc/network/interfaces .
If you can get the network connection temporarily working with the "route add default gw 192.168.7.5" command, you could use the "su" command (to become root) and then "apt-get install etherconf". This should install the etherconf utility that you can use to configure your network interfaces. Run it as root by typing "etherconf". |
Ah - just been looking at the freesco router.
This is a software router which is supposed to provide a DHCP service. Everyone is assuming the router is set up correctly - the host is set for DHCP but - not getting a gateway addr this way is it getting an IP and DNS addr at all? |
All times are GMT -5. The time now is 08:08 AM. |