ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem
Hi again folks,
I have finally got my Mandrake 10.1 to connect to the internet and Smaba is up & running. However, I am having trouble getting eth2 to serve up DHCP to an XP box hanging off my Linux.
Once I've rebooted and logged in it all works fine.
I mean I have to give eth2 a STATIC IP and then start dhcpd but it works fine.
Why I can't do this at bnoot time is beyond me.
As I understand it to have Linux as a DHCP server on the eth2 subnet eth2 needs a STATIC IP and the machine off eth2 set to Obtain IP Dynamically. Is this correct?
It's just at boot time I don't seem to set a STATIC IP on eht2 long enough for when dhcpd is started. As eth2 doesn't have an IP dhcpd fails to start - not configured to listen on any interface!! It may be that DHCPD itself is causing the STATIC IP to disappear?
I tried to hack the /etc/init.d/network script to set up an IP and it appears to do this but then when dhcpd comes along the IP disappears.
I shouldn't have to hack this script rea;;y.
First I tried putting in
ifconfig eth2 down
ifconfig eth2 192.168.4.1
ifconfig eth2 up
in /etc/rc.local but this was too late - DHCPD had been started by this time.
During boot I set up eth0 with a STATIC IP and it is BOOTPROTO=STATIC and this setting remains Ok. Just on eth2 where BOOTPROTO=DHCP is where I'm having a problem.
Is there a network config file for doing this?
Can anyone help please?