Bootp client support example, Dhcp option examples, Refer to – Enterasys Networks Security Router X-PeditionTM User Manual

Page 386

Advertising
background image

DHCP Server Configuration Examples

15-12 Configuring DHCP

XSR User’s Guide

The domain name for this host is specified as indusriver.com (this will override enterasys.com
specified for this pool, and ent.com specified for the class).

XSR(config)#ip local pool dpool 1.1.1.0/24
XSR(config)#ip dhcp pool dpool
XSR(config-dhcp-pool)#domain-name enterasys.com
XSR(config-dhcp-pool)#client-class engineering
XSR(config-dhcp-class)#domain-name ent.com
XSR(config-dhcp-class)#hardware-address 00f0.1211.22a1
XSR(config-dhcp-host)#host 1.1.1.20 255.255.255.0
XSR(config-dhcp-host)#domain-name indusriver.com

BOOTP Client Support Example

In the following example, the XSR is configured to support a BOOTP client to download an image
file from a TFTP server. Configured within the DHCP pool BOOTPdownload, the client is assigned
a manual binding of host IP and hardware addresses (or optionally, its client-id), the TFTP server’s IP
address, and the name of the file to be downloaded, acme.hex. Also, a static ARP entry is set.

XSR(config)#ip dhcp pool BOOTPdownload
XSR(config-dhcp-pool)#host 192.168.1.33 255.255.255.0
XSR(config-dhcp-pool)#next-server 192.168.1.234
XSR(config-dhcp-pool)#bootfile acme.hex
XSR(config-dhcp-pool)#hardware-address 0000.1d11.e829
XSR(config)#arp 192.168.1.33 0000.1D11.E829

When the MAC address 0000.1d11.e829 (BOOTP client) transmits a BOOTP request, the DHCP
server will respond with the IP address 192.168.1.33, the boot file name

acme.hex and the next-

server IP address 192.168.1.234.

DHCP Option Examples

The following sample DHCP option configurations illustrate the three types of option values
prompted for by the CLI: IP address, ASCII and hex. See the XSR CLI Reference Guide for more.

The following example configures DHCP option 3, which lists the IP addresses of four default
routers on the DHCP client's subnet in descending order of preference. This setting can also be
configured by the DHCP

default-router

command. Be sure to first exclude these addresses

from the IP local pool to prevent them from being allocated by the DHCP server.

XSR(config-dhcp-pool)#option 3 ip 192.168.57.90 192.168.57.26 192.168.57.54 192.168.57.78

The following example configures DHCP option 12, which specifies the host name of a client
which may or may not be qualified with the local domain name. The option parameter is
expressed in ASCII text but can also be configured by the DHCP

client-name

command. The

name should not include the domain name.

XSR(config-dhcp-host)#option 12 ascii jonah

The following example configures DHCP option 29, which specifies that the client will perform
subnet mask discovery using ICMP.

XSR(config-dhcp-host)#option 29 hex 01

Advertising