Hello,

I have three subnets in my network. I wanted to give addresses on the LAN and 
WLAN networks by a DHCP server but my DHCP server is on a third subnet. So I 
used a DHCP relay. 

The problem was that I did not found any documentation which explains how to 
configure the ISC's DHCP server. The man page is not very clear, but still 
usable. Finally, I succeed ! Here is a sum up of my configuration :

1. My network has 3 subnets (LAN, WLAN, DMZ)
1a. The DHCP server (Gentoo) is in the DMZ
1b. LAN & WLAN get their addresses using DHCP

2. The DHCP Relay is on my router
2a. I used "DHCP Forwarder" (http://www.nongnu.org/dhcp-fwd/)
2b. Its configuration is (relevant parts only) :

if      vlan0   true    false   true # LAN
if      eth1    true    false   true # WLAN
if      vlan2   false   true    false # DMZ

name    vlan0   lan
name    eth1    wlan

server  ip      192.168.3.22

3. The configuration of the DHCP server is (relevant parts only) :

class "wlan-clients" {
  match if option agent.circuit-id = "wlan";
}

class "lan-clients" {
  match if option agent.circuit-id = "lan";
}

subnet 0.0.0.0 netmask 0.0.0.0 {
  pool {
    range 192.168.2.100 192.168.2.200;
    allow members of "wlan-clients";

    option routers 192.168.2.1;
  }

  pool {
    range 192.168.4.100 192.168.4.200;
    allow members of "lan-clients";

    option routers 192.168.4.1;
  }
}


What do you think of this ? 

-- 
Nicolas MASSÉ
Pour récupérer ma clef GPG:
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 0x2A18C433
Key fingerprint: 6621 FC23 5DC7 54BA B952 316A 50B1 BC3F 2A18 C433

Attachment: pgpZ5giaeJGS8.pgp
Description: PGP signature

Reply via email to