Stranger problem Samba/DHCP
Marcus Grando
marcus at big.univali.br
Wed Nov 27 11:11:01 GMT 2002
Hello list,
I have a internal network with IPs 10.0.0.0/9, and configure DHCP server
for pool the IPs, based on host-name (equivalent at machine name).
When running the new configuration on DHCP, the machines get IP normally.
But Samba (PDC) negate new any conections on shares. The machines
configured to node-type = 2. If configure Windows 95/98/2000/XP to import
LMHOSTS, the machine works.
I review the smb.cond and dhcpd.conf and not work, but when start dhcpd
with old configuration, Samba works normally.
The old configuration is not pool configuration, any machines on same
subnet (10.0.6.0/24), and with pool configuration machines get IPs of
several subnets (10.0.6.0/24, 10.0.11.0/24, 10.0.12.0/24,
10.0.13.0/24...).
Any ideas when resolv this problem?
My smb.conf and dhcpd.conf.
dhcpd.conf (OLD)
----------------
log-facility local7;
ddns-update-style none;
default-lease-time 86400;
max-lease-time 129600;
option netbios-name-servers X.X.X.X;
option domain-name-servers X.X.X.X, X.X.X.X;
option netbios-dd-server X.X.X.X;
option netbios-node-type 2;
option netbios-scope "";
option ntp-servers X.X.X.X;
option ip-forwarding off;
subnet 10.0.0.0 netmask 255.128.0.0
{
range 10.0.6.1 10.0.6.254;
option routers 10.0.0.1;
option domain-name "6.0.10.internal";
}
dhcpd.conf (NEW)
----------------
log-facility local7;
ddns-update-style none;
default-lease-time 86400;
max-lease-time 129600;
option netbios-name-servers X.X.X.X;
option domain-name-servers X.X.X.X, X.X.X.X;
option netbios-dd-server X.X.X.X;
option netbios-node-type 2;
option netbios-scope "";
option ntp-servers X.X.X.X;
option ip-forwarding off;
class "Lab1" {
match if (
(substring(option host-name,0,4) = "Lab1") or
(substring(option host-name,0,4) = "lab1") or
(substring(option host-name,0,4) = "LAB1") );
}
class "Lab2" {
match if (
(substring(option host-name,0,4) = "Lab2") or
(substring(option host-name,0,4) = "lab2") or
(substring(option host-name,0,4) = "LAB2") );
}
class "Lab3" {
match if (
(substring(option host-name,0,4) = "Lab3") or
(substring(option host-name,0,4) = "lab3") or
(substring(option host-name,0,4) = "LAB3") );
}
class "Lab4" {
match if (
(substring(option host-name,0,4) = "Lab4") or
(substring(option host-name,0,4) = "lab4") or
(substring(option host-name,0,4) = "LAB4") );
}
subnet 10.0.0.0 netmask 255.128.0.0
{
option routers 10.0.0.1;
pool {
deny members of "Lab1";
deny members of "Lab2";
deny members of "Lab3";
deny members of "Lab4";
range 10.0.6.1 10.0.6.254;
option domain-name "6.0.10.internal";
}
pool {
allow members of "Lab1";
range 10.0.11.1 10.0.11.35;
option domain-name "11.0.10.internal";
}
pool {
allow members of "Lab2";
range 10.0.12.1 10.0.12.35;
option domain-name "12.0.10.internal";
}
pool {
allow members of "Lab3";
range 10.0.13.1 10.0.13.35;
option domain-name "13.0.10.internal";
}
pool {
allow members of "Lab4";
range 10.0.14.1 10.0.14.35;
option domain-name "14.0.10.internal";
}
}
smb.conf
--------
[global]
workgroup = BIG
netbios name = Isto
server string = Servidor %L (%v)
log level = 1
log file = /var/samba/%m
security = user
admin users = @ti
hosts allow = X.X.X.X/24 10.0.0.0/8
password level = 14
encrypt passwords = yes
smb passwd file = /etc/smbpasswd
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
large readwrite = yes
interfaces = 127.0.0.1/8 X.X.X.X/27
deadtime = 15
os level = 80
announce version = 6.0
browse list = no
local master = yes
preferred master = yes
domain master = yes
domain logons = yes
logon drive = x:
logon script = scripts\%m.bat
logon home = \\%L\%U
logon path = \\%L\profiles\%U
wins support = yes
name resolve order = wins lmhosts host
time server = yes
time offset = 0
character set = ISO8859-1
preserve case = yes
mangle case = yes
veto files = /.?*/lost+found/quota.*/dead.*/
hide files = /eco/profile/
############################# Share Definitions ############################
[homes]
comment = %U
writeable = yes
create mask = 0664
directory mask = 0775
preexec = /home2/samba/scripts/ajusta-home.sh %U
[netlogon]
comment = Network Logon Service
path = /home2/samba/netlogon
browseable = no
guest ok = yes
writable = no
write list = @ti
create mask = 0664
directory mask = 0775
[profiles]
comment = User Profiles
path = %H/profile
browseable = no
writable = yes
create mask = 0600
directory mask = 0700
[programs]
comment = Programas Compartilhados
path = /home2/samba/programs
writeable = yes
create mask = 0664
directory mask = 0775
Regards.
--
Marcus Grando
Tecnologia da Informação
<marcus at big dot univali dot br>
<marcus at sbh dot eng dot br>
More information about the samba-technical
mailing list