[wellylug] Samba & DHCP config ?
Roger Young
r.young at irl.cri.nz
Thu Oct 27 09:24:43 NZDT 2005
Yes, I understand that about the router, but the router
is also a switch, or hub or whatever, for the LAN. So I need
to know (and Samba needs to know) how to address the local
machines. If the router employs dynamic IP addressing
then it seems difficult to use these same IP numbers for local
ethernet traffic. I think Ian Sterling has the key:
>netbios name = machine_name
in smb.conf. So I don't need to use an IP address, the machine
name will do. I'll try this tonight (thanks Ian)
Cheers,
Roger
....................................................................
On Thu, 27 Oct 2005 09:14:38 +1300
Cliff Pratt <enkidu at cliffp.com> wrote:
> 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?
> >
> If you are talking about NAT (network address translation)
> by the router, then no, the addresses don't need to be
> statically assigned.
>
> When a request to say www.debian.org from an internal client
> reaches the router, it remembers the IP and (high order)
> port that the request came in on and send the request on,
> changing the source IP address to its own external IP
> address (and probably changing the source port too). When
> the response comes back, the router recognises the IP
> address (its own) and the destination port (assigned by it)
> and this matches the information it has about the internal
> IP and port that the request originally came so it has
> enough information to send the response back to the correct
> internal IP and port.
>
> It doesn't matter that the internal IP address is
> dynamically assigned since the information in the router is
> only current until the response is received back from the
> target host.
>
> If you are talking about IP forwarding (you are running a
> Web Server behind the router) then, yes, the IP address does
> have to be static.
>
> Cheers,
>
> Cliff
>
>
> --
> Wellington Linux Users Group Mailing List: wellylug at lists.wellylug.org.nz
> To Leave: http://lists.wellylug.org.nz/mailman/listinfo/wellylug
>
> This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
> MailScanner thanks transtec Computers for their support.
> MailScanner Supplied by ITS-HelpDesk.
> ext 4001 or email helpdesk at irl.cri.nz--
--
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Dr. Roger Young
Industrial Research Ltd Telephone: 64-4-5690-247
Applied Mathematics Fax: 64-4-5690-003
P O Box 31-310, Lower Hutt Internet: R.Young at irl.cri.nz
New Zealand.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
More information about the wellylug
mailing list