[ LUGOS ] DHCP server
Miha Strohsack
strozi na mindless.com
Tor Feb 23 17:55:05 CET 1999
Ziv!
Imam probleme z postavitvijo DHCP serverja.
Server ima IP 192.168.100.1 kjer tece tudi DNS za fake domeno vse skupaj
pa se povezuje preko ppp-ja v inet. Kernel je 2.2.2.
netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
255.255.255.255 * 255.255.255.255 UH 0 0 0 eth0
192.168.100.0 tron. 255.255.255.0 UG 0 0 0 eth0
192.168.100.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
Ko je stvar povezana z inetom je tukaj se default gateway.
Ko hocem zagnati dhcpd mi pa napise:
Internet Software Consortium DHCP Server V2.0b1pl14
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.
Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html
Open a socket for LPF: Invalid argument
exiting.
Problem se ocitno pojavlja v netmasku pri definiciji subneta saj ce ga
spremenim v recimo 255.255.0.0 mi pac normalno javi da range ni na netu
192.168.100.0/255.255.0.0
Prilagam pa se dhcpd.conf ki je cisto enostavna:
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.100.255;
option routers 192.168.100.1;
option domain-name-servers 192.168.100.1;
option domain-name "fake.do";
subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.6 192.168.100.10;
}
Kaj sem pozabil, spregledal, narobe skonfiguriral?
bye
---
--------------------------------------------
Miha Strohsack
http://members.tripod.com/~strozi
finger miha.strohsack na campus.fri.uni-lj.si
for public PGP 5 key
--------------------------------------------
Dodatne informacije o seznamu Starilist