On vire les ip dynamiques de l'ancien Hotspot ENS.
darcs-hash:20070906223422-1dcb7-657e3e2472325cf30ecf03e48752f3a9a836afb9.gz
This commit is contained in:
parent
c44dc7748b
commit
9bf9fcfc4a
1 changed files with 17 additions and 16 deletions
|
@ -33,23 +33,24 @@ class dhcp(gen_config) :
|
|||
base_conf = """option option-252 code 252 = text ;
|
||||
option option-119 code 119 = text ;
|
||||
"""
|
||||
elif hostname == 'ragnarok' :
|
||||
# Hotspot ENS plus utilisé...
|
||||
# elif hostname == 'ragnarok' :
|
||||
# On rajoute les IP dynamiques
|
||||
base_conf = """
|
||||
subnet 10.231.144.0 netmask 255.255.248.0 {
|
||||
default-lease-time 900;
|
||||
max-lease-time 900;
|
||||
option subnet-mask 255.255.248.0;
|
||||
option broadcast-address 10.231.151.255;
|
||||
option routers 10.231.148.1;
|
||||
option domain-name-servers 10.231.148.1;
|
||||
option domain-name "ens-cachan.fr";
|
||||
option option-119 "ens-cachan.fr";
|
||||
option netbios-node-type 2;
|
||||
|
||||
range dynamic-bootp 10.231.149.1 10.231.149.254;
|
||||
}
|
||||
"""
|
||||
# base_conf = """
|
||||
# subnet 10.231.144.0 netmask 255.255.248.0 {
|
||||
# default-lease-time 900;
|
||||
# max-lease-time 900;
|
||||
# option subnet-mask 255.255.248.0;
|
||||
# option broadcast-address 10.231.151.255;
|
||||
# option routers 10.231.148.1;
|
||||
# option domain-name-servers 10.231.148.1;
|
||||
# option domain-name "ens-cachan.fr";
|
||||
# option option-119 "ens-cachan.fr";
|
||||
# option netbios-node-type 2;
|
||||
#
|
||||
# range dynamic-bootp 10.231.149.1 10.231.149.254;
|
||||
# }
|
||||
#"""
|
||||
else :
|
||||
base_conf = ''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue