thiagoradical
(usa Debian)
Enviado em 09/12/2011 - 17:40h
Pessoal agradeço imensamento a ajuda, abaixo posto as mudanças, porem nao esta dando certo dhcp pela eth1.
Arquivo #/etc/rc.local
/usr/local/bin/dhcpd ### eu testei criando um script inicializavel e tambem tentei adicionando as linhas comentadas abaixo sem inicializar o script que criei.
#!/bin/sh -e
#Start/Stop/Restart the DHCP server
#INTERFACES ="eth1"
#case "$1" in
#'start')
#dhcpd eth1
#;;
#'stop')
#killall dhcpd
#;;
#'restart')
#killall dhcpd
#dhcpd eth1
#;;
#*)
#echo "usage $0 start|stop|restart"
#esac
############################################
#/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"
#####################################################
#/etc/network/interface
auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
network 192.168.0.0
broadcast 192.168.0.255
auto eth1
iface eth1 inet dhcp
###########################################################
#/etc/dhcp/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.12 10.1.1.250;
option domain-name-servers 8.8.8.8;
option domain-name-servers 8.8.4.4;
option domain-name "tuxnetwork.local.net";
option routers 10.1.1.11;
option broadcast-address 10.1.1.255;
}
#host tux {
#hardware ethernet 08:00:07:26:c0:a5;
#fixed-address tux.tuxnetwork.local.net;
#}