[bglug] dhcp su piu' chede di rete con ip diversi

aba abaddon83@email.it
Mer 6 Ott 2004 19:36:38 CEST


dunque ecco il mio problema, io devo riusicre a configurare un server dhcp che 
fa da nodo tra 4 reti.

eth0 192.168.2.0/24
eth1 192.168.1.0/24
eth2 192.168.3.0/24
eth3 192.168.4.0/24

file /etc/dhcpd.conf

[CODE]
ddns-update-style ad-hoc;
option domain-name-servers 192.168.1.254;
option domain-name "kis";
shared-network 1-4 {
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.150 192.168.1.250;
default-lease-time 604800; # una settimana
max-lease-time 2592000; # 30 giorni
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.253;
}
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.150 192.168.2.250;
default-lease-time 604800; # una settimana
max-lease-time 2592000; # 30 giorni
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option routers 192.168.2.253;
}
subnet 192.168.3.0 netmask 255.255.255.0 {
range 192.168.3.150 192.168.3.250;
default-lease-time 604800; # una settimana
max-lease-time 2592000; # 30 giorni
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.3.255;
option routers 192.168.3.253;
}
subnet 192.168.4.0 netmask 255.255.255.0 {
range 192.168.4.150 192.168.4.250;
default-lease-time 604800; # una settimana
max-lease-time 2592000; # 30 giorni
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.4.255;
option routers 192.168.4.253;
}

}
[/CODE]


/etc/conf.d/dhcpd
[CODE]

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcp.conf,v 1.6 
2004/08/28 02:55:40 vapier Exp $

# Configure which interface or interfaces to for dhcp to listen on
# list all interfaces space separated.
#IFACE="eth0 eth1 eth2 eth3"
IFACE="eth0 eth1 eth2 eth3"

# Insert any other options needed
DHCPD_OPTS=""
#-q

# If you wish to run dhcp in a chroot, run:
# ebuild /var/db/pkg/net-misc/<dhcp version>/<dhcp-version>.ebuild config
# and un-comment the following line.
# You can specify a different chroot directory but MAKE SURE it's empty.
#CHROOT="/chroot/dhcp"
[/CODE]

il server parte ma se mi collego alla rete 192.168.1.0/24 mi da l'ip 
192.168.2.250 e cosė via, insomma non sono abbinati giusti...
uso Gentoo

idee?
-- 
<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>
Key server: hkp://pgp.mit.edu
<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>
Abaddon's House --> http://abaddon.promisestudios.net
<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>
-------------- parte successiva --------------
Un allegato non testuale č stato rimosso....
Nome:        non disponibile
Tipo:        application/pgp-signature
Dimensione:  189 bytes
Descrizione: non disponibile
Url:         http://lists.linux.it/pipermail/bglug/attachments/20041006/adef4c7d/attachment.pgp


Maggiori informazioni sulla lista bglug