User`s guide

XSR Users Guide 307
Chapter 12 DHCP Server Configuration Examples
Configuring DHCP
DHCP Server Configuration Examples
The following examples configure DHCP with different options. For DHCP
implementations with firewall configured, refer to “Configuring Security on
the XSR” on page 311.
Pool with Hybrid Servers Example
In the following example, the single DHCP pool dpool is created and two
default routers defined: 168.16.22.100 (higher preference) and 168.16.22.101
(lower preference). The domain name enterasys.com is specified and a list of
two DNS servers defined - 168.16.33.102 (higher) and 168.16.33.103 (lower).
NetBIOS servers are specified as type hybrid - 168.16.44.103 (higher) and
168.16.44.104 (lower). Finally, the lease time for all clients is limited to 10 days.
XSR(config)#ip local pool dpool 168.16.22.0/24
XSR(config)#ip dhcp pool dpool
XSR(config-dhcp-pool)#default-router 168.16.22.100 168.16.22.101
XSR(config-dhcp-pool)#domain-name enterasys.com
XSR(config-dhcp-pool)#dns-server 168.16.33.102 168.16.33.103
XSR(config-dhcp-pool)#netbios-name-server 168.16.44.103 168.16.44.104
XSR(config-dhcp-pool)#netbios-node-type h-node
XSR(config-dhcp-pool)#lease 10
Manual Binding Example
In the following example, the single DHCP pool dpool is created with a
domain name enterasys.com. A host is defined with MAC address
00:f0:12:11:22:a1 in dotted decimal format and a manual binding is specified
by IP address 1.1.1.20 and mask 255.255.255.0.
The domain name for this host is specified as ent.com (this will override
enterasys.com specified for this pool).
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)#hardware-address 00f0.1211.22a1
XSR(config-dhcp-host)#host 1.1.1.20 255.255.255.0
XSR(config-dhcp-host)#domain-name ent.com