srmm
(usa Debian)
Enviado em 27/05/2014 - 01:15h
ola, esta dando erro na hora de configurar meu dhcp to usando a rede virtual box olhem como esta
vim /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
# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet dhcp
#Lan eth1
auto eth1
iface eth1 inet static
address 192.168.100.1
netmask 255.255.255.0
broadcast 192.168.100.255
dns-update-style none;
default-lease-time 86400;
max-lease-time 604800;
authoritative;
subnet 192.168.100.1 netmask 255.255.255.0 {
range dynamic-bootp 192.168.100.5 192.168.100.10;
option domain-name-servers 8.8.4.4, 8.8.8.8;
option domain-name "dominio.local";
option routers 192.168.100.1;
}
agora meu dhcpd.conf
dns-update-style none;
default-lease-time 86400;
max-lease-time 604800;
authoritative;
subnet 192.168.100.1 netmask 255.255.255.0 {
range dynamic-bootp 192.168.100.5 192.168.100.10;
option domain-name-servers 8.8.4.4, 8.8.8.8;
option domain-name "dominio.local";
option routers 192.168.100.1;
}
Agora vou reiniciar e aparece erro
/etc/init.d/isc-dhcp-server restart
dhcpd self-test failed. Please fix the config file.
The error was:
Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/
/etc/dhcp/dhcpd.conf line 1: semicolon expected.
dns-update-style none;
^
/etc/dhcp/dhcpd.conf line 6: subnet 192.168.100.1 netmask 255.255.255.0: bad subnet number/mask combination.
subnet 192.168.100.1 netmask 255.255.255.0
Configuration file errors encountered -- exiting
Onde esta o erro, to usando virtual box, olha como esta meu
# ifconfig
eth0 Link encap:Ethernet Endereço de HW 08:00:27:86:63:fc
inet end.: 10.0.2.15 Bcast:10.0.2.255 Masc:255.255.255.0
endereço inet6: fe80::a00:27ff:fe86:63fc/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:35876 errors:0 dropped:0 overruns:0 frame:0
TX packets:26113 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:24229626 (23.1 MiB) TX bytes:2772990 (2.6 MiB)
eth1 Link encap:Ethernet Endereço de HW 08:00:27:c1:04:55
inet end.: 192.168.100.1 Bcast:192.168.100.255 Masc:255.255.255.0
endereço inet6: fe80::a00:27ff:fec1:455/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:14483 errors:0 dropped:0 overruns:0 frame:0
TX packets:23616 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:1871306 (1.7 MiB) TX bytes:18808743 (17.9 MiB)
lo Link encap:Loopback Local
inet end.: 127.0.0.1 Masc:255.0.0.0
endereço inet6: ::1/128 Escopo:Máquina
UP LOOPBACKRUNNING MTU:16436 Métrica:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:0
RX bytes:1222 (1.1 KiB) TX bytes:1222 (1.1 KiB)