lunes, 28 de junio de 2010

LTSP - Servidor con dos tarjetas de red

Nuestro servidor tiene dos tarjetas de red, una conectada al router eth0,
y la otra conectada al switch eth1, donde se conectarán los clientes.

Ficheros editados en el servidor:
- /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.50
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
broadcast 192.168.1.255
dns-nameservers 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.1.25
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
dns-nameservers 192.168.1.1
luego, reiniciamos: sudo /etc/init.d/networking restart

- /etc/dhcp3/dhcpd.conf
# añadimos al final
include "/etc/ltsp/dhcpd.conf"

- /etc/default/dhcp3-server
INTERFACES="eth1"

- /etc/ltsp/dhcpd.conf
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.20 192.168.1.30;
option domain-name "example.com";
option domain-name-servers 192.168.1.1;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1
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";
}
}

y luego, desactivamos el servidor DHCP de nuestro router y reiniciamos:
sudo /etc/init.d/dhcp3-server restart

- /etc/resolv.conf
nameserver 80.58.61.250
nameserver 80.58.61.254

Creamos los clientes en Sistema/Administración/Usuarios y grupos, y ya
podemos arrancar los clientes desde su tarjeta de red.


Recordar que existen los comandos ltsp-build-client,ltsp-update-sshkeys
y ltsp-update-image que no hacen falta usarlos si la instalación se ha
hecho desde Ubuntu Server Alternate.

No hay comentarios:

Publicar un comentario