DHCP Range
Use the nios_range module to configure, update, or remove a NIOS DHCP range object from a NIOS server.
Note
In the current version of Infoblox NIOS Modules for Ansible Collections, the nios_range
module supports only the IPv4 DHCP range. The IPv6 DHCP range is not supported.
The following table describes the parameters you can define in the nios_range
module:
Parameter | Required/Optional | Description |
---|---|---|
| Required | Specifies the network to which the DHCP range must be added or removed. Specify the value in CIDR notation. |
| Optional | Specifies the name of the network view to associate with this object instance. |
| Optional | Defines the set of DHCP options to be included as part of the configured network instance.
|
| Required | Specifies the beginning IP address of the DHCP range object in a create operation. If you need to update the DHCP range, use the |
| Optional | Specifies the beginning IP address of the DHCP range object in an update operation. |
| Required | Specifies the ending IP address of the DHCP range object in a create operation. If you need to update the DHCP range, use the |
| Optional | Specifies the ending IP address of the DHCP range to which you want to update. |
| Optional | Specifies the host name of the NIOS member configured to serve this object instance. Do not configure this parameter when the |
| Optional | Specifies the name of the DHCP failover association configured to serve this object instance. Do not configure this parameter when the |
| Optional | Specifies the host name of the Microsoft member configured to serve this object instance. Do not configure this parameter when the |
| Optional | Specifies the type of server association assigned to serve this object instance.
The default value is |
| Optional | Specifies the intended state of the object instance in NIOS.
|
| Optional | Determines whether the configured DHCP range is disabled or not. Set one of the following values:
|
| Optional | Specifies the name of the Microsoft scope for the object instance in NIOS. |
| Optional | Specifies extensible attributes for the DHCP range object. |
| Optional | Describes the DHCP range object. |
| Required | Defines the details of the connection:
For information on additional fields you can define, see the list of subparameters in the list of subparameters in the NIOS Modules for Ansible Collections topic. |
| Required | The |
Note
If you want to remove the member assignment or the MS server or failover server assignment from a DHCP range object, do not specify the corresponding parameter in the playbook.
Examples
name: Configure an ipv4 reserved range
infoblox.nios_modules.nios_range:
network: 192.168.10.0/24
start: 192.168.10.10
end: 192.168.10.20
name: Test Range 1
comment: this is a test comment
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Update an ipv4 reserved range
infoblox.nios_modules.nios_range:
network: 80.0.0.0/24
start: 80.0.0.10
new_start: 80.0.0.100
end: 80.0.0.20
new_end: 80.0.0.150
comment: this is a test comment
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Configure an ipv4 range served by a NIOS Grid member; custom network view
infoblox.nios_modules.nios_range:
network: 192.168.10.0/24
start: 192.168.10.10
end: 192.168.10.20
name: Test Range 1
member: infoblox1.localdomain
network_view: custom
comment: this is a test comment
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Configure an ipv4 range served by a failover association
infoblox.nios_modules.nios_range:
network: 192.168.10.0/24
start: 192.168.10.10
end: 192.168.10.20
name: Test Range 1
failover_association: fo_association_01
comment: this is a test comment
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Configure an ipv4 range served by an MS Server
infoblox.nios_modules.nios_range:
network: 192.168.10.0/24
start: 192.168.10.10
end: 192.168.10.20
name: Test Range 1
ms_server: dc01.ad.localdomain
comment: this is a test comment
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local