how to create two dhcp scope in redhat 5

I am using microsoft dhcp and wanted to switch to linux dhcp.
And i wanted to use two range of ip

192.168.0.1-192.168.0.254
192.168.1.1- 192.168.1.254

can anybody help me?
chandar_bhandariAsked:
Who is Participating?
 
jbristleCommented:
In the simplest configuration you just need a single dhcp server, and a single config.
You add two subnet ranges to the dhcpd.conf.

Depending on what type of switches or routers you have, there are many ways to forward the dhcp requests from two seperate vlan's.
http://www.ciscopress.com/articles/article.asp?p=330807&seqNum=9



If you do not have switches or routers that can forward dhcp requests, you will need to run two different dhcpd daemons with two different config files, both having different scopes, one on each network interface.


0
 
jbristleCommented:
First start with the manual page for dhcpd.
http://linux.die.net/man/8/dhcpd
http://linux.die.net/man/5/dhcpd.conf

edit the /etc/dhcpd.conf with your favorite editor. It should have examples it in already.

You will need two scopes similar to this:

    subnet 239.252.197.0 netmask 255.255.255.0 {
      range 239.252.197.10 239.252.197.250;
      default-lease-time 600 max-lease-time 7200;
      option subnet-mask 255.255.255.0;
      option broadcast-address 239.252.197.255;
      option routers 239.252.197.1;
      option domain-name-servers 239.252.197.2, 239.252.197.3;
      option domain-name "isc.org";
    }
0
 
chandar_bhandariAuthor Commented:
hi jbristle:

but how to configure two different network in dhcp.
should we need two NIC and two dhcpd.conf file.
0
 
chandar_bhandariAuthor Commented:
THANKS
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.