LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-23-2007, 08:06 AM   #1
Linux For Ever
Member
 
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49

Rep: Reputation: 15
dhcpd doesn't work in sw9


Hi everyone.

I got a problem with dhcpd in slackware 9.

My network connected to the server on eth1 192.168.1.1

this is my configure file:

Code:
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;



subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.2 192.168.1.20;
  option domain-name "red-sniper.com";
  option domain-name-servers 192.168.1.1;
  option routers 192.168.1.1;
  option broadcast-address 192.168.1.255;

}
i type dhcpd eth1 to run dhcpd service. seems like it run without problem.

Code:
Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.
Listening on Socket/eth1/192.168.1.0/24
Sending on   Socket/eth1/192.168.1.0/24
nobody in my network can use dynamic IP.

this is my firewall.

Code:
#!/bin/bash

EXT_DEV=ppp0
INT_DEV=eth1
INT_NET=192.168.1.0/24

iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X

iptables -P INPUT   DROP
iptables -P OUTPUT  ACCEPT
iptables -P FORWARD DROP

iptables -A INPUT  -i lo -s 127.0.0.0/8 -d 127.0.0.0/8 -j ACCEPT

iptables -A INPUT   -p icmp -j ACCEPT
iptables -A FORWARD -p icmp -j ACCEPT

iptables -A INPUT  -i eth1 -s $INT_NET -d $INT_NET -j ACCEPT

iptables -A FORWARD -i $INT_DEV -o $EXT_DEV -j ACCEPT    ##

iptables -t nat -A POSTROUTING -o $EXT_DEV -s $INT_NET -j MASQUERADE ##

iptables -A INPUT   -i $EXT_DEV -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i $EXT_DEV -m state --state RELATED,ESTABLISHED -j ACCEPT

iptables -t nat -A PREROUTING -i $INT_DEV -s $INT_NET -d ! $INT_NET -p tcp -m multiport --dport 80  -j REDIRECT --to-port 3128 ##
can you help me?
 
Old 12-23-2007, 09:17 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Without the following present in /etc/dhcpd.conf:
Code:
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
your DHCP server will never talk to a DHCP client.

Eric
 
Old 12-23-2007, 12:08 PM   #3
Linux For Ever
Member
 
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49

Original Poster
Rep: Reputation: 15
I added authoritative; but it's doesn't work.

I think this is dependences issue.
 
Old 12-23-2007, 12:32 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
It still does not work because your firewall blocks DHCP requests.

Eric

BTW What does "how to become a muslim" have to do with a Linux forum?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PXE booting an iso plus DHCPd won't work :S Person_1873 Linux - Newbie 8 02-15-2008 01:35 AM
DHCPd not seeming to work... GeekMasterFlash Linux - Networking 2 07-31-2006 06:39 AM
dhcpd wlan0 does not work AP81 Slackware 2 04-18-2005 05:49 PM
dhcpd (server) doesn't work !!! exalik Mandriva 1 09-03-2003 04:44 AM
dhcpd server leases wont work :( hath Linux - Networking 4 02-21-2002 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration