![]() ![]() ![]() You should be able to ping successfully, as shown in the following figure.ġ1. To verify the connectivity between PC1 and Router1, execute the following command at the Command Prompt window. ![]() In the preceding figure, you can see that 10.0.0.102 IP address has been assigned by the DHCP server.ĩ. After a few seconds, DHCP server will assign an IP address from the configured DHCP pool along with a default gateway and DNS server IP addresses.Ĩ. On the available options, click IP Configuration and then select the DHCP radio button.ħ. To do so, open the console of PC1, select the Desktop tab. Once you have configured an IP address on Router2, switch to PC1, and try to obtain TCP/ IP settings through the DHCP server. Note: Adding the do command before the show command allows you to execute privilege mode commands from the global configuration mode.Ħ. Or Router2( config)# do show ip int brief Wait for a few seconds and then execute the following command to view the IP address on Router2. To do this, execute the following commands. On Router2, we will assign an IPv4 address on the Fa0/ 0 interface through the DHCP server. The following commands will exclude 10.0.0.0.1 to 10.0.0.100 IP addresses that will not be distributed by DHCP server. DHCP server will not distribute these IP addresses to any of the DHCP client.ģ. To avoid the confliction between DHCP assigned and manually assigned IP addresses, you can exclude one or more specific IP addresses or IP ranges from the DHCP pool. However, we have already configured this IP addresses manually on Fa0/ 0 interface of Router1. Router( dhcp-config)# network 10.0.0.0 255.0.0.0īy default DHCP server will start to assign IP addresses from the first IP address of the assigned network ID and it will be 10.0.0.1/ 8. Router( dhcp-config)# dns-server 10.0.0.1 Router( dhcp-config)# default-router 10.0.0.1 Use 10.0.0.1 IP address as the default gateway and DNS server. Next, create a DHCP pool named DhcpPool1. On Router1, execute the following commands to configure an IP address. In the preceding topology, Router1 will act as DHCP server while Router2 and PC1 will act as DCHP clients. To perform this exercise, we will use the following topology.įirst, add the required devices in Cico Packet Tracer and connect them appropriatley. Also, you can exclude IP addresses from distributed scope by entering command: ip dhcp excluded-address 192.168.0.1 192.168.0.10 This will prevent issuance of addresses 192.168.0.1 thru 192.168.0.10. The server can be either Windows-based or Linux-based. This will enable DHCP service for your 192.168.0.0/24 network with lease time for each address in 7 days. Typically, DHCP is configured on a dedicated server for better performance. It is a service which allows you to configure TCP/ IP settings such as IP address and subnet mask on the clients (PC, laptop, printer, etc.) automatically. DHCP stands for Dynamic Host Configuration Protocol. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |