List Info

Thread: two network cards




two network cards
country flaguser name
Canada
2007-03-05 19:24:26
I am running dhcpd on eth0, and I need to provide dhcp
service through a new ethernet card (eth1) for a private
subnet 10.0.2.0/24. Could anyone tell me that how I could do
this?
   
  Do I need to create another dhcpd.conf file and run
another instance of dhcpd? where will the lease files and
log files go? Thanks!

             
  Luc










Re: two network cards
country flaguser name
United States
2007-03-05 20:33:41
On Mon, Mar 05, 2007 at 05:24:26PM -0800, Luc T. wrote:
> I am running dhcpd on eth0, and I need to provide dhcp
service 
> through a new ethernet card (eth1) for a private subnet
10.0.2.0/24. 
> Could anyone tell me that how I could do this?
>    
>   Do I need to create another dhcpd.conf file and run
another 
>   instance of dhcpd? where will the lease files and log
files go? 
>   Thanks!

Nope, you simply add another subnet declaration to your
existing 
dhcpd.conf:

subnet 10.0.2.0 netmask 255.255.255.0 {
	option subnet-mask 255.255.255.0;
	option routers 10.0.2.1;
	pool {
		range ...
	}
}

You can have as many subnet {} blocks as you need.


Re: two network cards
user name
2007-03-05 22:52:22
This way, will dhcp assign IPs from the first subnet on eth0
and from
the second subnet on eth1?

Thank you

On 3/6/07, Chuck Anderson <crawpi.edu> wrote:
> On Mon, Mar 05, 2007 at 05:24:26PM -0800, Luc T.
wrote:
> > I am running dhcpd on eth0, and I need to provide
dhcp service
> > through a new ethernet card (eth1) for a private
subnet 10.0.2.0/24.
> > Could anyone tell me that how I could do this?
> >
> >   Do I need to create another dhcpd.conf file and
run another
> >   instance of dhcpd? where will the lease files
and log files go?
> >   Thanks!
>
> Nope, you simply add another subnet declaration to your
existing
> dhcpd.conf:
>
> subnet 10.0.2.0 netmask 255.255.255.0 {
>         option subnet-mask 255.255.255.0;
>         option routers 10.0.2.1;
>         pool {
>                 range ...
>         }
> }
>
> You can have as many subnet {} blocks as you need.
>
>


Re: two network cards
country flaguser name
United Kingdom
2007-03-06 01:49:44
Bazy wrote:
>This way, will dhcp assign IPs from the first subnet on
eth0 and from
>the second subnet on eth1?

Yes, the server will take care of matching a clients network
location 
with the appropriate subnet mask. This happens regardless of
whether 
the client is one a directly connected network, or a remote
network 
serviced via a relay agent.

This does assume that the two network cards are connected to

different networks, if you connect the two cards to the same
physical 
network (ie create a shared subnet) then things are
different and 
need a little more work.



Re: two network cards
country flaguser name
United States
2007-03-06 01:54:02
On Tue, Mar 06, 2007 at 06:52:22AM +0200, Bazy wrote:
> This way, will dhcp assign IPs from the first subnet on
eth0 and from
> the second subnet on eth1?

Yes, assuming eth0 and eth1 are configured with different IP
subnets.  
The server matches requests to the subnet they came in from
(either 
directly attached interfaces or through a relay agent).


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )