vicktorzx
(usa Ubuntu)
Enviado em 03/03/2014 - 19:46h
Boa Noite,
amigos do vivaolinux, estou tentando a algum tentando subir o DHCP para fornecer automaticamente IPs mas sempre da erro e não puxa o IP automaticamente na maquina cliente me obrigado a faze-la manualmente gostaria de uma ajuda Please.
Segue abaixo o que ja fiz ate agora:
1° NAT (eth0)
2° Rede Interna (eth1)
No Cliente
1° Rede Interna
REDE (nat/rede interna)
1° vim /etc/network/interfaces
# This file describes the network interfaces available on you system
# and how to active them. For more information, see interfaces (5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# The secondary network interface
auto eth1
iface eth1 inet static
address 192.168.100.10
netmask 255.255.255.0
DHCP (isc-dhcp-server)
1° apt-get install isc-dhcp-server
2° vim /etc/dhcp/dhcpd.conf
# option definitions common to all supported networks...
option domain-name "servidor.com.br";
option domain-name-servers 192.168.100.10;
default-lease-time 3600;
max-lease-time 7200;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
autoritative;
# Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection).
log-facility local7;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
#subnet 10.152.187.0 nestmask 255.255.255.0 {
#}
# This is a very basic subnet declaration.
Subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.10 192.168.100.20;
option routers 192.168.100.10;
}
# This declaration allows BOOTP clientes to get dynamic addresses,
# whiche we don't really recommend.
#subnet 10.254.239.32 netmask 255.255.255.224 {
# range dynamic-bootp 10.254.239.40 10.254.239.60;
# option broadcast-address 10.254.239.31;
# option routers rtr-239-32-1.example.org;
#}
# A slightly diferent configuration for an internal subnet
# subnet 192.168.0.1 netmask 255.255.255.0 {
# range 192.168.0.30 192.168.0.50;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org;
# option routers 192.168.0.10;
# option broadcast-address 192.168.0.255;
# default-lease-time 600;
# max-lease-time 7200;
#}
service isc-dchp-server restart
# Erro que aparece sempre
stop: Unknown instance:
isc-dhcp-server start/running, process 3208
Fiz também estas modificações mais o erro persistiu e nada de DHCP Automático
vim /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="eth0"
# Erro que aparece sempre
stop: Unknown instance:
isc-dhcp-server start/running, process 3208