LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP issues on quad-NIC box (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-issues-on-quad-nic-box-417057/)

PsychosisNode 02-19-2006 12:35 AM

DHCP issues on quad-NIC box
 
Hello, I'm rather new to the whole networking shebang, but I'm having a go anyway ;)

I have a box with a D-Link DFE-580TX card (four ports) with one port, eth2, connected to a DSL router for internet access. The intention is to eventually set it up as a squid/firewall/clamav/traffic shaper box. I'm using Mandriva 2006.

I need DHCP the other three ports (eth0, eth1 and eth3) so that clients can connect, and this is where the problem starts. dhcpd starts with no error messages at all, but only clients on eth1 can connect.

Here are the configuration files I've been playing with:

/etc/dhcpd.conf:
Code:

ddns-update-style none;

# eth3, LAN
subnet 192.168.0.0 netmask 255.255.255.0 {
        # default gateway
        option routers 192.168.0.1;
        option subnet-mask 255.255.255.0;

        option domain-name "localhost";
        option domain-name-servers 10.0.0.2;

        range dynamic-bootp 192.168.0.16 192.168.0.253;
        default-lease-time 21600;
        max-lease-time 43200;
}

# eth1, DMZ
subnet 192.168.1.0 netmask 255.255.255.0 {
        # default gateway
        option routers 192.168.1.1;
        option subnet-mask 255.255.255.0;

        option domain-name "localhost";
        option domain-name-servers 10.0.0.2;

        range dynamic-bootp 192.168.1.16 192.168.1.253;
        default-lease-time 21600;
        max-lease-time 43200;
}

# eth0, WiFi
subnet 192.168.2.0 netmask 255.255.255.0 {
        # default gateway
        option routers 192.168.2.1;
        option subnet-mask 255.255.255.0;

        option domain-name "localhost";
        option domain-name-servers 10.0.0.2;

        range dynamic-bootp 192.168.2.16 192.168.2.253;
        default-lease-time 21600;
        max-lease-time 43200;
}

/etc/sysconfig/dhcpd :
Code:

# You can set here various option for dhcpd

# Which configuration file to use.
CONFIGFILE="/etc/dhcpd.conf"

# Where to store the lease state information.
LEASEFILE="/var/lib/dhcp/dhcpd.leases"

# Define INTERFACES to limit which network interfaces dhcpd listens on.
# The default null value causes dhcpd to listen on all interfaces.
#INTERFACES=""

# Define OPTIONS with any other options to pass to the dhcpd server.
# See dhcpd(8) for available options and syntax.
OPTIONS="-q"

INTERFACES="eth3"
INTERFACES="eth1"
INTERFACES="eth0"

/etc/sysconfig/network-scripts/ifcfg-eth0
Code:

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.2.1
NETMASK=255.255.255.0
NETWORK=192.168.2.0
BROADCAST=192.168.2.255
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=yes
IPV6INIT=no
IPV6TO4INIT=no
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.2.1

/etc/sysconfig/network-scripts/ifcfg-eth1
Code:

DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=yes
IPV6INIT=no
IPV6TO4INIT=no
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.1


/etc/sysconfig/network-scripts/ifcfg-eth2
Code:

DEVICE=eth2
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=yes
USERCTL=yes
IPV6INIT=no
IPV6TO4INIT=no
PEERDNS=yes
DHCP_CLIENT=dhclient
NEEDHOSTNAME=yes
PEERDNS=yes
PEERYP=no
PEERNTPD=no


/etc/sysconfig/network-scripts/ifcfg-eth3
Code:

DEVICE=eth3
BOOTPROTO=static
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=yes
IPV6INIT=no
IPV6TO4INIT=no
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.0.1

I have no idea of what could be causing this behaviour. Any help is much apreciated.

Cheers!

RobertP 02-19-2006 10:17 AM

I am not using Mandriva but it looks like only the last INTERFACES line is used so you may need to make it INTERFACES = "eth1 eth3"

PsychosisNode 02-19-2006 01:25 PM

Thanks
 
Thankyou, that seems to have got DHCP working on all three interfaces. Now to start on the rest of the problems!


All times are GMT -5. The time now is 11:05 PM.