dhcpd (dhcpd.conf)

como fazer um servidor dhcp

Categoria: Networking

Software: dhcpd

[ Hits: 5.859 ]

Por: paulo cabral da cunha



Neste conf segue exemplo de configuração para fazer um servidor de dhcp onde o administrador pode setar os macs com seus referidos ips


ddns-update-style none;
#ignore client-updates;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

##########################################
###Rede a qual se aplica
    subnet 192.168.1.0 netmask 255.255.255.0 {
##########################################
####Dominio e servidore dns
    option domain-name "seudominio.com.br";
    option domain-name-servers 200.199.201.23,200.199.201.24;
##########################################
##Placa de rede interna
    INTERFACES="eth0";
##########################################
authoritative;
##Range de ip#############################
    range 192.168.1.89 192.168.1.94;
##########################################
##Default gateway
    option routers 192.168.1.100;
    option broadcast-address 192.168.1.255;
}
##########################################
####Primeiro pc
host pc-1 {
  hardware ethernet 00:1B:78:2D:62:4B; 
  fixed-address 192.168.1.90;
}

####Segundo pc
host pc-2 {
  hardware ethernet 00:19:D2:58:29:A9; 
  fixed-address 192.168.1.9;
}

  


Comentários

Nenhum comentário foi encontrado.


Contribuir com comentário