AIM :- Configuring DHCP on Router
DHCP stands for Dynamic Host Configuration
Protocol. 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. Typically, DHCP is configured on a dedicated server for better
performance. The server can be either Windows-based or Linux-based.
To perform this exercise, we will use the
following topology.
First, add the required devices in Cico Packet
Tracer and connect them appropriately. In the preceding topology, Router1 will
act as DHCP server while Router2 and PC1 will act as DCHP clients. Let’s begin
the exercise.
Configuring DHCP on Router
DHCP stands for Dynamic Host Configuration
Protocol. 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. Typically, DHCP is configured on a dedicated server for better
performance. The server can be either Windows-based or Linux-based.
To perform this exercise, we will use the
following topology.
First, add the required devices in Cico Packet Tracer and connect them appropriately. In the preceding topology, Router1 will act as DHCP server while Router2 and PC1 will act as DCHP clients. Let’s begin the exercise.
Configuring DHCP on Router
DHCP stands for Dynamic Host Configuration
Protocol. 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. Typically, DHCP is configured on a dedicated server for better
performance. The server can be either Windows-based or Linux-based.
To perform this exercise, we will use the
following topology.
First, add the required devices in Cico Packet Tracer and connect them appropriately. In the preceding topology, Router1 will act as DHCP server while Router2 and PC1 will act as DCHP clients. Let’s begin the exercise.
- On Router1, execute the following commands to
configure an IP address.
- Next, create a DHCP pool named DhcpPool1. Use
10.0.0.1 IP address as the default gateway and DNS server. Use 10.0.0.0
255.0.0.0 as network ID. By 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. However, we have already configured this IP addresses manually on Fa0/ 0 interface of Router1. 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. DHCP server will not distribute these IP addresses to any of the DHCP client.
- 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.
- On Router2, we will assign an IPv4 address on
the Fa0/ 0 interface through the DHCP server. To do this, execute the following
commands.
- Wait for a few seconds and then execute the
following command to view the IP address on Router2.
- Once you have configured an IP address on Router2, switch to PC1, and try to obtain TCP/ IP settings through the DHCP server. To do so, open the console of PC1, select the Desktop tab. On the available options, click IP Configuration and then select the DHCP radio button.
- 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.
- In the preceding figure, you can see that 10.0.0.102 IP address has been assigned by the DHCP server.
- To verify the connectivity between PC1 and
Router1, execute the following command at the Command Prompt window.
- You should be able to ping successfully, as
shown in the following figure.
- Save the configuration of each device and also save the topology and name is as DHCP Topology
No comments:
Post a Comment
If you have any doubts, please let me know