Hi all,
My current simple network setup involves a single Router
(Billion 5102s) acting as a DHCP Server, passing I.P. addresses via ethernet switches to all the LAN client PC's.
(BTW, every PC in the LAN is running Slackware 12.0 - 12.2).
When my Server P.C
(which is always on) is Router assigned an I.P address of 192.168.1.100, everything works correctly with my Router configured Network Address Translations (NAT). I am able to ssh, remote control login (krdc), FTP serve, Internet game serve ... etc.. so all happy.
However if there is ever a power fluctuation, and there are any other PC's connected to the Network, for some reason when the systems repower, the Router assigns 192.168.1.100 to one of the other systems and the Server gets assigned some other new I.P. address (which is very frustrating as then, none of my NAT settings will work and I am unable to remotely administer my Server PC.
So I would
like to take DHCP control away from the Router, and
give it exclusively to the Slackware Server PC.
[My theory being, that the Server will always DHCP configure itself with the NAT happy I.P. 192.168.1.100, and then the Server PC can assign DHCP I.P. address dynamically to all the other PC's on the Network as they are connected (what I.P. addresses the other P.C's get is irrelevant) ]
Also, as my Network PC's fluctuate I want to remain using DHCP and not go to Static I.P. addressing.
So can Slackware do this (DHCP Server)?
----
I have been reading my router manual (DHCP Server section), and it says that it can 'Relay' DHCP control to an I.P. address, so this looks promising ....
----
After more reading on this forum, I have discovered that I can (apparently) make my Server PC have a specific I.P. address by editing /etc/rc.d/rc.inet1.conf, and in eth0 section add:
Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="SERVER"
DHCP_IPADDRESS[0]="192.168.1.100"
So this sounds even more promising, that should mean that I can give the Router a 'Relay' DHCP setting and have it look for 192.168.1.100 (ServerPC) for DHCP. (havn't tried it yet).
How then would I turn my Server PC from a DHCP client (getting it's IP from Router), into a DHCP Server (assigning out all IP's to itself and everything else)?
Are there further configurations required in /etc/rc.d/rc.inet1.conf?, or is Slackware DHCP server settings controlled from somewhere else in the filesystem?
Thanks very much for any assistance or tips with this configuration.
I'll look forward to hearing from you.
Cheers