[linux] Dhcp

Ing. Rudolf Kollar Rudolf.Kollar na fedu.ku.sk
Pondělí Červenec 31 15:12:19 CEST 2006


Mike  wrote / napísal(a):
> Zdravim,
>
> Ak som dobre pochopil, chces aby ti dhcpd obsluhoval aj eth0.
Praveze nie. Ja potrebujem dhcp iba pre eth1 a 2.  /eth0 je verejna ip
ktoru mi pridelili na server/ Dhcpd mi tam miesa aj eth0 a to mu
potrebujem vyhovorit.
> 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;
>>
>> }
> ------------------------------------------------------------------------
>
> _______________________________________________
> https://lists.linux.sk/mailman/listinfo/linux
> Prehladavanie archivu: http://search.lists.linux.sk
> Meta FAQ: http://www.sklug.sk/lists/linux/metafaq.html




Další informace o konferenci linux