[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Many comments to Beta 3 networking stuff



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Aug 24, 2006 at 01:36:00PM +0200, Jens Seidel wrote:
> Hi Geert,

Hello All,

> On Thu, Aug 24, 2006 at 11:39:22AM +0200, Geert Stappers wrote:
> > On Thu, Aug 24, 2006 at 12:26:58AM +0200, Jens Seidel wrote:
> > > (please CC: me)
> > > 
> > > Network configuration:
> > > My PC is connected via eth0 with my notebook which itself is connected (via eth2)
> > > to my router. There is no direct connection to the router. I enter my notebook as
> > > gateway but cannot specify a nameserver (I have not installed bind).
> > > I would like to use my router as nameserver but this requires a
> > > route add -host <router ip> gw <notebook ip>
> > > which I currently start manually from another console or ssh.
> > > 
> > > I know that there exists various solutions (nevertheless I like my current configuration):
> > >  * installation of a nameserver on the notebook
> > >  * direct connection to the router
> > >  * DHCP
> > > 
> > > If I do not enter a nameserver and go back to the manual network config, the
> > > nameserver is preseeded with the gateway! Also my "No" to DHCP usage is not
> > > remembered, the default is always "Yes".
> > > 
> > > Is there a fixed IP list of nameservers available? Or maybe a Debian mirror IP list?
> > 
> > 
> > I see a picture of four items: computer, laptop, router & Internet.
 [ wrong picture ]
> No, its:
>           Inet --- Router --- Laptop --- PC
>          (Inet--Router) --- (eth2:ethX) --- (eth0)
> 
> > I assume that the laptop is being installed, but I could be wrong.
> 
> No, the PC.
> Again: The laptop has full access to the router via eth2 (wireless). The
> PC uses the Laptop as gateway but cannot resolve the nameserver, because the
> router is connected to eth2 not eth0.

So
        [Inet--Router] )) (( [eth2:Laptop:ethX] --- [eth0:PC]

Legenda:

  [   ]  =  "physical device"
  )) ((  =  wireless connection
   ---   =  cable connection

>  post-up route add --host <router> gw <notebook>
> is missing in /etc/network/interfaces, which I add always manually (it's
> still easier as to install bind on the laptop).
> (Would it harm to add such a line by default, even if the <notebook>
> gateway is not required for connection?)

It is as harmfull as beating a horse.
Only the horse is hurt (meaning _you_ don't feel the pain)
But there is _no reason_ to beat the horse.


Next is how I would configure a netwerk as yours.

Assume that the router has IP address 192.168.0.1 due default factory
settings and eth2 is 192.168.0.23, which might DHCP assigned.
Import is that they are in the same IP network.
(In a class C network need the first three octets to match)

Make ethX 192.168.6.1 and eth0 in the PC  192.168.6.2.
On the PC is 192.168.6.1 configured as his "default gateway.

You have now two seperate IP networks 192.168.0.0 and 192.168.6.0


To make it possible that the PC can to the Internet, you have the enable
IP forwarding in the laptop. The command for this is:

  echo 1 > /proc/sys/net/ipv4/ip_forward

(Again: Do that on the _laptop_ )


Tell the PC that it's nameserver is 192.168.0.1, your router.

Please verify full network functionality on the PC.

> > Back to your question:
> > > Is there a fixed IP list of nameservers available? Or maybe a Debian mirror IP list?
> > 
> > Please don't waste your time on typing in IP-addresses.
> 
> Would it be so bad to have a fixed IP list in d-i? Remember that DNS server
> are sometimes down (happens approximately twice per year for me for
> short time).

An outdated (fixed) IP list is much worse then a DNS that _might_ fail.


> > I'm will to help you find a better way to achive your goal.
> 
> OK.

Let me/us known if you have now a nice working network.
The ultimate test would be another install where the PC is configured
as:

      IP address =  192.168.6.2
      Netmask = 255.255.255.0
      Gateway = 192.168.6.1
      DNS =  192.168.0.1


Cheers
Geert Stappers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFE70SLOSINbgwa/7sRApcvAJ4lwepg2FesPuXQoso0xp2f4vhJLwCfS0YV
swvrHeOnlAKr8J5oKknXhYw=
=x8zd
-----END PGP SIGNATURE-----



Reply to: