Outils pour utilisateurs

Outils du site


linux:dhcp

DHCP Server sous Debian bullseye

apt install isc-dhcp-server 
 
nano /etc/default/isc-dhcp-server
 
 
# Décommenter la ligne suivante:
DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf 
INTERFACESv4="eth0"
 
nano /etc/dhcp/dhcpd.conf
 
option domain-name "exop.lan";
option domain-name-servers 192.168.178.211;
 
authoritative;
 
subnet 192.168.178.0 netmask 255.255.255.0 {
    option routers 192.168.178.1;
    # specify subnet mask
    option subnet-mask 255.255.255.0;
    # specify the range of lease IP address
    range dynamic-bootp 192.168.178.50 192.168.178.150;
}
 
 
systemctl enable isc-dhcp-server
linux/dhcp.txt · Dernière modification : de root