OS10 Enterprise Edition User Guide Release 10.4.0E(R3)

PDF

Automatic address allocation

Automatic address allocation is an address assignment method that the DHCP server uses to lease an IP address to a client from a pool of available addresses. You cannot configure an empty DHCP pool, under a DHCP pool configuration. For a successful commit, you must have either a network statement or host/hardware-address (manual binding) configuration. An IP address pool is a range of addresses that the DHCP server assigns. The subnet number indexes the address pools.

  1. Enable DHCP server-assigned dynamic addresses on an interface in DHCP < POOL> mode.
    ip dhcp server
  2. Create an IP address pool and provide a name in DHCP mode.
    pool 
                                        name
                                     
  3. Enter the range of IP addresses from which the DHCP server may assign addresses in DHCP< POOL> mode. The network option specifies the subnet address. The prefix-length option specifies the number of bits used for the network portion of the address (18 to 31).
    network 
                                        network/prefix-length
                                     

DHCP server automatic address allocation

OS10(config)# ip dhcp server
                              OS10(conf-dhcp)# pool Dell
                              OS10(conf-dhcp-Dell)# network 20.1.1.0/24
                           

Show running configuration

OS10(conf-dhcp-Dell)# do show running-configuration
                              ...
                              !
                              ip dhcp server
                              !
                              pool Dell
                              lease 24
                              network 20.1.1.0/24
                              default-router 20.1.1.1
                           

Address lease time

Use the lease {days [hours] [minutes] | infinite} command to configure an address lease time (default 24 hours).

OS10(config)# ip dhcp server
                                 OS10(conf-dhcp)# pool Dell
                                 OS10(conf-dhcp-Dell)# lease 36
                              

Default gateway

Ensure the IP address of the default router is on the same subnet as the client.

  1. Enable DHCP server-assigned dynamic addresses on an interface in CONFIGURATION mode.
    ip dhcp server
  2. Create an IP address pool and provide a name in DHCP mode.
    pool 
                                           name
                                        
  3. Enter the default gateway(s) for the clients on the subnet in order of preference in DHCP< POOL> mode.
    default-router 
                                           address
                                        

Change default gateway name

OS10(config)# ip dhcp server
                                 OS10(conf-dhcp)# pool Dell
                                 OS10(conf-dhcp-Dell)# default-router 20.1.1.1
                              

Enable DHCP server

Use the ip dhcp server command to enable DHCP server-assigned dynamic addresses on an interface in CONFIGURATION mode. The DHCP server is disabled by default.

OS10(config)# ip dhcp server
                                 OS10(conf-dhcp)# no disable
                              

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\