Collect following variables from the main LTSP server's /etc/ltsp/dhcpd.conf .
client_ip_rangedns_serverbroadcast_addressrouterssubnet_mask
For example, if the file has contents something like this:
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.20 192.168.0.250;
option domain-name "example.com";
option domain-name-servers 192.168.0.1;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
filename "/ltsp/pxelinux.0";
option root-path "/opt/ltsp/i386";
}
our values will be:
client_ip_range192.168.0.20 192.168.0.250dns_server192.168.0.1broadcast_address192.168.0.255routers192.168.0.1subnet_mask255.255.255.0
While following steps mentioned below, use these collected values or change them if mentioned.
- Disable DHCP on router connected to the internet
- Set router's primary IP/router IP to any IP address not in
client_ip_rangeand notbroadcast_address. You can reduce the client_ip_range to, for eg,192.168.0.20 192.168.0.150and set router's IP to192.168.0.151as like in this file's case. - In
etc/ltsp/dhcpd.conf, replacerouterswith the IP you set for the router in the earlier step. - Replace
dns_serverwith8.8.8.8 8.8.4.4 - Connect a LAN cable from one of the router's LAN port to an empty port in the switch.
- Restart the server and reboot all clients.
- Enjoy!!!
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.20 192.168.0.150;
option domain-name "example.com";
option domain-name-servers 8.8.8.8 8.8.4.4;
option broadcast-address 192.168.0.255;
option routers 192.168.0.151;
option subnet-mask 255.255.255.0;
filename "/ltsp/pxelinux.0";
option root-path "/opt/ltsp/i386";
}