[ SlackList ] [ WkikiSlack ] |
> > ># dhcpd.conf
> > >#
> > ># Configuration file for ISC dhcpd (see 'man dhcpd.conf')
> > >#
> > >
> > >subnet 192.168.1.0 netmask 255.255.255.0 {
> > > range 192.168.1.2 192.168.1.254;
> > > ddns-update-style ad-hoc;
> > > default-lease-time 600;
> > > max-lease-time 7200;
> > > option subnet-mask 255.255.255.0;
> > > option broadcast-address 192.168.1.255;
> > > option routers 192.168.1.1;
> > > option domain-name-servers 192.168.1.1;
> > > option domain-name "gda.pl";
> > >}
> > >
> > >host client {
> > > hardware ethernet 00:30:4F:19:33:62;
> > > fixed-address 192.168.1.2;
> > >}
> > >
> > na mój gust, brakuje opcji globalnych
> >
>
> 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