1 |
Hello, |
2 |
|
3 |
I have three subnets in my network. I wanted to give addresses on the LAN and |
4 |
WLAN networks by a DHCP server but my DHCP server is on a third subnet. So I |
5 |
used a DHCP relay. |
6 |
|
7 |
The problem was that I did not found any documentation which explains how to |
8 |
configure the ISC's DHCP server. The man page is not very clear, but still |
9 |
usable. Finally, I succeed ! Here is a sum up of my configuration : |
10 |
|
11 |
1. My network has 3 subnets (LAN, WLAN, DMZ) |
12 |
1a. The DHCP server (Gentoo) is in the DMZ |
13 |
1b. LAN & WLAN get their addresses using DHCP |
14 |
|
15 |
2. The DHCP Relay is on my router |
16 |
2a. I used "DHCP Forwarder" (http://www.nongnu.org/dhcp-fwd/) |
17 |
2b. Its configuration is (relevant parts only) : |
18 |
|
19 |
if vlan0 true false true # LAN |
20 |
if eth1 true false true # WLAN |
21 |
if vlan2 false true false # DMZ |
22 |
|
23 |
name vlan0 lan |
24 |
name eth1 wlan |
25 |
|
26 |
server ip 192.168.3.22 |
27 |
|
28 |
3. The configuration of the DHCP server is (relevant parts only) : |
29 |
|
30 |
class "wlan-clients" { |
31 |
match if option agent.circuit-id = "wlan"; |
32 |
} |
33 |
|
34 |
class "lan-clients" { |
35 |
match if option agent.circuit-id = "lan"; |
36 |
} |
37 |
|
38 |
subnet 0.0.0.0 netmask 0.0.0.0 { |
39 |
pool { |
40 |
range 192.168.2.100 192.168.2.200; |
41 |
allow members of "wlan-clients"; |
42 |
|
43 |
option routers 192.168.2.1; |
44 |
} |
45 |
|
46 |
pool { |
47 |
range 192.168.4.100 192.168.4.200; |
48 |
allow members of "lan-clients"; |
49 |
|
50 |
option routers 192.168.4.1; |
51 |
} |
52 |
} |
53 |
|
54 |
|
55 |
What do you think of this ? |
56 |
|
57 |
-- |
58 |
Nicolas MASSÉ |
59 |
Pour récupérer ma clef GPG: |
60 |
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 0x2A18C433 |
61 |
Key fingerprint: 6621 FC23 5DC7 54BA B952 316A 50B1 BC3F 2A18 C433 |