Setting up DHCPd on firewall to serve 3 internal subnets
I have a simple Fedora Core 5 installation acting as a firewall bridging 4 subnets (3 internal). I want it to serve IP addresses to 3 of these subnets.
From everything I have read, DHCPd can't serve different IP ranges to different subnets (based on NIC)... Is there a way to achieve this that I'm missing? Thanks, MD |
Are you running vlans? Have separate ethernet cards per subnet?
You should be able to have dhcpd serve up a different block to each vlan or separate card. For doing it on the same nic without vlans I'm not sure, you might be able to do it if you have an alias on it in the block you want to serve. On debian and ubuntu you just edit the /etc/default/dhcp3-server file and tell it what interfaces you want to serve on and then in the server config file you just put in your different ip blocks, it sorts them out by the ips you have assigned to the various interfaces. |
I have 4 seperate NIC's, each with unique IP and range. Can you link/post a sample config?
|
not sure how exactly it is configured on fedora, but on debian-based distros like ubuntu you just need to update two files. for this example I'll assume that your 4 interfaces are configured as such:
eth0 : 10.1.1.1/24 eth1 : 10.1.2.1/24 eth2 : 10.1.3.1/24 eth3 : 10.1.4.1/24 then, update /etc/default/dhcp3-server (you'll have to find the equivalent file for fedora, since this is debian-specific) to contain: INTERFACES="eth0 eth1 eth2 eth3" and then your /etc/dhcp3/dhcpd.conf could contain: Code:
option domain-name "my.net"; |
All times are GMT -5. The time now is 10:08 AM. |