Salut,
J'ai installer un server dhcp sur un server debian par la commande
#apt-get install dhcp3-server
j'ai 2 interfaces eth0 et eth1. L'interface eth1 sera celuis qui va servir les addresses ip aux machines reseau 172.16.80.0/24.
voici ma configuration ethX
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# Interface de boucle locale.
auto lo
iface lo inet loopback
# Interface ETHERNET primaire.
# Ceci est l'interface connectéà nternet. L'IP est attribuépar DHCP.
auto eth0
iface eth0 inet dhcp
#name Carte Ethernet
# Interface ETHERNET secondaire.
# C'est l'interface de connexion du réau des machines SERVEURS.
auto eth1
iface eth1 inet static
#name Carte Ethernet
address 172.16.80.2
netmask 255.255.255.0
broadcast 172.16.80.255
network 172.16.80.0
# passerelle il faut mettre l'adresse IP de l'interface de connexion à nternet.
gateway 172.16.80.254 |
dans le fichier /etc/default/dhcp3-server j'ai :
1 2 3 4
|
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1" |
Ce qui est correct
Enfin dans le fichier /etc/dhcp3/dhcpd.conf j'ai :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
#
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
#subnet 10.152.187.0 netmask 255.255.255.0 {
#}
# This is a very basic subnet declaration.
subnet 172.16.80.0 netmask 255.255.255.0 {
range 172.16.80.1 172.16.80.254;
} |
Le serveur demare sans probleme mais les machines clientes n'obtinnent pas ip.
Merci une idée sur le probleme ?
Partager