[linux] Dhcp

Mike mike na spinet.sk
Pondělí Červenec 31 14:58:32 CEST 2006


Zdravim,

Ak som dobre pochopil, chces aby ti dhcpd obsluhoval aj eth0.
Chyba ti v dhcp.conf este jeden blok subnet xxx.xxx.xxx.xxx ktory by 
obsahoval nastavenie dhcpd pre siet ktora je za eth0.

Ako pise samotny dhcpd:
No subnet declaration for eth0 (xxx.xxx.xxx.xxx).

Mike

Ing. Rudolf Kollar wrote:

> Zdravim vsetkych.
> Mam mali problem pri konfiguracii dhcp servera na router-i /debian s
> jadrom 2.4.27-2-686. Mam tri sietovky eth0 ako wlan a eth1 a eth2 ako
> lokalne siete. Po prikaze "dhcpd" sa vypise toto:
> 
> ---------------------------------------------------------
> 
> Listening on LPF/eth2/00:11:95:8b:7c:9b/192.168.3.0
> Sending on   LPF/eth2/00:11:95:8b:7c:9b/192.168.3.0
> Listening on LPF/eth1/00:11:95:8b:7c:9d/192.168.0.0
> Sending on   LPF/eth1/00:11:95:8b:7c:9d/192.168.0.0
> 
> No subnet declaration for eth0 (xxx.xxx.xxx.xxx).
> Please write a subnet declaration in your dhcpd.conf file for the
> network segment to which interface eth0 is attached.
> exiting.
> -----------------------------------------------------------
> dhcp.conf
> ------------------------------------------------------------
> # option definitions common to all supported networks...
> option domain-name "xxx.sk";
> option domain-name-servers xxx.xxx.xxx.xxx;
> option subnet-mask 255.255.255.0;
> default-lease-time 1000;
> max-lease-time 10000;
> 
> subnet 192.168.0.0 netmask 255.255.255.0 {
>   range 192.168.0.50 192.168.0.254;
>   option routers 192.168.0.1;
>   option broadcast-address 192.168.0.255;
> 
> }
> subnet 192.168.3.0 netmask 255.255.255.0 {
>   range 192.168.3.50 192.168.3.254;
>   option routers 192.168.3.1;
>   option broadcast-address 192.168.3.255;
> 
> }



Další informace o konferenci linux