Ciao a tutti. Sto cercando di configurare un server dhcp su Ubuntu. Premetto che sulla macchina sono presenti due interfacce di rete: una pubblica e una privata. Vorrei che il server DHCP rimanesse in ascolto esclusivamente sull'eth privata e servire i client ad essa connessi.
Ho provato a effettuare una breve configurazione. Questo è il dhcp.conf:
codice:
default-lease-time 600;
max-lease-time 7200;
subnet 10.0.0.0 netmask 255.0.0.0 {
range 10.0.0.5 10.0.0.20;
}
Il demone funziona ma mi viene restituito un messaggio di questo tipo:
codice:
root@ubuntu:/var/log # dhcpd
Internet Software Consortium DHCP Server 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.
Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html
Listening on LPF/eth1/00:0e:2e:23:6d:1f/10.0.0.0
Sending on LPF/eth1/00:0e:2e:23:6d:1f/10.0.0.0
No subnet declaration for eth0 (41.255.4.89).
Please write a subnet declaration in your dhcpd.conf file for the
network segment to which interface eth0 is attached.
exiting.
Mi viene richiesto, cioè, di assegnare una subnet all'interfaccia pubblica (??). Come mai?
Saluti