Interfaces Local Area Networks(LANs)
IX20 User Guide
207
Depending on your device configuration, you may be presented with an Access selection
menu. Type admin to accessthe Admin CLI.
2. At the command line, type config to enter configuration mode:
> config
(config)>
3. Enable the DHCPserver for an existing LAN. For example, to enable the DHCPserver for a LAN
named my_lan:
(config)> network interface my_lan ipv4 dhcp_server enable true
(config)>
See Configure a Local Area Network (LAN) for information about creating a LAN.
4. (Optional) Set the amount of time that a DHCPlease is valid:
(config)> network interface my_lan ipv4 dhcp_server lease_time value
(config)>
where value is any number of weeks, days, hours, minutes, or seconds, and takes the format
number{w|d|h|m|s}.
For example, to set network interface my_lan ipv4 dhcp_server lease_time to ten minutes,
enter either 10m or 600s:
(config)> network interface my_lan ipv4 dhcp_server lease_time 600s
(config)>
n
By default, DHCPleasesare persistent across reboots. You can disable persistent leases:
(config)> network advanced dhcp_persistent_lease false
(config)>
5. (Optional) Set the lowest IPaddress that the DHCP server will assign to a client. This value
represents the low order byte of the address(the final triplet in an IPv4 address, for example,
192.168.2.xxx). The remainder of the IPaddress will be based on the LAN's static IPaddressas
defined in the addressparameter.
(config)> network interface my_lan ipv4 dhcp_server lease_start num
(config)>
Allowed values are between 1 and 254, and the default is100.
6. (Optional) Set the highest IPaddressthat the DHCPserver will assign to a client:
(config)> network interface my_lan ipv4 dhcp_server lease_end num
(config)>
Allowed values are between 1 and 254, and the default is250.
7. Sequential DHCPaddressallocation
By default, DHCPaddressesare assigned psuedo-randomly, using a hash of the client's MAC
addressto determine the IPaddress that gets assigned. You can configure the device to use
sequential IPaddressesinstead: