DHCP Server
Valter
valter na atlas.cz
Středa Leden 14 19:45:13 CET 2004
Prajem pekny den.
>> 1) Vie mi niekto povedat, preco si dhcpd stazuje na to, ze nema
>> zadane udaje pre eth1 ?
> Od: Honza Houstek Ano. Protoze jste si neprecetl manual (cimz jste
> mimochodem porusil Meta-FAQ teto konference, protoze tohle
> prehlednout proste nejde).
Netvrdim, ze som dokonaly, a ze nic neprehliadnem.
Skuste to ale vysvetlit grepu
man dhcpd | grep dev
<nic>
man dhcpd.conf | grep dev
<nic>
man dhcpd | grep eth
hardware ethernet 08:00:2b:4c:59:23;
look something like this:
hardware ethernet 08:00:2b:4c:59:23;
man dhcpd.conf | grep eth
Parameter statements either say how to do something (e.g.,
how long a lease to offer), whether to do something (e.g.,
a department with a single physical ethernet network
may be necessary to run two 8-bit subnets on the same eth-
A typical dhcpd.conf file will look something like this:
two ethernet interfaces), both addresses are supplied to
example, there should be something like:
host ncd1 { hardware ethernet 0:c0:c3:49:2b:57; }
host ncd4 { hardware ethernet 0:c0:c3:80:fc:32; }
host ncd8 { hardware ethernet 0:c0:c3:22:46:81; }
host ncd2 { hardware ethernet 0:c0:c3:88:2d:81; }
host ncd3 { hardware ethernet 0:c0:c3:00:14:11; }
host ncd1 { hardware ethernet 0:c0:c3:11:90:23; }
host ncd4 { hardware ethernet 0:c0:c3:91:a7:8; }
host ncd8 { hardware ethernet 0:c0:c3:cc:a:8f; }
information to tell whether or not an IP address is on
described. The subnet number, together with the netmask,
are sufficient to determine whether any given IP address
The uunnkknnoowwnn--cclliieennttss flag is used to
tell dhcpd whether or
The bboooottpp flag is used to tell dhcpd whether or not to
The bboooottiinngg flag is used to tell dhcpd whether or not to
whether or not to look up the domain name corresponding to
hardware ethernet 08:00:2b:4c:29:32;
hardware ethernet 08:00:2b:4c:29:32;
Nic proti Vam osobne nemam, ale skor nez niekoho obvinite
z porusovania Meta-FAQ skuste RTFM. Vyzeta to tak, ze na
rozdiel od Vas som ho cital.
Pripadnu dalsiu diskusiu na tema "Porusovanie Meta FAQ"
smerujte do talk na linux.cz
> Interfacy na kterych ma poslouchat se dhcpd predavaji na prikazove
> radce, jinak posloucha na vsech (potrebujete neco jako dhcpd eth0,
> jak to resi vase distribuce si musite zjistit).
Som zvyknuty pustat tieto sluzby cez
service dhcpd start
Viem kde mam hldat patricny script, aj kde mam spravit
napravu, ale neviem ako. man v tomto pripade nepomohol.
> Od: Martin Damasek Pokud pustite standardne dhcpd, tak posloucha na
> eth0. Muzete mu ale specifikovat, na kterem interfacu ma slyset -
> napr. dhcpd eth2 - viz. man
Cakal som, ze bude "iba" na eth0. Chcel vsetko.
man viz vyssie.
> 2) Zrejme som niekde nastavil nejaku hovadinu, lebo mi z pocitaca za
>> firewalom s IP pridelenou od DHCP nesly dotazy na DNS. ping s IP
>> presiel. Zrejme najaka vec v dhcpd.conf
>
> No, asi jste proste nepridelil pomoci dhcp DNS. Tot vse ;-)
Zeby toto: ?
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;
Uz som to nasiel /* a nemusel som ani citat man :-) */
Len som ten dhcpd.conf.sample na prvy raz zle pochopil
/* a v tom vam ziadny FM nepomoze */
Zadal som IP adresu toho routera a nie DNS. Pretoze tam
DNS nebezi, tak poziadavka skoncila v /dev/null
------------------------
"Ak to funguje, tak do toho neryp"
"Ak si unaveny, nerob experimenty"
------------------------
Ing. Mayer Valter, Senec
Slovak Republic, Europe
Další informace o konferenci Linux