I have question samba and wins.
sorry. i don't speak english well..
i want build wins server using samba. - network draft Code:
router 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.. |
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 |
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. |
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] 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.. |
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 |
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. |
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 |
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. |
Yes you are correct, that's what I meant.
Thanks Sodoojin. -opc |
hm.. i'm fail to setting samba.
i change to samba4wins. samba4wins is better then samba3(nmbd). |
All times are GMT -5. The time now is 10:28 PM. |