This page is specific to Ubuntu version 10.04

If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.


LTSP-Cluster NAT

There is a howto for a basic LTSP-Cluster.

https://help.ubuntu.com/community/UbuntuLTSP/LTSP-Cluster

In this howto we just list differences when using two network cards in root- and application-server. We use here "A setup with two network cards in the server" from wiring howto:

https://help.ubuntu.com/community/UbuntuLTSP/LTSPWiring

We have named two server this way, lightly different way as in LTSP-Cluster howto.

Ltsp-root – 192.168.1.100 | Ltsp-appserv01 – 192.168.1.101

Root Server for LTSP-Cluster

Here is /etc/network/interfaces file.

auto lo eth0 eth1
iface lo inet loopback

iface eth0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        dns-nameservers 192.168.1.1

iface eth1 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        broadcast 192.168.0.255
        network 192.168.0.0
        up iptables-restore < /etc/ltsp/nat

For NAT read this howto:

https://help.ubuntu.com/community/UbuntuLTSP/ThinClientHowtoNAT/

Here is /etc/dhcp3/dhcpd.conf file.

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;

subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.200 192.168.0.250;
        option domain-name "ltsp-root";
        option domain-name-servers 192.168.1.1;
        option broadcast-address 192.168.1.255;
        option routers 192.168.0.100;
        next-server 192.168.0.100;
        option subnet-mask 255.255.255.0;
        option root-path "/opt/ltsp/i386";
        if substring( option vendor-class-identifier , 0 , 9 ) = "PXEClient" {
                filename "/ltsp/i386/pxelinux.0";
                }
        else {
                filename "/ltsp/i386/nbi.img";
                }
        }

Application Server for LTSP-Cluster

Here is /etc/network/interfaces file.

auto lo eth0 eth1
iface lo inet loopback

iface eth0 inet static
        address 192.168.1.101
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        dns-nameservers 192.168.1.1

iface eth1 inet static
        address 192.168.0.101
        netmask 255.255.255.0
        broadcast 192.168.0.255
        network 192.168.0.0

In the every application server we need to fix one variable in /etc/ltsp/lbaconfig.xml file.

<!-- Return IP addresse as defined in the first line of hostname command -->
<variable name="IP">
<command>ip addr show dev eth1|grep 'inet '|sed -e "s/^.*inet //" -e "s/\/.*$//</command>
</variable>

Thanks for Gadi!

Now we have working LTSP-Cluster with two network card in both servers.

UbuntuLTSP/LTSP-Cluster_NAT (last edited 2010-11-01 21:27:18 by asmok)