[wellylug] Samba & DHCP config ?

Jethro Carr jethro.carr at jedolinux.com
Wed Oct 26 23:16:32 NZDT 2005


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20051026/5750156a/attachment.pgp 


More information about the wellylug mailing list