diff --git a/Python/etc/dhcp3/dhcpd.conf b/Python/etc/dhcp3/dhcpd.conf index 2e87d2b..6f00885 100644 --- a/Python/etc/dhcp3/dhcpd.conf +++ b/Python/etc/dhcp3/dhcpd.conf @@ -198,3 +198,25 @@ subnet 10.231.137.0 netmask 255.255.255.0 { filename "pxelinux.0"; } """ % ', '.join(config.dns.recursiv['evenementiel']) + +if has("vlan-federez"): + print """ +# Vlan wifi federez +subnet 10.53.0.0 netmask 255.255.0.0 { + interface eth7; + range 10.53.1.0 10.53.255.254; + default-lease-time 86400; + option subnet-mask 255.255.0.0; + option broadcast-address 10.53.255.255; + next-server 138.231.136.98; + option ip-forwarding off; + authoritative; + option root-path "/"; + option routers 10.53.0.4; + option domain-name-servers %s; + option domain-name "crans.org"; + option domain-search "crans.org"; + # Fichier a charger pour le boot par le reseau + filename "pxelinux.0"; +} +""" % ', '.join(config.dns.recursiv['fil'])