In this article we will discuss Configuring a Basic DHCPv4 Server, will make brief discussion on Configuring a Basic DHCPv4 Server, In last article we discuss about DHCPv4 Discover and Offer Messages.
A Cisco router running Cisco IOS software can be configured to act as a DHCPv4 server. The Cisco IOS DHCPv4 server assigns and manages IPv4 addresses from specified address pools within the router to DHCPv4 clients.
Step 1. Excluding IPv4 Addresses
The router functioning as the DHCPv4 server assigns all IPv4 addresses in a DHCPv4 address pool unless configured to exclude specific addresses. Typically, some IPv4 addresses in a pool are assigned to network devices that require static address assignments. Therefore, these IPv4 addresses should not be assigned to other devices. To exclude specific addresses, use the ip dhcp excluded-address command.
A single address or a range of addresses can be excluded by specifying the low-address and high-address of the range. Excluded addresses should include the addresses assigned to routers, servers, printers, and other devices that have been or will be manually configured.
Step 2. Configuring a DHCPv4 Pool
Configuring a DHCPv4 server involves defining a pool of addresses to assign. The ip dhcp pool pool-namecommand creates a pool with the specified name and puts the router in DHCPv4 configuration mode, which is identified by this prompt Router(dhcp-config)#.
Step 3. Configuring Specific Tasks
The address pool and default gateway router must be configured. Use the network statement to define the range of available addresses.
Use the default-router command to define the default gateway router. Typically, the gateway is the LAN interface of the router closest to the client devices. One gateway is required, but you can list up to eight addresses if there are multiple gateways.
Other DHCPv4 pool commands are optional. For example, the IPv4 address of the DNS server that is available to a DHCPv4 client is configured using the dns-server command. The domain-name domain command is used to define the domain name. The duration of the DHCPv4 lease can be changed using the leasecommand. The default lease value is one day. The netbios-name-server command is used to define the NetBIOS WINS server.
A sample configuration with basic DHCPv4 parameters configured on router R1. R1 is configured as a DHCPv4 server for the 192.168.10.0/24 LAN.
The DHCPv4 service is enabled, by default. To disable the service, use the no service dhcpglobal configuration mode command. Use the service dhcp global configuration mode command to re-enable the DHCPv4 server process. Enabling the service has no effect if the parameters are not configured.
I am Hamza arif, and i am excited to learn new things, i am well focused for my work and always try to explore new things. My graduate is in BS (Telecom) and i am expert in Networks and working on new technology is my passion i work a lot on AI (Artificial Intelligence) Augmented Reality and many other projects.