LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-14-2005, 02:18 PM   #1
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Rep: Reputation: 30
DHCP server with two NICs


I enabled a dhcp server with the following configuration:

subnet 10.0.0.0 netmask 255.0.0.0
{
range 10.0.0.10 10.0.0.20;
default-lease-time 600;
max-lease-time 7200;

option routers 10.0.0.1;
option domain-name-servers 10.0.0.1;
option broadcast-address 10.0.0.255;
option ip-forwarding on;

host three
{
hardware ethernet 00:09:6b:64:f6:d0;
fixed-address 10.0.0.233;
}
}

while it was starting it gave me that message:

No subnet declaration for eth1 (20.0.0.1).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **

How can i let it know that i have two NICs so it will give addresses according to the subnet i match to each NIC?
 
Old 02-14-2005, 04:30 PM   #2
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
I believe from my attempt in using the DHCP server that declaring another subnet mathing the other nic will work just fine.

dhcpd already knows that you have multiple NICs, the message in the logs indicatest that.

lemme know...
 
Old 02-14-2005, 04:51 PM   #3
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
Yep it knows...

It only requires to define the subnets which include the NICs

For instance if eth0 is 10.0.0.1 and eth1 is 20.0.0.1 then the subnets definition will be

subnet 10.0.0.0 netmask 255.0.0.0
{
<all the options and ranges>

}


subnet 20.0.0.0 netmask 255.0.0.0
{
<all the options and ranges>

}

and all the hosts that connect to the nics will get addresses in that subnet according to the nic.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
dhcp and 2 nics mikz Linux - Networking 3 01-27-2005 04:38 PM
2 DHCP scopes 1 server 2 NICs DevZer0 Linux - Networking 1 09-27-2004 07:47 PM
Intermitent dhcp problem with 2 NICS Rekna Linux - Networking 2 06-20-2004 07:25 PM
Slackware 8.1 - Two NICs and DHCP Gn0me Linux - Networking 5 05-15-2003 04:38 AM
DHCP server with multiple nics and subnets hawkpaul Linux - Networking 6 12-20-2001 08:32 AM


All times are GMT -5. The time now is 12:22 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration