DHCP server with two network cards

DHCP server with two network cards

Post by kristia » Wed, 15 Mar 2006 17:31:29



Hi all

I have a server running suse9.2 pro with two network interfaces. The
two cards are connected to two separate networks, and the server should
be the dhcp server on both networks.

Preferably I should be able to have separate ip ranges on the two
networks, but this is not a show stopper.

Any hints are very welcome.

--
K

 
 
 

DHCP server with two network cards

Post by Thomas Bosc » Wed, 15 Mar 2006 18:42:49



> Hi all

> I have a server running suse9.2 pro with two network interfaces. The
> two cards are connected to two separate networks, and the server should
> be the dhcp server on both networks.

> Preferably I should be able to have separate ip ranges on the two
> networks, but this is not a show stopper.

> Any hints are very welcome.

This is no problem.

two "subnet 192.168.x.x netmask 255.255.255.0 { ... }" are enough.

If the the two cards are configured for example with the IPs 192.168.0.1 and
192.168.1.1 then the "x" from above are "0.1" and "1.1".

Inside the brakets "{ }" are other options, I think you know. Or not?

        Thomas

 
 
 

DHCP server with two network cards

Post by kristia » Wed, 15 Mar 2006 20:56:54




> > Hi all

> > I have a server running suse9.2 pro with two network interfaces. The
> > two cards are connected to two separate networks, and the server should
> > be the dhcp server on both networks.

> > Preferably I should be able to have separate ip ranges on the two
> > networks, but this is not a show stopper.

> > Any hints are very welcome.

> This is no problem.

> two "subnet 192.168.x.x netmask 255.255.255.0 { ... }" are enough.

> If the the two cards are configured for example with the IPs 192.168.0.1 and
> 192.168.1.1 then the "x" from above are "0.1" and "1.1".

> Inside the brakets "{ }" are other options, I think you know. Or not?

>         Thomas

Great

I just thought it had to be more difficult, so I never tried that...

Thanks

--
K

 
 
 

1. dhcp server and two network cards

Hello,

I have a little problem with my dhcpd configuration. When I start it
(/usr/bin/dhcpd -d -f) I receive the message
Internet Software Consortium DHCPD $Name: V2-BETA-1-PATCHLEVEL-6 $
Copyright 1995, 1996, 1997, 1998 The Internet Software Consortium.
All rights reserved.
No subnet declaration for eth1 (xxx.xxx.xxx.xxx).
exiting.

how can i fix this problem ???
This is my dhcp.conf file:
-------------------------------------------------------
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1;
option domain-name "xxxxxxxxx.xx";

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.40 192.168.1.98;

Thanks,

Freek

2. DirecPC under Mandrake 5.3 (redhat)

3. two network cards, two(?) networks, one computer...

4. Strange PPPD activity.

5. Two network cards and DHCP trouble

6. ext2_unlink fun

7. Two network cards, one with DHCP

8. Cable modem: Yet another newbie

9. Two DHCP servers on the network

10. DHCP server config for two networks

11. dhcp server on two networks

12. DHCP server for Linux having two ethernet cards

13. DHCP Server with Two Ethernet Cards