Moved modules/* to mods-available/*
[freeradius.git] / raddb / mods-available / mac2ip
1 # -*- text -*-
2 #
3 #  $Id$
4
5 ######################################################################
6 #
7 #  This next section is a sample configuration for the "passwd"
8 #  module, that reads flat-text files.
9 #
10 #  The file is in the format <mac>,<ip>
11 #
12 #       00:01:02:03:04:05,192.168.1.100
13 #       01:01:02:03:04:05,192.168.1.101
14 #       02:01:02:03:04:05,192.168.1.102
15 #
16 #  This lets you perform simple static IP assignments from a flat-text
17 #  file.  You will have to define lease times yourself.
18 #
19 ######################################################################
20
21 passwd mac2ip {
22         filename = ${confdir}/mac2ip
23         format = "*DHCP-Client-Hardware-Address:=DHCP-Your-IP-Address"
24         delimiter = ","
25 }