dhcp_server v0.6.0 DHCPServer
Manages DHCP connections.
If NervesNetwork exists, it will manage bringing up and tearing down of the interface.
Link to this section Summary
Functions
Callback invoked to start the supervisor and during hot code upgrades
Start a dhcp server.
interface
- A linux network interface name.
config
authoritative
- default:true
.lease_file
- default:"/var/run/dhcp_leases_<interface>.dets"
.lease_time
- default:3600
.gateway
- default:192.168.24.1
.netmask
- default:255.255.255.0
.range
- default:{"192.168.24.2", "192.168.24.100"}
.domain_servers
- default:["192.168.24.1"]
.domain_name
- default:"node()"
stop a dhcp server
Link to this section Functions
Link to this function
init(list)
Callback invoked to start the supervisor and during hot code upgrades.
Developers typically invoke Supervisor.init/2
at the end of their
init callback to return the proper supervision flags.
Callback implementation for Supervisor.init/1
.
Link to this function
start_link(interface, config)
Start a dhcp server.
interface
- A linux network interface name.
config
authoritative
- default:true
.lease_file
- default:"/var/run/dhcp_leases_<interface>.dets"
.lease_time
- default:3600
.gateway
- default:192.168.24.1
.netmask
- default:255.255.255.0
.range
- default:{"192.168.24.2", "192.168.24.100"}
.domain_servers
- default:["192.168.24.1"]
.domain_name
- default:"node()"
.
Link to this function
stop(interface)
stop a dhcp server.