LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-02-2008, 05:04 AM   #1
sodoojin
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Rep: Reputation: 0
I have question samba and wins.


sorry. i don't speak english well..

i want build wins server using samba.

- network draft

Code:
           router
             |
         [ linux (samba) ]
             |
    <----------------------------------->
        |                      |      
       pc                     pc
(hostname is pc1)          (hostname is pc2)
(ip is 192.168.100.20/24)  (ip is 172.16.107.20/24)
pc2 ip is change not shared.
samba is bad response. (old ip)

pc2 ip is change to 172.16.107.30/24 and pc1 \\pc2 [enter]
linux samba wins is response 172.16.107.20.
pc1 is try 172.16.107.20.

help me please..

Last edited by sodoojin; 07-02-2008 at 05:06 AM.
 
Old 07-02-2008, 09:00 AM   #2
opc
LQ Newbie
 
Registered: Mar 2007
Posts: 20

Rep: Reputation: 0
Sodoojin,

Some additional information is required to better understand your situation:

1. What Linux distribution are you using for your Samba server?
2. What is the operating system for PC1 and PC2?
3. Was this configuration working before?

It looks like you want to be able to assign static IP addresses, which implies you are not using DHCP, is this correct?

Also, please provide the smb.conf file.

I will try to help the best I can.

Thanks,
opc
 
Old 07-02-2008, 06:30 PM   #3
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
It appears in your drawing that pc1 and pc2 are on the same physical network, but have IPs in two different networks. Can you clarify?

A WINS server is useful when you have different networks and want your PCs on those networks to be able to perform name lookups on the remote networks.

If the PCs are on the same network, there is not much reason to use a WINS server, as Windows networking will discover names on a given network.
 
Old 07-02-2008, 09:13 PM   #4
sodoojin
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
oh.. sorry.. information is not enough.

1. What Linux distribution are you using for your Samba server?
linux version - debian sarge 2.3.16.7(i work kernel compile)
samba version - 3.0.24

2. What is the operating system for PC1 and PC2?
pc1 and pc2 os is same. windows XP

3. Was this configuration working before?
this is my test environment.
i don't know this configuration is working..
before. i not using wins.

It looks like you want to be able to assign static IP addresses, which implies you are not using DHCP, is this correct?
yes. pc1 and pc2 is static ip address.

i have question.
static, dhcp is different for wins setting?

and.. my smb.conf file..
Code:
[global]
    wins support = yes
    name resolve order = wins lmhosts host bcast
    browse list = yes
    preferred master = yes
    local master = yes
    os level = 255
    security = share
and.. wins.dat is not refresh.
after pc1 ip is changing. wins.dat file is record pc1 before ip.
for example.

original pc1 ip is 192.168.100.10
wins.dat is recored "pc1 192.168.100.10" correctly.
pc1 ip is change to 192.168.100.20
wins.dat is recored "pc1 192.168.100.10"
i wait to 1day. wins.dat record same.

what is wrong?
this is normal?

in my guess. wins.dat refresh interval setting value is existence.

help me please..

Last edited by sodoojin; 07-03-2008 at 03:46 AM.
 
Old 07-04-2008, 06:13 AM   #5
opc
LQ Newbie
 
Registered: Mar 2007
Posts: 20

Rep: Reputation: 0
If I understand correctly, when you check "smbstatus" on the SMB server, you are not seeing the expected IP addresses.

Please make sure you have the following properly set:

1. Check that the hosts line in /etc/nsswitch.conf reads
hosts: files dns mdns wins
(You may have more than these three switch, but you should at least have wins)

2. Check that /etc/hosts includes
127.0.0.1 {server name}

3. check that /etc/hostname has
{server name}

4. check that /etc/dhcp3/dhclient.conf has
send host-name "{server name}"

Steps 2,3 and 4 ensure that the Windows PCs can properly identify the server on the network.

Also, perhaps you should specify the acceptable segments in the [global] section of smb.conf:
host allow = 192.168.100 172.16.107

Unfortunately, I don't know enough about WINS to help you with the win.dat file.

Regards,
OPC
 
Old 07-06-2008, 11:50 PM   #6
sodoojin
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
thank you opc.
i'm find solution.

interfaces and remote announce command add to smb.conf
nmbd is refresh wins.dat file.

windows2000 is perfect.
but windowsXP is not perfect.

i guess windows XP and windows 2000 setting is different.
hmm..

thank you very much for your advice.
i'm happy.
 
Old 07-07-2008, 08:24 AM   #7
opc
LQ Newbie
 
Registered: Mar 2007
Posts: 20

Rep: Reputation: 0
Sodoojin,

I'm glad you found a solution to your problem. I imagine you modified the [global] section of smb.conf like this:

interfaces = 192.168.100.1/255.255.255.0 172.16.107.1/255.255.255.0
remote announce = 192.168.100.1/WORKGROUP 172.16.107.1/WORKGROUP

If you can, please post your working smb.conf so others can learn.

Thanks,
OPC
 
Old 07-07-2008, 11:31 PM   #8
sodoojin
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
sorry. i don't know what do you mean. opc.
in my guess..

maybe..
including my smb.conf reply after perfect processing samba(wins) for other peoples.

i guess is correct?

i do.

thank you.
 
Old 07-08-2008, 08:08 AM   #9
opc
LQ Newbie
 
Registered: Mar 2007
Posts: 20

Rep: Reputation: 0
Yes you are correct, that's what I meant.

Thanks Sodoojin.

-opc
 
Old 07-15-2008, 04:21 AM   #10
sodoojin
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
hm.. i'm fail to setting samba.
i change to samba4wins.
samba4wins is better then samba3(nmbd).
 
  


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
WINS name in samba connection in MC avallach Linux - Software 0 01-07-2007 07:04 AM
Samba WINS multisubnet. How do you do yours? humbletech99 Linux - Networking 0 01-01-2007 03:52 PM
WINS on Samba humbletech99 Linux - Networking 1 05-23-2006 09:58 PM
samba and wins hoover93 Linux - Networking 0 08-16-2004 04:25 PM
Samba WINS Server rmarvin Linux - Networking 0 10-24-2003 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 PM.

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