ISC-DHCP-SERVER (dhcpd.conf)

Configuração DHCP para várias subredes

Categoria: Networking

Software: ISC-DHCP-SERVER

[ Hits: 6.499 ]

Por: Carpegieri Torezani


Configuração do DHCP Server para montar Subredes diferentes para cada cliente.


# Tipo de atualização do DNS: nenhuma
ddns-update-style none;

# Configurando o perí­odo de concessão. Mude os valores conforme sua necessidade (em
# segundos)
default-lease-time 5256000000;
max-lease-time 5256000000;

# O servidor será autoritativo:
authoritative;

option domain-name "Server.local";

 # Para onde enviar mensagens de log:
log-facility local7;

shared-network Rede001 {


# Configurando Subnet 10.0.1.0 Cliente: Cliente 1
subnet 10.0.1.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option domain-name-servers 10.0.1.1, 192.168.1.1, 8.8.8.8, 1.1.1.1;
option routers 10.0.1.1;
option broadcast-address 10.0.1.255;


# Host ID001_AP1
host ID001_IP2{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.1.2;
}


# Host ID001_AP2
host ID001_IP3{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.1.3;
}


# Host ID001_AP3
host ID001_IP4{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.1.4;
}
}

# Configurando Subnet 10.0.2.0 Cliente: Cliente 2
subnet 10.0.2.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option domain-name-servers 10.0.2.1, 192.168.1.1, 8.8.8.8, 1.1.1.1;
option routers 10.0.2.1;
option broadcast-address 10.0.2.255;


# Host ID002_AP1
host ID002_IP2{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.2.2;
}


# Host ID002_AP2
host ID002_IP3{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.2.3;
}


# Host ID002_AP3
host ID002_IP4{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.2.4;
}


}

# Configurando Subnet 10.0.3.0 Cliente: Cliente 3
subnet 10.0.3.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option domain-name-servers 10.0.3.1, 192.168.1.1, 8.8.8.8, 1.1.1.1;
option routers 10.0.3.1;
option broadcast-address 10.0.3.255;


# Host ID003_AP1
host ID003_IP2{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.3.2;
}


# Host ID003_AP2
host ID003_IP3{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.3.3;
}


# Host ID003_AP3
host ID003_IP4{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.3.4;
}


}

# Configurando Subnet 10.0.4.0 Cliente: Cliente 4
subnet 10.0.4.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option domain-name-servers 10.0.4.1, 192.168.1.1, 8.8.8.8, 1.1.1.1;
option routers 10.0.4.1;
option broadcast-address 10.0.4.255;


# Host ID004_AP1
host ID004_IP2{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.4.2;
}


# Host ID004_AP2
host ID004_IP3{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.4.3;
}


# Host ID004_AP3
host ID004_IP4{
hardware ethernet FF:FF:FF:FF:FF:FF;
fixed-address 10.0.4.4;
}


}

}
  


Comentários

Nenhum comentário foi encontrado.


Contribuir com comentário

  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts