LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2006, 12:35 AM   #1
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Rep: Reputation: 30
Question 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!

Last edited by PsychosisNode; 02-19-2006 at 08:29 AM.
 
Old 02-19-2006, 10:17 AM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
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"
 
Old 02-19-2006, 01:25 PM   #3
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Original Poster
Rep: Reputation: 30
Thanks

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sun Quad Fast Ethernet (Sbus) and DHCP zerg4141 Linux - Networking 9 03-28-2016 10:49 PM
Getting my DSL box to connect through a NIC on a windows box Tuxman8898 Linux - Networking 1 01-30-2006 06:40 AM
Quad port NIC with Tulip Problem meres Linux - Networking 2 12-29-2005 07:56 AM
dhcp does not assign IP to nic WurM Linux - Networking 5 02-25-2004 01:36 PM
nic/dhcp configuration humvee Linux - Newbie 4 10-07-2003 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration