« Le système d'exploitation GNU-Linux/Installer Debian via le réseau » : différence entre les versions
Ligne 48 : | Ligne 48 : | ||
.# which interface to use |
.# which interface to use |
||
interface=eth0 |
interface=eth0 |
||
default_address=192.168.30.210 |
default_address=192.168.30.210 |
||
.# the multicast ip address to listen on |
.# the multicast ip address to listen on |
||
multicast_address=224.0.1.2 |
multicast_address=224.0.1.2 |
||
.# mtftp info |
.# mtftp info |
||
mtftp_address=192.168.30.210 |
mtftp_address=192.168.30.210 |
||
mtftp_client_port=1758 |
mtftp_client_port=1758 |
||
mtftp_server_port=1759 |
mtftp_server_port=1759 |
||
.# the port to listen on |
.# the port to listen on |
||
listen_port=4011 |
listen_port=4011 |
||
.# enable multicast? |
.# enable multicast? |
||
use_multicast=1 |
use_multicast=1 |
||
Ligne 69 : | Ligne 76 : | ||
.# user prompt |
.# user prompt |
||
prompt=Press F8 to view menu ... |
prompt=Press F8 to view menu ... |
||
prompt_timeout=10 |
prompt_timeout=10 |
||
Ligne 75 : | Ligne 83 : | ||
.# CSA = Client System Architecture |
.# CSA = Client System Architecture |
||
.# service=<CSA>,<min layer>,<max layer>,<basename>,<menu entry> |
.# service=<CSA>,<min layer>,<max layer>,<basename>,<menu entry> |
||
service=X86PC,0,0,local,Local boot |
service=X86PC,0,0,local,Local boot |
||
service=X86PC,0,0,pxelinux,PXELinux |
service=X86PC,0,0,pxelinux,PXELinux |
||
.# tftpd base dir |
.# tftpd base dir |
||
tftpdbase=/tftpboot |
tftpdbase=/tftpboot |
||
Version du 15 avril 2008 à 16:02
Installation de Debian par le réseaux
packets nécessaire
- dhcp
- tftp
- pxe
#apt-get install dhcp-server atftpd pxe syslinux
Copiez ensuite le fichier /usr/lib/syslinux/pxelinux.0 dans /tftpboot
Configuration du dhcp
/etc/dhcp3/dhcpd.conf
ddns-update-style none;
option domain-name "diskless.net";
'#'option domain-name-servers gw.diskless.net;
default-lease-time 600; max-lease-time 7200;
log-facility local7;
subnet 192.168.30.0 netmask 255.255.255.0 { range 192.168.30.100 192.168.30.110; '#'option routers rtr-239-0-2.example.org; } next-server 192.168.30.224; option root-path "192.168.30.224:/tftpboot/pxelinux.0";
filename "/tftpboot/pxelinux.0";
tftp
/etc/inetd.conf
tftp dgram udp nowait root /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
pxe
/etc/pxe.conf
.# which interface to use
interface=eth0
default_address=192.168.30.210
.# the multicast ip address to listen on
multicast_address=224.0.1.2
.# mtftp info
mtftp_address=192.168.30.210
mtftp_client_port=1758 mtftp_server_port=1759
.# the port to listen on
listen_port=4011
.# enable multicast?
use_multicast=1
.# enable broadcast? use_broadcast=1
.# user prompt
prompt=Press F8 to view menu ... prompt_timeout=10
.# what services to provide, priority in ordering .# CSA = Client System Architecture .# service=<CSA>,<min layer>,<max layer>,<basename>,<menu entry>
service=X86PC,0,0,local,Local boot service=X86PC,0,0,pxelinux,PXELinux
.# tftpd base dir
tftpdbase=/tftpboot
.# domain name .# domain=bla.com