Hi, I have build easy net on Slackware 9.0 and everything what I did work correctly except dhcpd daemon [maybe?].
I have IP 81.27.195.17 from provider connected to switch and from switch to my server-computer on device eth0. To switch is connected my wife with IP 10.0.0.4., my server-computer provide that IP and masquerade it. My wife has win95 and IP is set up as fix IP.
Net works correctly and is setup as follows:
1. IP, netmask, gw, DNS is from my provider
ifconfig eth0 81.27.195.17 netmask 255.255.255.128 up
route add default gw 81.27.195.1
[in /etc/resolv.conf is nameserver 81.27.192.32]
2. this is my private subnet - route add -net 10.0.0.0/24 eth0
3. forwarding - echo 1 > /proc/sys/net/ipv4/ip_forward
4. masquerade - iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 81.27.195.17
5. modules for ftp transactions from my subnet
imodprobe ip_nat_ftp, modprobe ip_conntrack_ftp
This is my /etc/dhcpd.conf :
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 81.27.195.17;
option domain-name-servers 81.27.192.32;
subnet 81.27.195.0 netmask 255.255.255.128 {not authoritative;}
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.5;
}
This is displayed when I start dhcpd daemon :
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on Socket/eth0/81.27.195.0/25
Sending on Socket/eth0/81.27.195.0/25
When I connect my notebook win2000 at home to my switch it
doesn't obtain IP, GW, DNS and SUBNET MASK automaticaly
although my notebook is setup to obtain IP and DNS
automaticaly from dhcp server [at my work it works].
When I wrote ps -aux I see that dhcpd is running.
I think that my notebook should obtain IP in range
10.0.0.2-5, GW 81.27.195.17, MASK 255.255.255.0 and
DNS 81.27.192.32.
Can you help why it doesn't work?
Thank you, Manek.
I have IP 81.27.195.17 from provider connected to switch and from switch to my server-computer on device eth0. To switch is connected my wife with IP 10.0.0.4., my server-computer provide that IP and masquerade it. My wife has win95 and IP is set up as fix IP.
Net works correctly and is setup as follows:
1. IP, netmask, gw, DNS is from my provider
ifconfig eth0 81.27.195.17 netmask 255.255.255.128 up
route add default gw 81.27.195.1
[in /etc/resolv.conf is nameserver 81.27.192.32]
2. this is my private subnet - route add -net 10.0.0.0/24 eth0
3. forwarding - echo 1 > /proc/sys/net/ipv4/ip_forward
4. masquerade - iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 81.27.195.17
5. modules for ftp transactions from my subnet
imodprobe ip_nat_ftp, modprobe ip_conntrack_ftp
This is my /etc/dhcpd.conf :
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 81.27.195.17;
option domain-name-servers 81.27.192.32;
subnet 81.27.195.0 netmask 255.255.255.128 {not authoritative;}
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.5;
}
This is displayed when I start dhcpd daemon :
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on Socket/eth0/81.27.195.0/25
Sending on Socket/eth0/81.27.195.0/25
When I connect my notebook win2000 at home to my switch it
doesn't obtain IP, GW, DNS and SUBNET MASK automaticaly
although my notebook is setup to obtain IP and DNS
automaticaly from dhcp server [at my work it works].
When I wrote ps -aux I see that dhcpd is running.
I think that my notebook should obtain IP in range
10.0.0.2-5, GW 81.27.195.17, MASK 255.255.255.0 and
DNS 81.27.192.32.
Can you help why it doesn't work?
Thank you, Manek.