| Author |
Message |
KerneL *nix forums beginner
Joined: 28 Jan 2005
Posts: 37
|
Posted: Tue Feb 01, 2005 5:19 pm Post subject:
DHCP problem
|
|
|
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
|
Posted: Tue Feb 01, 2005 1:41 pm Post subject:
re:DHCP server problem
|
|
|
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
|
Posted: Tue Feb 01, 2005 11:38 am Post subject:
DHCP server problem
|
|
|
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 |
|
 |
|