LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-23-2006, 12:57 PM   #1
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
Win2K ICS & Samba


I use Win2K ICS to provide internet access to several commputers
on a small peer-peer network with a few Windows machines running
Win2K and Win98 and a couple of machines running Slackware linux
10.2.

I have the windows clients setup to receive their IP addresses
from the ICS DHCP mini server and have also set the Linux machines
to obtain their IP's from DHCP. This works well for internet
connection sharing on all machines, but I also have need to
provide File and Print Sharing for these computers. The Windows
machines seem to accept entries in the LMHOSTS file which are
generalized IP references:

192.168.0. win2kclient
192.168.0. win98client

However, Samba doesn't like this and seems to require a specific
IP address in the LMHOSTS file on the Linux machines.

The windows clients appear to receive the same IP assignment, as
in a static IP address, from the ICS DHCP server on each boot, but
the Linux machines IP assignments change each bootup.

How do I configure Samba (i.e.LMHOSTS) to reflect the DHCP IP
assignment to provide workable File and Print Sharing under this
type of setup?
 
Old 05-24-2006, 06:25 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I would configure the Linux machines for a static IP address so that you don't have to bother about ever changing IP addresses. Just make sure that you pick static IP addresses that are not leased by the ICS DHCP mini-server. There is no rule that states that you must only use DHCP.

Eric
 
Old 05-24-2006, 10:07 AM   #3
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
Quote:
There is no rule that states that you must only use DHCP.
True enough, but I was intent on solving the problem with DHCP.

Turns out that the Remote Cache on the WIN2K machine is not
being updated when I boot a Linux box. Since the IP assignments
from ICS don't change on the WIN98 boxes, the Remote Cache still
contains the correct IP addresses for these machines and there
is no problem here. In fact, I removed all of the LMHOSTS files
from the WIN2k and WIN98 machines as they don't seem to be
needed. I find I can now simply enter a "nbtstat -R" on the
WIN2k machine to clear the Remote Cache and recreate it with the
updated IP address assignments for the Linux boxes and
connectivity is once again reestablished.

I have recently read about creating a dhclient.conf with an option
'send host-name' which will send the hostname to the DHCP server to
update the DNS, but I'm not sure if this will work.

Any other thoughts appreciated.
 
Old 05-24-2006, 10:10 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by raypen
Any other thoughts appreciated.
My other (first) thought was: get rid of ICS if you have Slackware in the house! Using a Slackware gateway with DHCP/DNS server and NAT will be much better performance wise.

Eric
 
Old 05-24-2006, 10:59 AM   #5
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
Actually, I do dual boot the WIN2K machine with Slackware Linux 10.2
and use Linux DHCP and a NAT firewall using IPTABLES to proved ICS to
client machines.

You're right of course. Using Linux as the gateway is much preferred.
 
Old 05-24-2006, 11:03 AM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by Alien Bob
My other (first) thought was: get rid of ICS if you have Slackware in the house! Using a Slackware gateway with DHCP/DNS server and NAT will be much better performance wise.

Eric
And security wise, and uptime wise, and......

I use a notebook as a NAT for one of my networks, and has been up for approx 3 months straight now, no downtime, no sucessfull attacks.

Last edited by cwwilson721; 05-24-2006 at 11:05 AM.
 
Old 10-07-2006, 08:09 PM   #7
lodragan
LQ Newbie
 
Registered: Jan 2006
Location: USA
Distribution: Slackware 13.1, Windows 7 (on game box only), Mac OSX
Posts: 18

Rep: Reputation: 4
To echo what others have said - no reason to use DHCP on such a small network.

The only reason I can see using DHCP is if you have a very large network, and a very small vlan (number of IP addresses available) - so you share the limited resource of IPs among the pool of machines. This breaks down if all of the machines are connecting to the network concurrently. Additionally, I have seen problems with consumer grade router/firewalls locking up due to DHCP requests from Microsoft machines --- there are known problems with Microsoft's DHCP implimentation.

I see too many sysadmins using DHCP as a crutch to ease their management burden. This is LAZY. Keep track of the machines on your network! There are tools to make this easy (e.g. CFEngine). Additionally having static IP addresses will make managing logs easier (instead of having to track down MAC addresses).
 
Old 10-10-2006, 09:21 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
I also use DHCP, and static IP's. I use the DHCP for temp connects, and firewall the DHCP addresses from the rest of the network.

As far as what I use to keep track of my static IPs, it's an old,old,old peice of hardware. It's called a 'PENCIL'. You may have seen them in museums. They write on a piece of a tree called a 'PAPER'. Try it. Gotta love analog sometimes....lol

Last edited by cwwilson721; 10-11-2006 at 12:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba PDC & Win2K Profiles Pimple Linux - Networking 2 01-14-2006 10:43 AM
SuSE9 && Samba && Win2k DaFrEQ Linux - Software 2 01-27-2004 07:45 AM
Samba & R.H.9, Win2k chopp Linux - Networking 16 09-24-2003 01:00 PM
Samba & Win2k Server hakcenter Linux - Networking 54 07-11-2003 12:11 PM
Samba & Active Directory in Win2k robinhood1995 Linux - General 3 04-13-2002 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration