Users Guide

Table Of Contents
DHCP client on management interface-DHCP client is enabled by default on the management interface. The management
interface automatically tries to obtain an IP address from a DHCP server. To manually configure an IP address on the
management port, disable the DHCP client using the no ip address dhcp command in Interface mode
The DHCP server does not start unless at least one interface matches one of the configured network pools. An interface
matches a network pool when you include the IP address in the subnet that is defined for that network pool. For example, an
interface with IP address 10.1.1.1/24 matches a pool that is configured with network 10.1.1.0/24..
If you attempt to enable (start) the DHCP server with an incorrect configuration, you must re-enable the DHCP server after you
enter the correct configuration.
Consider the following example, and assume that no interface matches either one of the network pools, netdhcp1 and netdhcp2:
OS10# show running-configuration ip dhcp
!
ip dhcp server
no disable
!
pool netdhcp1
lease infinite
network 35.1.1.0/24
!
pool netdhcp2
network 40.1.1.0/24
OS10# show ip interface brief
Interface Name IP-Address OK Method Status
Protocol
======================================================================================
===
Ethernet 1/1/1 unassigned YES unset up
up
Ethernet 1/1/2 unassigned YES unset up
up
Ethernet 1/1/32 unassigned NO unset up down
To resolve this issue, you must:
1. Configure a matching interface for pool netdhcp2-40.1.1.1/24 matches 40.1.1.0/24.
OS10(config)# interface ethernet 1/1/2
OS10(conf-if-eth1/1/2)# no shutdown
OS10(conf-if-eth1/1/2)# no switchport
OS10(conf-if-eth1/1/2)# ip address 40.1.1.1/24
2. Run the show ip interface brief command to verify if an IP address is assigned to ethernet 1/1/2 port.
OS10# show ip interface brief
Interface Name IP-Address OK Method Status
Protocol
====================================================================================
=====
Ethernet 1/1/1 unassigned YES unset up
up
Ethernet 1/1/2 40.1.1.1/24 YES manual up
up
3. Re-enable the DHCP server because it failed to start initially.
OS10# configure terminal
OS10(config)# ip dhcp server
OS10(config-dhcp)# disable
OS10(config-dhcp)# no disable
OS10(config-dhcp)#
Packet format and options
The DHCP server listens on port 67 and transmits to port 68. The DHCP client listens on port 68 and transmits to port 67.
202
System management