[wellylug] Samba & DHCP config ?

Roger Young r.young at irl.cri.nz
Wed Oct 26 23:44:42 NZDT 2005


I'm beginning to get it :)
So in my case the router GUI tells me:

Starting IP address:  10.1.1.2
Ending IP address:    10.1.1.32

The 2 and the 32 are both adjustable,
the 10.1.1 apparently not (the router
itself is assigned 10.1.1.1). So if I 
start at 10.1.1.5 (say) then I have 
available 10.1.1.2, 10.1.1.3, and 10.1.1.4 
for static IP assignment. Where would I specify
the IP number (in what file(s))? I notice that
<hosts>, <networks> and <rc.inet1.conf> get written
to when netconfig is run.

How about the dhpc daemon? Do I still need it?
>From where does it get started?

I guess the best thing to do is experiment :)

Thanks for your help,
Roger

On Wed, 26 Oct 2005 23:16:32 +1300
Jethro Carr <jethro.carr at jedolinux.com> wrote:

> On Wed, 2005-10-26 at 22:57 +1300, Roger Young wrote:
> > I'm confused :( Doesn't the router need to have control of the IP addresses
> > on the home network so that it can distribute the internet traffic correctly?
> 
> no, as long as all the ip addresses are different and on the same
> subnet, it will work just fine.
> 
> 
> > Before, when I had a dial-up modem I handled internet configuration through 
> > ppp config files, and the local LAN by running netconfig. Here I chose
> > "Static IP" and specified the local IP of the Linux box.
> > 
> > But now to connect from Linux to the router I needed to rerun netconfig, and 
> > this time there I chose the DHCP option. In that case there was no way of 
> > choosing a fixed IP number for the local Linux machine.
> > 
> > Are you saying it is possible to have 2 sets of IP numbers, one assigned
> > dynamically by the router, and a second static set?
> 
> no - Each machine can only have a static OR a dynamic IP.
> 
> 
> The router however, can be given a range of IPs that it can give to
> hosts dynamically. So what you tell the router is:
> 
> IPs 192.168.0.1 - 192.168.0.24 will be set by me. You could give your
> samba server 192.168.0.2 for example. This address will stay the same
> and DHCP will not change it.
> 
> You [the router] can give out IPs 192.168.0.25 - 192.168.0.26 to any
> dynamic hosts yourself.
> 
> 
> EXAMPLE:
> 
> Router:		192.168.0.1
> Samba Server:	192.168.0.2
> Print Server:	192.168.0.3
> 
> Laptop:		*dynamic* (something from 192.168.0.25 - 192.168.0.26)
> Desktop:	*dynamic* (something from 192.168.0.25 - 192.168.0.26)
> 
> 
> This way your samba server will always be the same, so the hosts can
> connect to it, but the host IPs can change.
> 
> 
> do you get this?
> 
> 
> 
> > Sorry, I'm probably missing something basic here...
> 
> My explanations might be too confusing:
> 
> I'm tired and should get some sleep... or some coffee... or 'P' which is
> like coffee, sugar and Prozac altogether. ;-)
> 
> 
> --
> Jethro Carr <jethro.carr at jedolinux.com>
> 
> 
> www.jethrocarr.jedolinux.com
> 
> www.jethrocarr.jedolinux.com/index.php?page=cv/cv.php
> 
> 




More information about the wellylug mailing list