[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Configuring the Device as a DHCP Server

A typical DHCP server configuration provides the following configuration settings for a particular subnet on a device interface:

In addition, the DHCP server might assign a static address to at least one client on the subnet. Table 72 provides the settings and values for the sample DHCP server configuration used in this section.

Table 72: Sample DHCP Configuration Settings

Settings

Sample Value or Values

DHCP Subnet Configuration

Address pool subnet address

192.168.2.0/24

High address in the pool range

192.168.2.254

Low address in the pool range

192.168.2.2

Address pool default lease time, in seconds

1,209,600 (14 days)

Address pool maximum lease time, in seconds

2,419,200 (28 days)

Domain search suffixes

mycompany.net

mylab.net

Address to exclude from the pool

192.168.2.33

DNS server address

192.168.10.2

Identifier code for router solicitation address option

32

Type choice for router solicitation address option

Ip address

IP address for router solicitation address option

192.168.2.33

DHCP MAC Address Configuration

Static binding MAC address

01:03:05:07:09:0B

Fixed address

192.168.2.50

To configure the device as a DHCP server for a subnet and a single client:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 73.
  3. If you are finished configuring the device, commit the configuration.
  4. To verify DHCP server configuration and operation, see Verifying a DHCP Configuration.

Table 73: Configuring the Device as a DHCP Server

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Dhcp server level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to System, click Configure.
  3. Next to Services, make sure the check box is selected, and click Configure.
  4. Next to Dhcp, click Configure.

From the [edit] hierarchy level, enter

edit system services dhcp

Define the IP address pool.

  1. Next to Pool, click Add new entry.
  2. In the Subnet address box, type 192.168.2.0/24.
  3. Next to Address range, select the check box.
  4. Next to Address range, click Configure.
  5. In the High box, type 192.168.2.254.
  6. In the Low box, type 192.168.2.2.
  7. Click OK.

Set the IP address pool range:

set pool 192.168.2.0/24 address-range low 192.168.2.2 high 192.168.2.254

Define the default and maximum lease times, in seconds.

  1. From the Default lease time list, select Enter Specific Value.
  2. In the Length box, type 1209600.
  3. From the Maximum lease time list, select Enter Specific Value.
  4. Next to Maximum lease time, type 2419200.

Set the default and maximum lease times:

set pool 192.168.2.0/24 default-lease-time 1209600 maximum-lease-time 2419200

Define the domain search suffixes to be used by the clients.

  1. Next to Domain search, click Add new entry.
  2. In the Suffix box, type mycompany.net.
  3. Click OK.
  4. Next to Domain search, click Add new entry.
  5. In the Suffix box, type mylab.net.
  6. Click OK.

Set the domain search suffixes:

set pool 192.168.2.0/24 domain-search mycompany.net

set pool 192.168.2.0/24 domain-search mylab.net

Define a DNS server.

  1. Next to Name server, click Add new entry.
  2. In the Address box, type 192.168.10.2.
  3. Click OK.

Set the DNS server IP address:

set pool 192.168.2.0/24 name-server 192.168.10.2

Define DHCP option 32—the router solicitation address option.

  1. Next to Option, click Add new entry.
  2. In the Option identifier code box, type 32.
  3. From the Option type choice list, select Ip address.
  4. In the Ip address box, type 192.168.2.33.
  5. Click OK twice.

Set the router solicitation IP address:

set pool 192.168.2.0/24 option 32 ip-address 192.168.2.33

Assign a static IP address of 192.168.2.50 to MAC address 01:03:05:07:09:0B.

  1. Next to Static binding, click Add new entry.
  2. In the Mac address box, type 01:03:05:07:09:0B.
  3. Next to Fixed address, click Add new entry.
  4. In the Address box, type 192.168.2.50.
  5. Click OK until you return to the Configuration page.

Associate a fixed IP address with the MAC address of the client:

set static-binding 01:03:05:07:09:0B fixed-address 192.168.2.50


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]