In the next part of this tutorial, we will take a packet tracer example to understand how to use or execute the above-explained commands to configure a Cisco switch to act as a DHCP server. Use the next-server command in DHCP pool configuration mode to define the TFTP server IP address. If you have a TFTP server in your network, set the IP address of it.Use the lease command in DHCP pool configuration mode to define the length of the lease, in days, hours, and minutes. If you don’t want to use the default lease duration of 24 hours, set the lease duration.Use the dns-server command in DHCP pool configuration mode to define the list of DNS server IP addresses used by clients in this pool. Use the 'default-router ' command in DHCP pool configuration mode to define the default gateway IP address. Use the 'network or network ' command in DHCP pool configuration mode to define the range of IP addresses. Define the range of IP addresses that the DHCP server should provide to clients.To create a DHCP pool and to navigate to DHCP pool configuration mode, use the command 'ip dhcp pool ' in global configuration mode. Create your DHCP pool using a unique name.For this, use the command 'ip dhcp excluded-address ' in global configuration mode. Create a list of addresses that you want to exclude or reserve.To configure a DHCP server on a Cisco router or switch, use the following configuration steps. Except the command that defines the list of excluded or reserved addresses, all commands that are required to configure the DHCP server run in DHCP pool configuration mode. DHCP pool configuration mode allows us to create and configure DHCP pools. The following image shows how multiple IP configurations are stored in a DHCP pool.Ĭisco routers and switches include a special configuration mode known as DHCP pool configuration mode. Depending on your requirement, you can increase or decrease it. By default, an IP configuration remains valid for 24 hours. Once the validity period is expired, the client needs to obtain a new IP configuration from the server. A DHCP client can use the assigned IP configuration until its validity expires. The lease duration defines the validity of the IP configuration. If a TFTP server is available in the network, you can use this option to provide the IP address of the TFTP server to all hosts. TFTP server IP addressĪ TFTP server allows hosts to download or store files. If you have more than one DNS server, you can configure all of them on hosts through this option. If a DNS server is configured, you can set its IP address in this option. DNS server IP addressesĭNS servers allow hosts to access network resources by using their names instead of their IP addresses. Typically, this is the IP address of the router's interface that is directly connected to the local network. This option allows us to set a default gateway IP address for hosts. If a local host wants to send a data packet to a host that is not available in the local network, it sends the data packet to the default gateway. This feature allows us to configure static IP addresses on critical network resources such as servers, printers, and routers. DHCP servers do not assign the excluded addresses. If you don't want to assign a few addresses from the range, you can configure them as excluded addresses. Except the network ID and broadcast ID, all addresses of the defined IP range can be leased to clients. In this range, the network address is 192.168.1.0 and the local broadcast address is 192.168.1.255.ĭHCP servers do not lease the network ID and broadcast ID. To define a range, we use the network ID and the subnet mask. How to Configure DHCP Relay Agent on Cisco RoutersĬonfigure DHCP Snooping on Cisco Switches How to Configure DHCP Server on Cisco Routers How to Configure DHCP Server on Cisco SwitchesĬonfigure DHCP Server for multiple VLANs on the Switch Other parts of this tutorial are the following. This tutorial is the third part of the article 'DHCP (Dynamic Host Configuration Protocol) basic concepts, configurations, functions, and options Explained'.
0 Comments
Leave a Reply. |