DHCP para várias subredes
Pessoal. Estou precisando montar uma rede com várias subredes tipo assim
Subrede1 192.168.1.0/8
Subrede1 192.168.2.0/8
Subrede1 192.168.3.0/4
Subrede1 192.168.4.0/4
Como faria pra estes pcs pegarem os ips? Alguem me indica material ou teria o dhcpd.conf que faça isso?
DHCP para várias subredes
E ae galera. Ninguem nunca fez isso?
DHCP para várias subredes
1 subrede por interface (ou subinterfece) e aloque cada servico de dhcp a cada interface correspondente a esta subrede, cada um com seu conf em questao.
sacou?
DHCP para várias subredes
Num saquei não. Queria algo mais detalhado pra poder entender bem como funciona.
DHCP para várias subredes
Aeee pessoal. Estou fazendo assim o dhcp.conf
Código :
option domain-name "empresa.com.br";
option domain-name-server 10.6.1.74;
defaut-lease-time 600;
max-lease-time 7200;
shared-network 224-29 {
#Complexo 2. Térreo.
subnet 172.16.1.0 netmask 255.255.255.0 {
option routers 172.16.1.1;
range 172.16.1.50 172.16.1.254;
}
#Complexo 2. Primeiro andar.
subnet 172.16.2.0 netmask 255.255.255.0 {
option routers 172.16.2.1;
option 172.16.2.50 172.16.2.254;
}
#Complexo 2. Segundo andar.
subnet 172.16.3.0 netmask 255.255.255.0 {
option routers 172.16.3.1;
range 172.16.3.50 172.16.3.254;
}
#complexo 2. Terceiro andar.
subnet 172.16.4.0 netmask 255.255.255.0 {
option routers 172.16.4.1;
range 172.16.4.50 172.16.4.254;
}
#Complexo 2. Agencia
subnet 172.16.5.0 netmask 255.255.255.0 {
option routers 172.16.5.1;
range 172.16.5.50 172.16.5.254;
}
#Complexo 3. Bloco A
subnet 172.16.6.0 netmask 255.255.255.0 {
option routers 172.16.6.1;
range 172.16.6.50 172.16.6.254;
}
#Complexo 3. Bloco B
subnet 172.16.7.0 netmask 255.255.255.0 {
option routes 172.16.7.1;
range 172.16.7.50 172.16.7.254;
}
#Complexo 1.
subnet 172.16.8.0 netmask 255.255.255.0 {
option routers 172.16.8.1;
range 172.16.8.50;
}
}
Só que está dando o seguinte erro na hora de dar o dhcpd start
Código :
Starting DHCP server Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
No subnet declaration for eth0 (xxx.xxx.xxx.xxx).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 is attached. **
Not configured to listen on any interfaces!
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the [email][email protected][/email]
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
exiting.
Alguem tem alguma idéia?