Server DHCP -assistente

7 risposte [Ultimo messaggio]
Ritratto di mirtos
mirtos
(Junior)
Offline
Junior
Iscritto: 17/06/2007
Messaggi: 26

salve a tutti
ho installato il pacchetto dhcp-server-3.0.4-2mdv2007.0 su mandriva2007.0
ma nel CENTRO DI CONTROLLO non riesco a trovare l'assistente per configurare il server DHCP,
Quale è il problema? Devo installare altri pacchetti?

Grazie a chiunque voglia darmi un suggerimento.

Ritratto di Moreno
Moreno
(Guru)
Offline
Guru
Iscritto: 24/09/2004
Messaggi: 16862

Ciao

Io personalmente ho sempre configurato il server DHCP a mano e scrissi una guida sull'argomento http://www.mandrakeitalia.org/modules/wfsection/article.php?page=1&articleid=138 che è ancora valida.

Un alternativa grafica è l'uso di WebMin che è indipendente dalla distro

Se invece vuoi i tool Mandriva devi installare il pacchetto drakwizard

<br />NAME:         drakwizard<br />VERSION:      3.1<br />RELEASE:      4mdv2008.0<br />SUMMARY:      Wizard Launcher and its collection of wizards<br />DISTRIBUTION: Mandriva Linux<br />VENDOR:       Mandriva<br />LICENSE:      GPL<br />PACKAGER:     Antoine Ginies &lt;aginies@mandriva.com&gt;<br />GROUP:        System/Configuration/Other<br />OS:           linux<br />ARCH:         noarch<br />SOURCE RPM:   drakwizard-3.1-4mdv2008.0.src.rpm<br />DESCRIPTION:  <br />drakwizard allows you to launch :<br />- server wizard: configures basic services.<br />- global wizard: wizard that launch each other.<br />- dhcpd, dns, ftp, nis, ldap, apache, news,<br />  time wizards, ssh.<br />http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/soft/wizard_perl<br />

Ciao Ciao Moreno

Addio, e grazie per tutto il pesce.
Avatar by moonlight-dream.

Ritratto di kio341
kio341
(Guru)
Offline
Guru
Iscritto: 09/09/2004
Messaggi: 591

senza contraddire il dott. Moreno( la sua guida è molto più ampia ) ti invio un estratto di una mia guida del 24/9/2005 su Centos nel quale configurare a mano un server dhcp è veramente banale
Quote:

installo il server dhcp sulla mia linuxbox che funge da router per la mia lan di tre client (2 linux- Xandros-mandriva le 2005 e una macchina windows XP)come?
[root@CentOS ~]# yum install dhcp (su mandriva #urpmi dhcp-server
poi creo (su mandriva c'è ) il file /etc/dhcpd.conf con questo contenuto:

# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#

# option definitions common to all supported networks...
# option domain-name "fugue.com";
# option domain-name-servers toccata.fugue.com;

# option subnet-mask 255.255.255.0;
ddns-update-style none;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.150;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 62.211.69.250, 212.48.4.15;
option domain-name "podzone.net" ;
default-lease-time 604800;
max-lease-time 2592000;
}

con questa configurazione sui client praticamente non devo fare nulla il server assegna ip/dns/gateway-BEllO NO?
restarto il servizio e lo configuro per partire allo start-up
[root@CentOS ~]# service dhcp restart e
[root@CentOS ~]# chkconfig --level 5 dhcpd on
[root@CentOS ~]# chkconfig --list|grep dhcpd dhcpd 0:off 1:off 2:off 3:off 4:off 5:on 6:off
sui client in questo caso xandros (debian-like): in /etc/network/interfaces
iface eth0 inet (static o dhcp) inserico dhcp
in mandriva le 2005 in /etc/sysconfig/network-scripts
posso trovare le seguenti keyword:
* BOOTPROTO indica il tipo di protocollo che il sistema deve utilizzare per configurare la scheda di rete, secondo quanto specificato da value
- none o static, configurazione statica
-dhcp-protocollo DHCP
bootp-protocollo BOOTP!
chiaramente inserico DHCP!

tutto qui!!!!

:idea:

Ritratto di Moreno
Moreno
(Guru)
Offline
Guru
Iscritto: 24/09/2004
Messaggi: 16862

Ciao

Il problema è che DHCP server senza Bind serve a poco.

Ciao Ciao Moreno

Addio, e grazie per tutto il pesce.
Avatar by moonlight-dream.

Ritratto di mirtos
mirtos
(Junior)
Offline
Junior
Iscritto: 17/06/2007
Messaggi: 26

Ciao

Il post che ho inviato poco fa non è andato a buon fine. Ci riprovo.

Ho installato drakwizard come mi hai suggerito ed ho trovato l'ASSISTENTE.

(per il momento preferisco le interfacce grafiche in quanto ho da poco abbandonato gates e MANRIVA mi sta dando ottime soddisfazioni)

Ma veniamo a noi:
Ho un vecchio P1 MMX con lan integrata (con funzione PXE) che vorrei usare come terminale . Ma dopo diversi tentativi di configurare,sul server, DHCP e LTSP quando tento la connessione coò terminale mi da questo esito:

1) avvio PXE: FALLISCE

2) avvio da floppy con etherboot MAC 00:80:5F:E3:5B:EF NON TROVA IP

I 2 PC sono collegati con cavo incrociato

Questo è il file DHCPD.conf:

Quote:

# for explanation in french go to : http://www.delafond.org/traducmanfr/man/man5/dhcpd.conf.5.html
ddns-update-style none;
allow booting;
allow bootp;

# Your dhcp server is not master on your network !
#not authoritative;
# Your dhcpd server is master on your network !
authoritative;
#not authoritative;

#Interface where dhcpd is active
DHCPD_INTERFACE = "eth0";

# Definition of PXE-specific options
# Code 1: Multicast IP address of bootfile
# Code 2: UDP port that client should monitor for MTFTP responses
# Code 3: UDP port that MTFTP servers are using to listen for MTFTP requests
# Code 4: Number of secondes a client must listen for activity before trying
# to start a new MTFTP transfer
# Code 5: Number of secondes a client must listen before trying to restart
# a MTFTP transfer

# define Option for the PXE class
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;

#Define options for pxelinux
option space pxelinux;
option pxelinux.magic code 208 = string;
option pxelinux.configfile code 209 = text;
option pxelinux.pathprefix code 210 = text;
option pxelinux.reboottime code 211 = unsigned integer 32;
site-option-space "pxelinux";
# These lines should be customized to your setup
#option pxelinux.configfile "configs/common";
#option pxelinux.pathprefix "/pxelinux/files/";
#filename "/pxelinux/pxelinux.bin";

option pxelinux.magic f1:00:74:7e;
option pxelinux.reboottime 30;
#if exists dhcp-parameter-request-list {
# Always send the PXELINUX options
# append dhcp-parameter-request-list 208, 209, 210, 211;
# append dhcp-parameter-request-list 208,211;
# }

#Class that determine the options for Etherboot 5.x requests
class "Etherboot" {

#if The vendor-class-identifier equal Etherboot-5.0
match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";

# filename define the file retrieve by the client, there nbgrub
# our tftp is chrooted so is just the path to the file
filename "/etherboot/nbgrub";

#Used by etherboot to detect a valid pxe dhcp server
option vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;

# Set the "vendor-class-identifier" field to "PXEClient" in dhcp answer
# if this field is not set the pxe client will ignore the answer !
option vendor-class-identifier "Etherboot";

vendor-option-space PXE;
option PXE.mtftp-ip 0.0.0.0;

# IP of you TFTP server
next-server 172.16.65.1;
}

# create the Class PXE
class "PXE" {
# if the "vendor-class-identifier" is set to "PXEClient" in the client dhcp request
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";

# filename define the file retrieve by the client, there pxelinux.0
# our tftp is chrooted so is just the path to the file
# If you prefer use grub, use pxegrub compiled for your ethernet card.
#filename "/PXEClient/pxegrub";
filename "/X86PC/linux/linux.0";

# Set the "vendor-class-identifier" field to "PXEClient" in dhcp answer
# if this field is not set the pxe client will ignore the answer !
option vendor-class-identifier "PXEClient";

vendor-option-space PXE;
option PXE.mtftp-ip 0.0.0.0;

# IP of you TFTP server
next-server 172.16.65.1;
}

# the class know exist just for deny the response to other DHCP request
class "known" {
match hardware;
one-lease-per-client on;
ddns-updates on;
ddns-domainname = "";
option domain-name "";
option domain-name-servers 172.16.65.1;
ddns-hostname = pick-first-value(ddns-hostname, option host-name);
option fqdn.no-client-update on;
set vendor_class_identifier = option vendor-class-identifier;
}

# TAG: COMPUTER_LIST_BEGIN
#host compute9{
# hardware ethernet 00:02:b3:3f:7e:b7;
# fixed-address compute9;
# TAG: COMPUTER_LIST_END

# subnet 192.168.200.0 netmask 255.255.255.0 {
subnet 172.16.65.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 169.254.0.1;
default-lease-time 28800;
max-lease-time 86400;
option domain-name "";
option domain-name-servers 172.16.65.1;
next-server 172.16.65.1;

pool {
range 169.254.247.5 169.254.247.;
# deny members of "PXE";
# deny members of "Etherboot";
}

# pool {
# range 192.168.200.200 192.168.200.254;
# give an address of the the pool for PXE client and deny the other
#allow members of "PXE";
#deny members of "known";
#allow members of "Etherboot";
# }
}

Grazie per l'aiuto ciao ciao

mirtos

Ritratto di Moreno
Moreno
(Guru)
Offline
Guru
Iscritto: 24/09/2004
Messaggi: 16862

Ciao

Ma non ti pare di stare facendo una cosa alquanto esagerata per le tue necessità.

Mettere in piedi tutta la struttura DHCP-server e BIND per collegare fra loro due PC mi sembra una mostruosa esagerazione.

Tra l'altro sia etherboot che PXE sono una cosa completamente diversa che richiedono, penso, server diversi da DHCPD come bootp-server.

Ciao Ciao Moreno

Addio, e grazie per tutto il pesce.
Avatar by moonlight-dream.

Ritratto di mirtos
mirtos
(Junior)
Offline
Junior
Iscritto: 17/06/2007
Messaggi: 26

Ciao

Molto probabilmente hai ragione.

Che alternative ho?

ciao ciao

mirtos