Proszę o pomoc bo ja już nie wiem jak to ugryźć.
Na Debianie zainstalowany serwer DHCPD jego konfiguracja wygląda tak:
Kod: Zaznacz cały
option domain-name "XXXX.XXX.pll";
option domain-name-servers 208.67.222.222, 208.67.220.220;
option netbios-name-servers 192.168.1.1;
# option ddns-update-style interim;
default-lease-time 10000;
max-lease-time 10800;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.150;
option domain-name-servers 208.67.222.222, 208.67.220.220;
option domain-name "domena";
option routers 192.168.1.1;
option netbios-name-servers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 10000;
max-lease-time 10800;
#}
host komputer {
hardware ethernet 00:0A:78:8C:47:83;
fixed-address 192.168.1.101;
}
Komputery podłączone w sieci dostają ip i maja dostęp do internetu
Moje szefostwo zażyczyło sobie aby DHCP przydzielał również adresy z puli adresów zewnętrznych.
Dodałem więc podgrupę:
Kod: Zaznacz cały
subnet 77.160.77.0 netmask 255.255.255.0 {
range 77.160.77.2 77.160.77.200;
}
Polecenie
Kod: Zaznacz cały
/etc/init.d/dhcp restart
Mam dwie sieci dhcp nasłuchuje na eth2. Natomiast klasa zewnętrzna jest na eth2:1. Jeżeli do /etc/default/dhcp dopiszę:
Kod: Zaznacz cały
INTERFACES= eth2 eth2:1
Kod: Zaznacz cały
May 18 11:59:44 localhost dhcpd: Interface eth2 matches multiple shared networks
May 18 11:59:44 localhost dhcpd: No subnet declaration for ETH2,ETH2:1 (0.0.0.0).
May 18 11:59:44 localhost dhcpd: Please write a subnet declaration in your dhcpd.conf file for the
May 18 11:59:44 localhost dhcpd: network segment to which interface ETH2,ETH2:1 is attached.
May 18 11:59:44 localhost dhcpd: exiting.
[Dodano: 2008-05-22, 07:55]
Nikt nie pomoże?
Może ktoś ma dwie sieci lub więcej na dhcp to bardzo proszę o opublikowanie przykładowego konfigu dla dhcpd.