two network cards

Bazy bazy84 at gmail.com
Tue Mar 6 04:52:22 UTC 2007


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 <cra at wpi.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.
>
>


More information about the dhcp-users mailing list