View previous topic :: View next topic |
Author |
Message |
blackbrow n00b


Joined: 07 Jun 2003 Posts: 11
|
Posted: Sun Aug 31, 2003 7:00 pm Post subject: DHCPD and SQUID married to eth0 |
|
|
I can't figure out why squid and DHCPD insist on activating eth0 (especially when it is already up and running).
The box is being used a firewall for my home network.
eth0 is the external interface, eth1 the internal.
On startup, my Gentoo box will not get a DHCP lease for eth0.
Initially the DHCPD server would not run at startup unless eth0 had an IP address. I had to take out the from the startup script in and then it would run to listen on eth1 on boot.
I have had to add a cron job to run which happily gets a lease.
I have now noticed that when I start squid it wants to bring eth0 up also. I know this is related to the dependancy of net in the start script, but, when both interfaces are up, why is it doing this?
I suppose the clue would be to get eth0 to get it's lease on boot, but for some reason dhcpcd is failing.
Any help appreciated.
[/quote] |
|
Back to top |
|
 |
herring Apprentice


Joined: 22 Jul 2002 Posts: 187 Location: Norway
|
Posted: Mon Sep 01, 2003 9:16 pm Post subject: Re: DHCPD and SQUID married to eth0 |
|
|
Code: | gateway etc # cat conf.d/dhcp
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-x86/net-misc/dhcp/files/conf.dhcpd,v 1.4 2002/09
/03 07:40:14 lostlogic Exp $
#configure which interface or interfaces to for dhcp to listen on
#list all interfaces space separated.
IFACE="eth1"
# Insert any other options needed
#DHCPD_OPTS="-q"
gateway etc # |
Code: |
gateway etc # cat dhcp/dhcpd.conf
# dhcpd.conf
#
# dhcpd for LAN clients
#
# Global parameters
#authoritative;
#deny bootp;
ddns-update-style none;
default-lease-time 2592000;
max-lease-time 5184000;
option domain-name "gentoo.lan";
option domain-name-servers 192.168.1.1;
# Define subnet
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.253;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
#deny duplicates;
}
gateway etc #
|
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|