DHCP on multiple internal networks?

Hi,

I have a home network (power-user home license) with 2 internal networks: INT and Wireless.

How can I run astaro's DHCP on both networks?

I assume I can probably modify the .conf file
/var/chroot-dhcps/etc/dhcp.conf

but what about firewall rules? Will they need to be modified?

Thanks,
Barry
Parents Reply Children
  • I've been trying to get my ASL box to serve DHCP requests on 2 interfaces for about 3 hours now and have met with failure. I've tried "group", "shared-network", "server-identifier". I cannot get it to work. I can get it to issue a fixed IP address by MAC on the DMZ interface but not anything from the "range". The packet filters I set up via script in the back end work fine. I know someone has figured this out. Please give me a little help here, I'd really appreciate it. 
  • Jim, on ASL3, the only thing I had to modify was the dhcp server conf files (added a zone for the second network).

    Make sure you can get it working on the first network before you try to modify it though.

    I don't remember anything about groups... are you using 3.x or 4.x?  
  • Here's what I added to the /var/chroot-dhcps/etc/dhcpd.conf-default to enable a second DHCP network:
    Code:
    fw:/var/chroot-dhcps/etc # diff dhcpd.conf-default dhcpd.conf-default_orig 
    43,49d42

     

    I didn't have to change any packet-filter rules or anything else.   
  • I'm using 4.009. I got it working on 2 interfaces. I created a set of interface specific rules like those in AUTO_INPUT and AUTO_OUTPUT for dhcp on the second interface. Then I start a second dhcpd and specify the eth2 interface in the startup script. With just a hack to the dhcpd.conf-default file I couldn't get it to issue IPs in the range, just reserved IPs by MAC. Now both interfaces issue IPs from their configured ranges and IPs reserved by MAC. Now I need to tar.gz it together so I can reproduce it if I need to rebuild my ASL machine. 
  • OK. I forgot to mention that I also had to modify the 
    /etc/rc.d/dhcpd
    script, adding 'eth4' after $ARGS on the START line:
    chroot $CR /usr/sbin/dhcpd  $ARGS eth4 || ret_code=1

    If you do this, you should only need one daemon running.

    (eth4 is on our second dhcp network)

    Barry  
  • Ahhhhh. I see. I'll give it a try. It'd be better than creating the chroot-dhcps2 file system etc, etc, etc. We'll see if my request for a PUL get approved or not. If it doesn't I'll have to re-think my Wireless access point layout.