W. Chris Shank on Wed, 27 Mar 2002 16:48:34 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] DHCP and eth1


I actually just had this problem today - the key is to make sure that dhcpd 
starts with eth0 after it. problem is, if you are using redhat and have the 
init script /etc/rc.d/init.d/dhcpd start - it won't allow you to add the eth0 
arg. what i did was to just alter the actual init script so that when dhcpd 
is started, it always sends eth0 too. crude but effective. also - if you are 
using SuSE, there is an option in the config editor to assign dhcp to 
devices. this is much more elegant than my way.



On Wednesday 27 March 2002 02:04 pm, you wrote:
> Hi list,
>
> I wrote a dhcpd.conf file in my etc directory, I cut and paste it below. 
> When I go to run dhcp, it gives me this error: "Please write a declartion
> for the network segment to which the interface Eth1 is attached.  Exiting"
>
> Eth1 is the internet connection, and eth0 is the LAN conneciton.
>
> Any thoughts?
>
> Thanks
>
> Anthony
>
>
>
>
>
>
>
>
> default-lease-time 600;
> max-lease-time 7200;
> option subnet-mask 255.255.255.0;
> option broadcast-address 192.168.1.255;
> option routers 192.168.1.254;
> option domain-name-servers 192.168.1.1, 192.168.1.2;
> option domain-name "mydomain.org";
>
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
> 	range 192.168.1.10 192.168.1.100;
> 	range 192.168.1.150 192.168.1.200;
>
> ______________________________________________________________________
> Philadelphia Linux Users Group       -      http://www.phillylinux.org
> Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
> General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug

______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug