Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCPD and SQUID married to eth0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
blackbrow
n00b
n00b


Joined: 07 Jun 2003
Posts: 11

PostPosted: Sun Aug 31, 2003 7:00 pm    Post subject: DHCPD and SQUID married to eth0 Reply with quote

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
Code:
USE named
from the startup script in
Code:
/etc/init.d/dhcp
and then it would run to listen on eth1 on boot.

I have had to add a cron job to run
Code:
/sbin/dhcpcd eth0
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
View user's profile Send private message
herring
Apprentice
Apprentice


Joined: 22 Jul 2002
Posts: 187
Location: Norway

PostPosted: Mon Sep 01, 2003 9:16 pm    Post subject: Re: DHCPD and SQUID married to eth0 Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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