Discussion Locked

dhcp leases 'subnetting the network'

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I have a Redhat6.2 server with 4 network cards, I would like each nic to serve a particular subnet through dhcpd.
Is it possible to specify which card will supply which subnet or would I have to use groups?
From what I can see dhcpd will merely assign an IP address when requested and will not care (or know) on which nic the request originated.
Thanks
Ian

3 replies

by zbrain75

When you set the dhcpd leases file you specify a subnet wich would be associated with the NIC with an IP address relative to that subnet. In otherwords the subnets are set up in groups in the configuration file. The following example start of the /etc/dhcpd.conf file demonstrates that:
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers ....
.
.
range 192.168.1.10 192.168.1.250;
.
.
}

See the DHCP mini how-to at:
http://www.linuxdoc.org/HOWTO/mini/DHCP/index.html

Also read the dhcpd.conf man page. There is an additional document on dhcp at:
http://ctdp.homestead.com/files/os/linux/usersguide
Item 44 talks about DHCP configuration.

This discussion is closed to new replies.