wok annotate busybox/stuff/udhcpd.conf @ rev 20948

updated gawk (4.0.1 -> 4.2.1)
author Hans-G?nter Theisgen
date Sun Mar 03 15:51:24 2019 +0100 (2019-03-03)
parents 73742fcba19a
children
rev   line source
pascal@514 1 # /etc/udhcpd.conf: SliTaz DHCP server configuration.
pascal@514 2 #
pascal@514 3
pascal@514 4 # The start and end of the IP lease block
pascal@18003 5 start 192.168.0.20 #default: 192.168.0.20
pascal@18003 6 end 192.168.0.254 #default: 192.168.0.254
pascal@514 7
pascal@514 8 # The interface that udhcpd will use
pascal@18003 9 interface eth0 #default: eth0
pascal@514 10
pascal@18003 11 # The maximum number of leases (includes addresses reserved
pascal@18003 12 # by OFFER's, DECLINE's, and ARP conflicts). Will be corrected
pascal@18003 13 # if it's bigger than IP lease block, but it ok to make it
pascal@18003 14 # smaller than lease block.
pascal@18003 15 #max_leases 254 #default: 254
pascal@514 16
pascal@18003 17 # The amount of time that an IP will be reserved (leased to nobody)
pascal@18003 18 # if a DHCP decline message is received (seconds)
pascal@18003 19 #decline_time 3600 #default: 3600 (1 hour)
pascal@514 20
pascal@18003 21 # The amount of time that an IP will be reserved
pascal@18003 22 # if an ARP conflict occurs (seconds)
pascal@18003 23 #conflict_time 3600 #default: 3600 (1 hour)
pascal@514 24
pascal@18003 25 # How long an offered address is reserved (seconds)
pascal@18003 26 #offer_time 60 #default: 60 (1 minute)
pascal@514 27
pascal@18003 28 # If client asks for lease below this value, it will be rounded up
pascal@18003 29 # to this value (seconds)
pascal@18003 30 #min_lease 60 #default: 60 (1 minute)
pascal@514 31
pascal@514 32 # The location of the leases file
pascal@18003 33 lease_file /var/lib/udhcpd.leases #default: /var/lib/misc/udhcpd.leases
pascal@514 34
pascal@514 35 # The location of the pid file
pascal@18003 36 pidfile /var/run/udhcpd.pid #default: /var/run/udhcpd.pid
pascal@514 37
pascal@18003 38 # The time period at which udhcpd will write out leases file.
pascal@18003 39 # If this is 0, udhcpd will never automatically write leases file.
pascal@18003 40 # Specified in seconds.
pascal@18003 41 #auto_time 7200
pascal@18003 42
pascal@18003 43 # Every time udhcpd writes a leases file, the below script will be called
pascal@18003 44 #notify_file # default: no script
pascal@18003 45 #notify_file dumpleases # useful for debugging
pascal@18003 46
pascal@18003 47 # The following are bootp specific options
pascal@18003 48 # next server to use in bootstrap
pascal@18003 49 #siaddr 192.168.0.22 # default: 0.0.0.0 (none)
pascal@18003 50 # tftp server name
pascal@18003 51 #sname zorak # default: none
pascal@18003 52 # tftp file to download (e.g. kernel image)
pascal@18003 53 #boot_file /var/nfs_root # default: none
pascal@18003 54
pascal@18003 55 # Static leases map
pascal@18003 56 #static_lease 00:60:08:11:CE:4E 192.168.0.54
pascal@18003 57 #static_lease 00:60:08:11:CE:3E 192.168.0.44
pascal@18003 58
pascal@18003 59 # The remainder of options are DHCP options and can be specified with the
pascal@514 60 # keyword 'opt' or 'option'. If an option can take multiple items, such
pascal@514 61 # as the dns option, they can be listed on the same line, or multiple
pascal@18003 62 # lines.
pascal@18003 63 # Examples:
pascal@18003 64 #opt dns 192.168.10.2 192.168.10.10
pascal@18003 65 option subnet 255.255.255.0
pascal@18003 66 #opt router 192.168.10.2
pascal@18003 67 #opt wins 192.168.10.10
pascal@18003 68 #option dns 129.219.13.81 # appended to above DNS servers for a total of 3
pascal@18003 69 #option domain local
pascal@18003 70 option lease 864000 # default: 10 days
pascal@18003 71 #option msstaticroutes 10.0.0.0/8 10.127.0.1 # single static route
pascal@18003 72 #option staticroutes 10.0.0.0/8 10.127.0.1, 10.11.12.0/24 10.11.12.1
pascal@18003 73 # Arbitrary option in hex form:
pascal@18003 74 #option 0x08 01020304 # option 8: "cookie server IP addr: 1.2.3.4"
pascal@514 75
pascal@18003 76 # Currently supported options (for more info, see options.c):
pascal@18003 77 #opt lease NUM
pascal@18003 78 #opt subnet IP
pascal@18003 79 #opt broadcast IP
pascal@18003 80 #opt router IP_LIST
pascal@18003 81 #opt ipttl NUM
pascal@18003 82 #opt mtu NUM
pascal@18003 83 #opt hostname STRING # client's hostname
pascal@18003 84 #opt domain STRING # client's domain suffix
pascal@18003 85 #opt search STRING_LIST # search domains
pascal@18003 86 #opt nisdomain STRING
pascal@18003 87 #opt timezone NUM # (localtime - UTC_time) in seconds. signed
pascal@18003 88 #opt tftp STRING # tftp server name
pascal@18003 89 #opt bootfile STRING # tftp file to download (e.g. kernel image)
pascal@18003 90 #opt bootsize NUM # size of that file
pascal@18003 91 #opt rootpath STRING # (NFS) path to mount as root fs
pascal@18003 92 #opt wpad STRING
pascal@18003 93 #opt serverid IP # default: server's IP
pascal@18003 94 #opt message STRING # error message (udhcpd sends it on success too)
pascal@18003 95 #opt vlanid NUM # 802.1P VLAN ID
pascal@18003 96 #opt vlanpriority NUM # 802.1Q VLAN priority
pascal@18003 97 # Options specifying server(s)
pascal@18003 98 #opt dns IP_LIST
pascal@18003 99 #opt wins IP_LIST
pascal@18003 100 #opt nissrv IP_LIST
pascal@18003 101 #opt ntpsrv IP_LIST
pascal@18003 102 #opt lprsrv IP_LIST
pascal@18003 103 #opt swapsrv IP
pascal@18003 104 # Options specifying routes
pascal@18003 105 #opt routes IP_PAIR_LIST
pascal@18003 106 #opt staticroutes STATIC_ROUTES # RFC 3442 classless static route option
pascal@18003 107 #opt msstaticroutes STATIC_ROUTES # same, using MS option number
pascal@18003 108 # Obsolete options, no longer supported
pascal@18003 109 #opt logsrv IP_LIST # 704/UDP log server (not syslog!)
pascal@18003 110 #opt namesrv IP_LIST # IEN 116 name server, obsolete (August 1979!!!)
pascal@18003 111 #opt cookiesrv IP_LIST # RFC 865 "quote of the day" server, rarely (never?) used
pascal@18003 112 #opt timesrv IP_LIST # RFC 868 time server, rarely (never?) used
pascal@18003 113 # TODO: in development
pascal@18003 114 #opt userclass STRING # RFC 3004. set of LASCII strings. "I am a printer" etc
pascal@18003 115 #opt sipserv STRING LIST # RFC 3361. flag byte, then: 0: domain names, 1: IP addrs