29 lines
945 B
Markdown
29 lines
945 B
Markdown
|
Description
|
||
|
===========
|
||
|
|
||
|
Setup isc-dhcp-server and assign nodes static ip addresses
|
||
|
|
||
|
Attributes
|
||
|
==========
|
||
|
|
||
|
node.dhcp.domain.names - advertised search domains, default is nil
|
||
|
node.dhcp.domain.servers - advertised domain name servers, default is nil
|
||
|
node.dhcp.ntp_servers - advertised network time server, default is []
|
||
|
node.dhcp.hosts - hash of hosts with static ip addresses (see usage), default is {}
|
||
|
node.dhcp.interface - interfaces to listen; an empty array means all available
|
||
|
interfaces, default is []
|
||
|
node.dhcp.subnet.prefix - network prefix for the advertised subnet, default is "192.168.2.0"
|
||
|
node.dhcp.subnet.netmask - netmask for the advertised subnet, default is "255.255.255.0"
|
||
|
node.dhcp.subnet.gateway - ip for the default route, default is "192.168.2.1"
|
||
|
|
||
|
Usage
|
||
|
=====
|
||
|
|
||
|
example to set a static ip address
|
||
|
|
||
|
node.default["dhcp"]["hosts"] =[{
|
||
|
name: "node0",
|
||
|
mac: "5c:a1:ab:1e:00:01",
|
||
|
ip: "172.28.128.101"
|
||
|
}]
|