How to Configure DHCP Relay Agent on Cisco Router in GNS3? – We have already reviewed DHCP Server configuration steps on Cisco routers. In this article, we will automatically distribute IP addresses to clients from a DHCP server on a different network.
GNS3 Cisco Router DHCP Relay Agent Yapılandırma

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

If a DHCP server configured on a network enters a non-responsive state for any reason, a DHCP server can be configured as a backup on a different network. Thus, when the DHCP server in LAN1 can not respond to the IP address request messages of the clients, the DHCP server in LAN2 will be activated automatically.

In this article, we will use the VMware Workstation and GNS3 programs to create a small network topology and implement the DHCP Relay Agent configuration steps.

Create 2 virtual machines with VMware Workstation and configure VMnet settings. In the GNS3 program, add Cloud Nodes for these virtual machines.

Our Recommendation

You can purchase “Cisco CCNA R&S” from Amazon.

How to Enable DHCP Relay Agent on Cisco Router using GNS3?

After you have configured the DHCP Relay Agent configuration on Cisco routers, follow the steps below in order.

   Step 1

Open the GNS3 program and create a new project.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 2

For the steps to configure DHCP Relay Agent on Cisco Router in GNS3, create a network topology as shown in the following image.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 3

Configure the Cisco Router FastEthernet 0/0 and FastEthernet 0/1 interfaces.

[code] R1# conf t
R1(config)# interface fastethernet 0/0
R1(config-if)# ip address 192.168.5.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# interface fastethernet 0/1
R1(config-if)# ip address 192.168.10.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# end
[/code]

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 4

Create a DHCP pool as an example on Router R1 and also type R1DHCP for the domain-name setting. First, we will get the IP address from the Cisco Router DHCP server with the Windows 8.1 virtual machine. Next, we will configure the DHCP Relay Agent settings on the Cisco Router by installing a 3rd party DHCP server on the Windows 10 virtual machine.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 5

Enable the automatic IP address option in the Windows 8.1 virtual machine TCP/IP settings.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 6

Click the OK button to save the setting.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 7

Click on the Windows 8.1 Ethernet Details button and check the IP address settings. As shown in the following figure, the automatic IP address has successfully acquired from the Cisco Router DHCP server.

Note the R1DHCP domain name. The purpose here is to understand the functioning of the DHCP Relay Agent.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 8

Switch to the Windows 10 virtual machine and test the connection by pinging.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 9

Download the 3rd party DHCP Server program from the bottom of the article. Run dhcpwiz.exe in the folder. Then click on the Next button to continue.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 10

Take care of the setting here! The IP address of the DHCP server is 192.168.10.10. Click Next to continue.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 11

Go to the next step again.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 12

On the Windows 10 virtual machine, the 3rd Party DHCP Server will distribute the IP address to the 192.168.5.0/24 IP address block, so configure the settings on this screen as follows. Then click the DHCP Options button.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 13

In the DHCP Options window, type DHCPRELAY in the domain name field and click the OK button.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 14

In the DHCP Server Advanced window, configure the Subnet Mask and Default Gateway options as follows.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 15

After configuring the DHCP Server on the Windows 10 virtual machine, click on the Next button to continue with the next step.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 16

It is important to note here that the summary information is written to a file. Select the Overwrite existing file option, and then click the Write INI file button to save the settings.

Continue by clicking on the Next button…

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 17

As soon as DHCP configuration is complete, a window will open as shown below to start the DHCP service and click the Admin button in this window.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 18

Click the Install button.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 19

The DHCP service is not running. Click the Start button to start the DHCP service.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 20

DHCP Server is running!

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 21

The most important step to configure DHCP Relay Agent on Cisco Router in GNS3. Open the Cisco Router CLI command prompt and type the 3rd Party DHCP server IP address in the FastEthernet 0/0 interface using the ip helper-address command.

Assuming that the DHCP server running on the Cisco Router encounters any errors, disable the DHCP server on the Router with the no ip dhcp pool LAN command.

[code] R1# conf t
R1(config)# interface fastethernet 0/0
R1(config-if)# ip helper-address 192.168.10.10
R1(config-if)# exit
R1(config)# no ip dhcp pool LAN
[/code]

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 22

To allocate another IP address from the DHCP server on the Windows 8.1 virtual machine, open the CMD command prompt and execute the ipconfig / release command.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 23

Now let’s get a new IP address by executing ipconfig / renew command.

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

   Step 24

The Windows 8.1 virtual machine has successfully obtained the IP address information from the DHCP server with the IP address 192.168.10.0/24 on the 192.168.10.0/24 network.

Note the domain name in the following image…

How to Configure DHCP Relay Agent on Cisco Router in GNS3?

How to Configure DHCP Relay Agent on Cisco Router in GNS3? ⇒ Video

You can watch how to configure DHCP Relay Agent on Cisco Router in GNS3 and you can also subscribe to our YouTube channel…

  Final Word

How to Configure DHCP Relay Agent on Cisco Router in GNS3? – In this article, we have performed automatic IP address retrieval from the DHCP server on a different network. Please note that you have configured the Cisco Router FastEthernet 0/0 interface as the DHCP Relay Agent. If you did not configure the DHCP Relay Agent on the Router, the Windows 8.1 virtual machine would not get the IP address.

If this article is helpful, send me feedback by commenting! Thanks in advance, take care of yourself!

Also, you can add to browser bookmarks by pressing the CTRL+D to read this article later!

Articles Related to How to Configure DHCP Relay Agent on Cisco Router in GNS3

Products Related to How to Configure DHCP Relay Agent on Cisco Router in GNS3
Related Products

File Related to How to Configure DHCP Relay Agent on Cisco Router in GNS3
Related File
You can download 3. Party DHCP Server program to your computer from the button below…

2 thoughts on “How to Configure DHCP Relay Agent on Cisco Router in GNS3?

Leave a Reply

Your email address will not be published. Required fields are marked *

twelve + one =