Configuring DHCP Server

Topics on this page: Guidelines for Creating Address Pools | Adding Address Pools | Viewing, Modifying, and Deleting Address Pools | Excluding IP Addresses from a Pool | Viewing IP Address Assignments  

[Go back]

This topic describes how to configure the DHCP server feature on your ADSL/Ethernet router. See DHCP Configuration Overview for an explanation of the DHCP protocol.

To set up DHCP server, you first define the ranges of IP addresses that you want to be distributed to your PCs, called DHCP server address pools.

Before you begin, be sure to configure your PCs to accept DHCP information assigned by a DHCP server.


Guidelines for Creating DHCP Server Address Pools

An IP address pool typically includes a range private addresses that you define. LAN administrators often define private IP addresses for use only on their networks. See Overview of Network Address Translation for an explanation of private IP addresses.

You can also use DHCP server pools to distribute multiple public IP addresses, if, for example, these are to be shared among a larger set of LAN computers.

You can create up to two DHCP server address pools. You can define a single pool with addresses that can be assigned to your LAN PCs (connected via the Ethernet port) and to a USB-connected computer, as long you have assigned to the USB and Ethernet interfaces static IP addresses that place them in the same subnet.

For example, assume you assigned the following addresses to the Ethernet and USB interfaces:

Ethernet interface (eth-0): IP address 10.0.0.2,            mask 255.255.255.0

USB interface (usb-0): IP address 10.0.0.3,            mask 255.255.255.0 

Then you could create a single pool for assignment to all your PCs:

Pool 0: 10.0.0.4 through 10.0.0.16, mask 255.255.255.0

You can create a second pool -- which must be in a different subnet than the first -- if either of these circumstances apply:

  • You assigned static IP addresses to the device's Ethernet and USB interfaces that place them in different subnets (note that this is not required). 
  • Your LAN configuration includes two subnets. For example, the following pool can be created to distribute IP addresses over the Wireless LAN interface, which is assigned IP address 10.0.2.1 by default (i.e., the interface is in a different subnet than the Ethernet and USB interfaces):

Pool 1: 10.0.2.2 through 10.0.2.10, mask 255.255.255.0

The DHCP server distributes addresses to computers connected to a given device interface only when that interface is in the same subnet as the pool addresses. 

In the examples shown above, the IP addresses in pool 0 would be assigned only over the Ethernet and USB interfaces, and the addresses in pool 1 would only be assigned only over the Wireless LAN interface.


Adding DHCP Server Address Pools

Follow these instructions to create an IP address pool:

  1. If the  DHCP Server Configuration page is not already displaying, click the Advanced Status button, and then click the DHCP button, then click DHCP Server.
Depending on your preconfigured settings, the table may display up to two address pools, each in a row, or may be empty.
  1. Click Add. The DHCP Server Pool - Add page displays.
  2. Enter values for the Start IP Address, End IP Address, and Net Mask fields, which are required, and any others as needed:
  • Start/End IP Addresses: Specify the lowest and highest addresses in the pool, up to a maximum range of 254 addresses.
  • Mac Address: A MAC address is a manufacturer-assigned hardware ID that is unique for each device on a network. Use this field only if you want to assign a specific IP address to a specific computer (that is, you are creating an exception to the dynamic assignment of addresses). The IP address you specify will be assigned to the computer that corresponds to this MAC address. If you type a MAC address here, you must have specified the same IP address in both the Start IP Address and End IP Address fields.
  • Net Mask: Specifies which portion of each IP addresses in this range refers to the network and which portion refers to the host (computer). You can use the net mask to distinguish which pool of addresses should be distributed to a particular subset of computers on your LAN (call a subnet).
  • Domain Name: A user-friendly name that refers to the subnet that includes the addresses in this pool. 
  • Gateway Address: The address of the default gateway for computers that receive IP addresses from this pool. If no value is specified, then the appropriate LAN (eth-0) or USB (usb-0) port address on the device will be distributed to each PC as its gateway address, depending on how each is connected. See Configuring IP Routes for an explanation of gateway addresses.
  • DNS/SDNS: The IP address of the Domain Name System server to be used by computers that receive IP addresses from this pool. The DNS translates common Internet names that you type into your web browser into their equivalent numeric IP addresses. Typically, this server is located with your ISP.
  • SMTP...SWINS (optional): The IP addresses of devices that perform various services for computers that receive IP addresses from this pool (such as the SMTP, or Simple Mail Transfer Protocol, server which handles e-mail traffic). Contact your ISP for these addresses.
  1. When you are done defining the pool, click Save Changes
A confirmation page displays briefly to indicate that the pool has been added successfully. After a few seconds, the DHCP Server Pool - Add page displays with the newly added pool.
  1. Click DHCP Mode in the task bar, then follow the instructions in Setting the DHCP Mode to enable the DHCP server.


Viewing, Modifying, and Deleting Address Pools

To view, modify, or delete an existing address pool, display the DHCP Server Configuration page, then click the icons in the corresponding row in the address pool table.

  • To delete an IP address pool, click , then submit and commit your changes.
  • To view details on an IP address pool, click . A page displays with all the same information that you entered when you added the pool.
  • To modify an IP address pool click to display the DHCP Server Pool - Modify page. You can change the domain name associated with an IP address pool, enable/disable the pool, or specify IP addresses to exclude from distribution (see next section). By default, a pool is enabled when you create it.
When you are done making modifications, and then click Save Changes. Use the Write Settings to Flash feature to save your changes to permanent memory.


Excluding IP Addresses from a Pool

If you have IP addresses that are designated for fixed use with specific devices, or for some other reason you do not want to make them available to your network, you can exclude them from the pool. 

On the DHCP Server Configuration Page, click in the row corresponding to the pool you want to modify. On the DHCP Server Pool - Modify page, type each address to be excluded in the Excluded IP Field and click Add. When you are done specifying excluded addresses, click Save Changes, and then use the Write Settings to Flash feature to save your changes to permanent memory 


.

Viewing Current IP Address Assignments

When your ADSL/Ethernet router functions as a DHCP server for your LAN, it keeps a record of any addresses it has leased to your computers. To view a table of all current IP address assignments, display the DHCP Server Configuration page, and then click Address Table.

The DHCP Server Address Table lists any IP addresses that are currently leased to your computers. For each leased address, the table lists the following information:

  • IP Address: The address that has been leased from the pool. 
  • Netmask: The network mask associated with the leased address. This identifies the network ID and host ID portions of the address.
  • Mac Address: The hardware ID for the device to which the number has been assigned.
  • Pool Start: The lower boundary of the address pool (provided to identify the pool from which the leased number came). 
  • Address Type: Static or Dynamic. Static indicates that the IP number has been assigned permanently to the specific hardware device. Dynamic indicates that the number has been leased temporarily for a specified length of time. 
  • Time Remaining: The amount of time left for the device to use the assigned address. The default lease time is 30 days (315360000 seconds).