Am deactivat acum dhcp serverul pe win (oricum nu e folosit,
statiile avand IP-uri fixe) iar pe Linux am pus un lease-time my
mare. Acum dhcpd.conf arat astfel:
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option root-path "192.168.1.11:/opt/ltsp/i386";
option option-128 code 128 = string;
option option-129 code 129 = text;
option option-128 e4:45:74:68:00:00; # NOT a mac address
option domain-name "server.mk.cosys.ro";
option domain-name-servers 194.176.162.1, 192.168.1.100;
option routers 192.168.1.1;
ddns-update-style none;
max-lease-time 21600;
default-lease-time 21600;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.210 192.168.1.240;
default-lease-time 345600;
max-lease-time 172800;
}
In /var/logs/messages dupa un "rcdhcpd restart" (e un SuSE9.2) am:
Mar 22 12:02:26 edit dhcpd: Internet Systems Consortium DHCP Server
V3.0.1
Mar 22 12:02:26 edit dhcpd: Copyright 2004 Internet Systems
Consortium.
Mar 22 12:02:26 edit dhcpd: All rights reserved.
Mar 22 12:02:26 edit dhcpd: For info, please visit
http://www.isc.org/sw/dhcp/
Mar 22 12:02:26 edit dhcpd: Not searching LDAP since ldap-server,
ldap-port and
ldap-base-dn were not specified in the config file
Mar 22 12:02:26 edit dhcpd: Internet Systems Consortium DHCP Server
V3.0.1
Mar 22 12:02:26 edit dhcpd: Copyright 2004 Internet Systems
Consortium.
Mar 22 12:02:26 edit dhcpd: All rights reserved.
Mar 22 12:02:26 edit dhcpd: For info, please visit
http://www.isc.org/sw/dhcp/
Mar 22 12:02:26 edit dhcpd: Not searching LDAP since ldap-server,
ldap-port and
ldap-base-dn were not specified in the config file
Mar 22 12:02:26 edit dhcpd: Wrote 0 leases to leases file.
Mar 22 12:02:26 edit dhcpd: Listening on Socket/eth0/192.168.1.0/24
Mar 22 12:02:26 edit dhcpd: Sending on Socket/eth0/192.168.1.0/24
Mar 22 12:02:26 edit dhcpd: Sending on
Socket/fallback/fallback-net
Cand porneste PC-ul cu PXE, nu este adaugata nimic in acest log
(nici in rc.dhcpd.log). Unde ar trebui sa ma uit dupa logul dhcpd?
Acum am incercat si sa dau un IP fix pentru PC-ul acela cu
host ws001 {
hardware ethernet 4C:00:10:71:FA:5C;
fixed-address 192.168.1.241;
filename "/opt/lts/vmlinuz-2.4.26-ltsp-1";
}
dar fara success.
Legatura ar trebui sa fie buna, fiindca ambele PCuri ssunt in
acelasi retea si daca pornesc Win-ul pe PC-ul care ar trebui sa fie
terminalul, vad Win-ul acela de pe serverul Linux.
Problema chiar se pare ca e legat de DHCP, fiindca la bootare
primesc eroarea ca nu a fost gasit o oferta DHCP sau proxyDHCP.
Andras
---
Detalii despre listele noastre de mail: http://www.lug.ro/