Seguem abaixo as configurações de meu ambiente.
PS : O servidor é um firewall que possui diversas rotas staticas para redes distintas.
Configuração do servidor :
Conteudo dos arquivos de configuração:
Configuração da interface, no qual desejo que o serviço de dhcp funcione.
#Interface Da FARM MATRIZ -- INTERFACE PARA SERVIDOR DHCP
#Rede
192.168.22.208/28 #broadcast 192.168.22.223
auto eth1:0
iface eth1:0 inet static
address 192.168.22.209
netmask 255.255.255.240
bootproto none
peerdns yes
device eth1:0
userctl no
onboot yes
ipv6init no
type ethernet
#ROTAS MATRIZ
post-up route add -net 192.168.22.208 netmask 255.255.255.240 gw 192.168.22.20 9
pre-down route del -net 192.168.22.208 netmask 255.255.255.240 gw 192.168.22.20
/etc/dhcp/dhcpd.conf
root@FW-01:/etc/dhcp# cat /etc/dhcp/dhcpd.conf
option domain-name-servers 8.8.8.8,8.8.8.4;
##Configuração da FARM REDE MATRIZ
#
192.168.22.208/28 - broadcast:
192.168.22.223/28 GW 192.168.22.209 (ip deste firewall)
subnet 192.168.22.208 netmask 255.255.255.240 {
range 192.168.22.210 192.168.22.222;
option subnet-mask 255.255.255.240;
option broadcast-address 192.168.22.223;
option routers 192.168.22.209;
}
root@FW-01:/etc/dhcp#
/etc/default/isc-dhcp-server
root@FW-01:/etc/dhcp# cat /etc/default/isc-dhcp-server
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts
# This is a POSIX shell fragment
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1:0"
root@FW-01:/etc/dhcp#
Caso seja necessario, seguem as rotas:
Rotas :
root@FW-01:/etc/dhcp# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.22.12 0.0.0.0 255.255.255.252 U 0 0 0 eth2
192.168.22.4 192.168.22.5 255.255.255.252 UG 0 0 0 eth1
192.168.22.4 0.0.0.0 255.255.255.252 U 0 0 0 eth1
192.168.22.0 192.168.22.1 255.255.255.252 UG 0 0 0 eth0
192.168.22.0 0.0.0.0 255.255.255.252 U 0 0 0 eth0
192.168.22.208 192.168.22.209 255.255.255.240 UG 0 0 0 eth1
192.168.22.208 0.0.0.0 255.255.255.240 U 0 0 0 eth1
0.0.0.0 192.168.22.13 0.0.0.0 UG 0 0 0 eth2
root@FW-01:/etc/dhcp#
/etc/network/interfaces
root@FW-01:/etc/dhcp# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
#Eth2 Conexao com o GW da Rede
auto eth2
allow-hotplug eth2
iface eth2 inet static
address 192.168.22.14
netmask 255.255.255.252
otproto name
peerdns yes
device eth2
userctl no
onboot yes
ipv6init no
type ethernet
#Rotas DEFAULT gateway
post-up route add default gw 192.168.22.13
#eth1 Conexao com FW02 LAN TO LAN
auto eth0
iface eth0 inet static
address 192.168.22.1
netmask 255.255.255.252
#Eth1 Conexao com Host-A & Reles Locais
auto eth1
iface eth1 inet static
address 192.168.22.5
netmask 255.255.255.252
bootproto none
peerdns yes
device eth1
userctl no
onboot yes
ipv6init no
type ethernet
#Rotas para as redes abaixo do FW Rota para o host-A
post-up route add -net 192.168.22.4 netmask 255.255.255.252 gw 192.168.22.5
pre-down route del -net 192.168.22.4 netmask 255.255.255.252 gw 192.168.22.5
post-up route add -net 192.168.22.0 netmask 255.255.255.252 gw 192.168.22.1
pre-down route del -net 192.168.22.0 netmask 255.255.255.252 gw 192.168.22.1
#Interface Da FARM MATRIZ -- INTERFACE PARA SERVIDOR DHCP
#Rede
192.168.22.208/28 #broadcast 192.168.22.223
auto eth1:0
iface eth1:0 inet static
address 192.168.22.209
netmask 255.255.255.240
bootproto none
peerdns yes
device eth1:0
userctl no
onboot yes
ipv6init no
type ethernet
#ROTAS MATRIZ
post-up route add -net 192.168.22.208 netmask 255.255.255.240 gw 192.168.22.20 9
pre-down route del -net 192.168.22.208 netmask 255.255.255.240 gw 192.168.22.20 9
#################################ROTAS#############################
root@FW-01:/etc/dhcp#