[ SlackList ] [ WkikiSlack ]




Re: DHCPd....

From: Machoni <machoni_malpka_o2.pl>
Date: Tue Jan 18 2005 - 16:32:29 CET

> &gt; &gt;# dhcpd.conf
> &gt; &gt;#
> &gt; &gt;# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
> &gt; &gt;#
> &gt; &gt;
> &gt; &gt;subnet 192.168.1.0 netmask 255.255.255.0 {
> &gt; &gt; range 192.168.1.2 192.168.1.254;
> &gt; &gt; ddns-update-style ad-hoc;
> &gt; &gt; default-lease-time 600;
> &gt; &gt; max-lease-time 7200;
> &gt; &gt; option subnet-mask 255.255.255.0;
> &gt; &gt; option broadcast-address 192.168.1.255;
> &gt; &gt; option routers 192.168.1.1;
> &gt; &gt; option domain-name-servers 192.168.1.1;
> &gt; &gt; option domain-name &quot;gda.pl&quot;;
> &gt; &gt;}
> &gt; &gt;
> &gt; &gt;host client {
> &gt; &gt; hardware ethernet 00:30:4F:19:33:62;
> &gt; &gt; fixed-address 192.168.1.2;
> &gt; &gt;}
> &gt; &gt;
> &gt; na mój gust, brakuje opcji globalnych
> &gt;
>
> a dokladniej?
> to jest to co bylo w tutorialach...

Opcje globalne to On ma w subnet wrzucone ;)
 
Raport bledu wskazuje ze albo masz zle zakonczona ktoras komende, albo jest ona w niewlasciwym miejscu (to tak ogolnie, nietylko dhcpd). Sprobuj 1) zakomentowac wiekszosc opcji i odpalic, a jak ruszyc to sukcesywnie odkomentowywac nastepne opcje. 2) powywalac niektore opcje z subnetsection do global: a jak nie dasz rady to ex dhcpd conf:

############
# OGOLNE #
############

option domain-name "costam.net";
option domain-name-servers 194.204.159.1, 194.204.152.34;
ddns-update-style ad-hoc;
default-lease-time 21600;
max-lease-time 86400;

#############
# SUBNETY #
#############

subnet 192.168.1.0 netmask 255.255.255.248 {
   option routers 192.168.1.1;
   option subnet-mask 255.255.255.248;
}

###################
# Linie lUserow #
###################

#### eth0 ####

host machoni {
   hardware ethernet 00:00:00:00:00:00;
   fixed-address 192.168.1.3;
   option broadcast-address 192.168.1.7;
}
Received on Tue Jan 18 16:32:41 2005

This archive was generated by hypermail 2.1.8. Wyprawa Shackleton 2014