LINUX NETWORK ADMINISTRATION Server e client DHCP Franco Callegati deisnet.deis.unibo.it Walter Cerroni 2 DHCP – RFC 2131 Dynamic Host Configuration Protocol Configurazione automatica e dinamica di • Indirizzo IP • Netmask • Broadcast • Host name • Default gateway • Server DNS Server su porta 67 UDP
7
Embed
DHCP RFC 2131 LINUX NETWORK ADMINISTRATION Dynamic Host
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
LINUX NETWORK ADMINISTRATION
Server e client DHCP
Franco Callegati
deisnet.deis.unibo.it
Walter Cerroni 2
DHCP – RFC 2131
Dynamic Host Configuration Protocol
Configurazione automatica e dinamica di
• Indirizzo IP
• Netmask
• Broadcast
• Host name
• Default gateway
• Server DNS
Server su porta 67 UDP
Walter Cerroni 3
DHCP – 1
DHCPDISCOVER
• Quando un host attiva l’interfaccia di rete, invia in
modalità broadcast un messaggio DHCPDISCOVER in
cerca di un server DHCP
Walter Cerroni 4
DHCP – 2
DHCPOFFER
• Ciascun server DHCP presente risponde all’host con un
messaggio DHCPOFFER con cui propone un indirizzo
IP
DHCPOFFER
Walter Cerroni 5
DHCP – 3
DHCPREQUEST
• L’host accetta una delle offerte proposte dai server e
manda un messaggio DHCPREQUEST in cui richiede
la configurazione, specificando il server
Walter Cerroni 6
DHCP – 4
DHCPACK
• Il server DHCP risponde all’host con un messaggio
DHCPACK specificando i parametri di configurazione
Walter Cerroni 7
DHCP – 5
• DHCP funziona anche tra sottoreti diverse
Walter Cerroni 8
Linux come server DHCP
• Il demone utilizzato è “/usr/sbin/dhcpd”
• Il kernel deve supportare il multicasting(vedi “ifconfig”)
• Configurazione in “/etc/dhcpd.conf”
• Registro degli assegnamenti in“/var/lib/dhcp/dhcpd.leases”