[network/interfaces,ip.py] conf ip pour le vlan ens
darcs-hash:20090225070552-bd074-7263a8965a33396950c956f2f652343ca2458459.gz
This commit is contained in:
parent
1b3aca9cc0
commit
2bdd7dd9fd
2 changed files with 15 additions and 0 deletions
|
@ -50,6 +50,14 @@ iface %(interface)s inet static
|
|||
netmask 255.255.0.0
|
||||
broadcast 10.51.255.255
|
||||
mtu 1496""" % { 'interface': interface, 'ip': accueilip() }
|
||||
elif mode == "ens":
|
||||
print """auto %(interface)s
|
||||
iface %(interface)s inet static
|
||||
address %(ip)s
|
||||
network 10.02.09.0
|
||||
netmask 255.255.255.0
|
||||
broadcast 10.02.09.255
|
||||
mtu 1496""" % { 'interface': interface, 'ip': appt_ens_ip() }
|
||||
else:
|
||||
raise NotImplementedError, "Mode de réseau inconnu : %s" % mode
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue