WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   Linux & DHCP Server (http://www.wcm.at/forum/showthread.php?t=173878)

callas 13.09.2005 10:02

poste mal deine dhcpd conf, dan kann man dir ev. helfen.

wozu den key ? willst du dynamic dns update machen ? probiers zuerst ohne.


http://www.ibiblio.org/pub/Linux/docs/HOWTO/DHCP

Code:

# Sample /etc/dhcpd.conf
# (add your comments here)
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.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.org";

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.10 192.168.1.100;
  range 192.168.1.150 192.168.1.200;
}

  This will result in DHCP server giving a client an IP address from the
  range 192.168.1.10-192.168.1.100 or 192.168.1.150-192.168.1.200. It
  will lease an IP address for 600 seconds if the client doesn't ask for
  specific time frame. Otherwise the maximum (allowed) lease will be
  7200 seconds. The server will also "advise" the client that it should
  use 255.255.255.0 as its subnet mask, 192.168.1.255 as its broadcast
  address, 192.168.1.254 as the router/gateway and 192.168.1.1 and
  192.168.1.2 as its DNS servers.
 
  If you need to specify a WINS server for your Windows clients you will
  need to include the netbios-name-servers option e.g.
option netbios-name-servers 192.168.1.1;

  You can also assign specific IP addresses based on clients ethernet
  address e.g.
host haagen {
  hardware ethernet 08:00:2b:4c:59:23;
  fixed-address 192.168.1.222;
}


Tower 13.09.2005 10:44

ohne key hat er gemeint er kann den ddns nicht abgleichen.

shared-network mstoeger.net {
subnet 192.168.30.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.30.220 192.168.30.229;
}
}
zone mstoeger.net. {
primary 192.168.30.10;
key rndckey;
}
key rndckey {
secret PwD8EX0jrxmSZlEMCH1hp8VHQhoLzJBYialXIIzN7dfq5lb1rZ OYzx5TAv6n;
algorithm hmac-md5;
}


das ist meine konfig jetzt erstellt über webmin

midas 13.09.2005 11:12

Und gehts mit dem über webmin erstellten key jetzt?

Tower 13.09.2005 11:17

nein das ist ja mein problem.
werd jetzt callas config testen.

Tower 13.09.2005 11:19

callas config

diese fehlermeldung:

dhcpd starten: Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

** You must add a global ddns-update-style statement to /etc/dhcpd.conf.
To get the same behaviour as in 3.0b2pl11 and previous
versions, add a line that says "ddns-update-style ad-hoc;"
Please read the dhcpd.conf manual page for more information. **

ich steh an muss ich zugeben

callas 13.09.2005 12:20

Code:

ddns-update-style none;
mal zum testen ohne DDNS.

Tower 13.09.2005 12:46

config:

# Sample /etc/dhcpd.conf
# (add your comments here)
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.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.org";
ddns-update-style none

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

host haagen {
hardware ethernet 08:00:2b:4c:59:23;
fixed-address 192.168.1.222;
}


fehler:

Das Starten des dhcpd schlug fehl :

dhcpd starten: Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/etc/dhcpd.conf line 12: semicolon expected.
subnet
^
/etc/dhcpd.conf line 15: expecting a parameter or declaration
}
^
Configuration file errors encountered -- exiting

es ist zum heulen :heul:

Tower 13.09.2005 12:46

config:

# Sample /etc/dhcpd.conf
# (add your comments here)
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.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.org";
ddns-update-style none

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

host haagen {
hardware ethernet 08:00:2b:4c:59:23;
fixed-address 192.168.1.222;
}


fehler:

Das Starten des dhcpd schlug fehl :

dhcpd starten: Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/etc/dhcpd.conf line 12: semicolon expected.
subnet
^
/etc/dhcpd.conf line 15: expecting a parameter or declaration
}
^
Configuration file errors encountered -- exiting

es ist zum heulen :heul:

callas 13.09.2005 15:35

na geh, semikolon=strichpunkt

in zeile 12 ( ddns-update ....;)

alle isc proggis ( dhcpd, bind ) sind sehr happig bezüglich der richtigen schreibweise ....

Tower 13.09.2005 15:37

jetzt stehe ich glaub ich auf der leitung :)


Alle Zeitangaben in WEZ +2. Es ist jetzt 21:44 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag