niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux
DHCP server problem
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
KerneL
*nix forums beginner


Joined: 28 Jan 2005
Posts: 37

PostPosted: Tue Feb 01, 2005 5:19 pm    Post subject: DHCP problem Reply with quote

Thx for the help but now i have one more problem:
Quote:

80.??.???.23 (incomplete) eth0
80.??.???.20 (incomplete) eth0
80.??.???.21 (incomplete) eth0

why i get this error (incomplete) my dhcp.conf is
Quote:

linux:~ # more /etc/dhcpd.conf
ddns-update-style ad-hoc;
max-lease-time 7200;
default-lease-time 600;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option domain-name-servers 80.??.???.3, 80.??.???.4;
option routers 192.168.0.254;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.1 192.168.0.150;
default-lease-time 14400;
max-lease-time 172800;
}
Back to top
mihai
*nix forums addict


Joined: 27 Jan 2005
Posts: 71

PostPosted: Tue Feb 01, 2005 1:41 pm    Post subject: re:DHCP server problem Reply with quote

it might help using :

/usr/sbin/iptables -t nat -I POSTROUTING -j MASQUERADE -s 192.168.0.1/24 -d ! 192.168.0.0/24

this way you will only masquarade packets that have a destination outside your local network.
Back to top
KerneL
*nix forums beginner


Joined: 28 Jan 2005
Posts: 37

PostPosted: Tue Feb 01, 2005 11:38 am    Post subject: DHCP server problem Reply with quote

I have this problem in /var/log/messages

Quote:
Feb 1 01:17:53 linux dhcpd: DHCPREQUEST for 192.168.0.102 from 00:40:ca:1b:48:f0 (Server) via eth0
Feb 1 01:17:53 linux dhcpd: DHCPACK on 192.168.0.102 to 00:40:ca:1b:48:f0 (Serv
Feb 1 01:17:53 linux kernel: MASQUERADE: Route sent us somewhere else.

Why? i have this route
/usr/sbin/iptables -t nat -I POSTROUTING -j MASQUERADE -s 192.168.0.1/24
My ifconfig is
eth0 Link encap:Ethernet HWaddr 00:0A:E6:D4:E0:46
inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20a:e6ff:fed4:e046/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26780825 errors:0 dropped:0 overruns:0 frame:0
TX packets:3368371 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1856109770 (1770.1 Mb) TX bytes:1416605621 (1350.9 Mb)
Interrupt:11 Base address:0xd400
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 1:52 pm | All times are GMT
navigation Forum index » *nix » Linux
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts Transfer qmail email account to postfix server tallman Postfix 0 Thu Jun 05, 2008 12:43 pm
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am

Adverse Credit Remortgage | Bad Credit Mortgages | Buy PSP | Mobile Phones | Free Ipod Nano
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2482s ][ Queries: 20 (0.1768s) ][ GZIP on - Debug on ]