I'm trying to create a script that adds DHCP addresses to an IP set.
192.168.1.2
192.168.1.3
192.168.1.4
1) Determine the DHCP address range with the following values.
2) Create a DHCP IP set called DHCP_CLI.
3) Add all IP addresses with the range of dhcp_start and dhcp_end to the DHCP_CLI IP set.
In step 3, how would you iterate through the dhcp_start and dhcp_end values to add the following to the DHCP_CLI set ?
Code:
nvram get dhcp_start = 192.168.1.2
nvram get dhcp_end = 192.168.1.4
Code:
ipset create DHCP_CLI bitmap:ip range 192.168.1.0/24
Code:
ipset add DHCP_CLI <dhcp_start value>
...
ipset add DHCP_CLI <dhcp_end value>
192.168.1.2
192.168.1.3
192.168.1.4
Last edited: