Problema ao criar um servidor dhcp no slackware 14.1 [RESOLVIDO]

1. Problema ao criar um servidor dhcp no slackware 14.1 [RESOLVIDO]

wellington
wellingtonsr

(usa Slackware)

Enviado em 10/03/2015 - 23:04h

Boa noite a todos. Tenho dois notebooks e estou tentando criar um servidor dhcp usando um desses. (É mais pra apredizado mesmo) Consegui compartilhar a internet entre os dois mas usando ip fixo. Vi mutos turorias na net mas não consegui resolver...Segue abaixo as configurações. Desde já agradeço.


/etc/rc.d/rc.inet1.conf

# Config information for eth0:
IPADDR[0]="192.168.1.1"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.2.1"


/etc/dhcpd.conf

# dhcpd.conf


default-lease-time 600;
max-lease-time 7200;

authoritative;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option subnet-mask 255.255.255.0;
option domain-name-servers 8.8.8.8;
#option domain-name "internal.example.org";
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
}



erro

bash-4.2# dhcpd start
Internet Systems Consortium DHCP Server 4.2.5-P1
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 leases to leases file.

No subnet declaration for start (no IPv4 addresses).
** Ignoring requests on start. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface start 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 dhcp-server@isc.org
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.
bash-4.2#



  


2. Re: Problema ao criar um servidor dhcp no slackware 14.1

wellington
wellingtonsr

(usa Slackware)

Enviado em 12/03/2015 - 22:49h

Fiz o servidor com o debian e deu certo.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts