Re: Cannot access Linux computer from outside LAN



Philippe Signoret <philippe.signoret@xxxxxxxxx> wrote:
After researching a bit on the web, I find that

$ route add -net default gw 192.168.3.254 dev eth0

Correct.

1. How can I make this change permanent (i.e. the routing table will
look like that when I reboot the computer.)

As I have never used Ubuntu I can't really offer much help here. Ubuntu
user to the rescue!

In a Debian Etch system the relevant configuration file would be
/etc/network/interfaces. As Ubuntu is Debian based, this may apply
there, too. For an interface with a static IP you would have to set the
'gateway' option with the appropriate IP address.

2. Shouldn't this be happening automatically every time it gets an IP
from the DHCP server on the router??

You are absolutely right - the dhcp client should be taking care of
this. Assuming that etc/network/interfaces exist on Ubuntu - what does
it look like on you system?

cu
Philipp

--
Dr. Philipp Pagel Tel. +49-8161-71 2131
Dept. of Genome Oriented Bioinformatics Fax. +49-8161-71 2186
Technical University of Munich
http://mips.gsf.de/staff/pagel
.



Relevant Pages

  • 8.04 networking seems awfully broken.
    ... I keep reading reviews about how Ubuntu "just works", ... up and f*&king up the network configuration. ... _is_ a response from a DHCP server. ... I've never seen even a single network that uses link-local ...
    (Ubuntu)
  • installing Ubuntu via PXE using tftpd32
    ... I'm trying to install the latest version of Ubuntu on my laptop using ... the PXE boot method. ... turned off the windows firewall and the routers own DHCP server. ... I was thinking that i might have more luck with Ubuntu. ...
    (comp.os.linux.setup)
  • Re: dns/nameserver gone!
    ... Maybe your DHCP server is not providing the DNS servers. ... you are not using a DHCP client ... In Lak'ech - Mitakuye Oyasin - Ubuntu - Ho'oponopoono ...
    (Ubuntu)
  • Re: Why is adding a new Ubuntu PC to an existing LAN such a pain?
    ... Running a mixed LAN of Windows XP and Ubuntu 6.10 machines always causes ... the latest Ubuntu addition to just freeze after the initial install and ... no DHCP server present so I'm using static addresses. ...
    (Ubuntu)
  • Re: Editing resolv.conf - knoppix
    ... > preconfigured for DHCP and is unnaccessible to edit. ... > In Ubuntu, I was able to edit a file which automatically ... On the my systems, dhcpd.conf is the config file for the dhcp server, not ... I haven't used a dhcp client from the linux side, ...
    (comp.os.linux.misc)