dhcpd, dwie sieci na jednej karcie sieciowej
Pepe
pepe w apollo.pl
Czw, 29 Gru 2005, 14:04:17 CET
On Thu, 29 Dec 2005 13:52:56 +0100
Mikolaj Kucharski <build w kompuart.pl> wrote:
> Skopiowalem konfig, ktory mi podales, wprowadzilem zmiany w polach
> 'xxx' na wartosci z mojej sieci, zmienilem tez zakres nr ip pasujacy
> do moich sieci, oto wynik:
>
> # sh /etc/init.d/dhcpd restart
> DHCPD service is not running.
> Starting DHCP Server
> service.......................................[ FAIL ] Internet
> Systems Consortium DHCP Server V3.0.3 Copyright 2004-2005 Internet
> Systems Consortium. All rights reserved.
> For info, please visit http://www.isc.org/sw/dhcp/
> Wrote 0 deleted host decls to leases file.
> Wrote 0 new dynamic host decls to leases file.
> Wrote 0 leases to leases file.
> Interface eth0 matches multiple shared networks
> (...)
> exiting.
>
>
> Ja juz sie troche tym bawilem, nie wiem czy tak sie wogole da, czy
> tez nie. Utknolem na tym co powyzej.
Oto poprawiona wersja (mam nadzieje że działa).
/etc/dhcpd.conf:
ddns-update-style none;
shared-network my_shared_net {
subnet 10.0.0.0 netmask 255.255.255.0 {
authoritative;
option domain-name "xxx";
option domain-name-servers xxx.xxx.xxx.xxx;
option ip-forwarding off;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
deny unknown-clients;
default-lease-time 86400;
max-lease-time 172800;
host host1 {
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address 10.0.0.xxx;
}
...
}
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.254;
authoritative;
option domain-name "xxx";
option domain-name-servers xxx.xxx.xxx.xxx;
option ip-forwarding off;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
default-lease-time 86400;
max-lease-time 172800;
}
}
--
Pepe
Więcej informacji o liście dyskusyjnej pld-users-pl