How to Configure Router from pc in packet tracer?

Mahesh Sharma
3 min readJul 24, 2021

--

we’ll do a network configuration in which hosts in one broadcast domain will obtain their IP addresses from a DHCP server located in a different broadcast domain. This is made possible by use of IP helper-address command on a router interface (default gateway) connecting to a given broadcast domain being served by DHCP server, and which the server is not part of.

In this post, we’ll first configure the DHCP service on a router, and then configure the DHCP service on a Generic Server. Just follow the simple steps below and you’ll have it working.

Case 1: Using DHCP pool configured on a Router.

1. First create the network topology in Packet Tracer as shown below.

ip helper address router topology.PNG

2. Configure router interface addresses and routing.

Router 1
Router1( config) #int fa0/1
Router1( config-if) #ip add 192.168.1.1 255.255.255.0
Router1( config-if) #no shutdown
Router1( config-if) #exit.

Router1( config) #router eigrp 1.
Router1( config-router) #net 192.168.1.0.
Router1( config-router) #exit.
Router 2.
Router2( config) #interface fa0/1.
Router2( config-if) #ip address 192.168.1.2 255.255.255.0.
Router2( config-if) #no shutdown.
Router2( config-if) #.
Router2( config-if) #interface fa 0/0.
Router2( config-if) #ip address 192.168.2.1 255.255.255.0.
Router2( config-if) #no shutdown.

Router2( config-if) #exit.

Router2( config) #router eigrp 1.
Router2( config-router) #network 192.168.1.0.
Router2( config-router) #network 192.168.2.0.

3. Configure a DHCP server in Router 1 to serve hosts in SALES LAN.

Router1( config) #.
Router1( config) #ip dhcp pool SALES.
Router1( dhcp-config) #network 192.168.2.0 255.255.255.0.
Router1( dhcp-config) #default- router 192.168.2.1.
4. Add the command ip helper-address 192.168.1.1 on interface configuration mode of interface fa 0/0 of Router 2.

Router2( config) #interface fa 0/0.
Router2( config-if) #ip helper-address 192.168.1.1.
This is the command which enables hosts in SALES LAN to dynamically obtain IP addresses from the DHCP server configured on Router 1( a server located in a different broadcast domain).

You’re almost done.

5. Lastly, go to the PCs in sales LAN, and from their IP configuration tabs, check DHCP. The PCs will automatically acquire their addresses, courtesy of a relay agent help.

For example, here is IP config for PC1:.

And that’s it.

Let’s now do the same thing once more, but this time using a DHCP pool configured on a generic server in Packet Tracer. So we go to:.

Case 2: Using a DHCP pool configured on a generic server in Packet Tracer.

In this case, instead of using a DHCP server configured on a router, we’ll configure DHCP service on a generic server then use the IP-helper address command to achieve the same thing we’ve just realized for case 1. So then,.

From our previous topology, replace Router 1 with a Generic server. The new topology will look like this:.
generic sever ip helper topology.PNG.

2. Assign a static IP address to the server.

Server: IP address: 192.168.1.2 Subnet mask: 255.255.255.0 Default gateway: 192.168.1.1.

3. Router 2 interface configurations appear just as we’ve configured them previously, only that in this case, we’ll not configure routing protocols.

Router2( config) #interface fa 0/0.
Router2( config-if) #ip address 192.168.2.1 255.255.255.0.
Router2( config-if) #no shutdown.
Router2( config-if) #.
Router2( config-if) #interface fa 0/1.
Router2( config-if) #ip add 192.168.1.1 255.255.255.0.
Router2( config-if) #no shutdown.

4. Click on DHCP Server- > Services- > DHCP.

Turn ON the DHCP service on the server.

We’ll configure DHCP server pool named SALES on the generic server (Located on the network 192.168.1.0/ 24). This pool will provide IP addresses to hosts in SALES LAN (Network 192.168.2.0/ 24).

Here we go:.

Pool Name: SALES Default Gateway: 192.168.2.0 DNS server: 192.168.1.2.

Start IP address: 192.168.2.0 Subnet Mask: 255.255.255.0 Maximum no. of Users: 255.

DHCP_Generic server-IP-helper address.

4. Add the command ip helper-address 192.168.1.2 on the interface configuration mode of fa 0/0 of Router 2, just as we’ve done before.

Router2( config) #interface fa0/0.
Router2( config-if) #ip helper-address 192.168.1.2.
5. Lastly enable DHCP on the PCs in SALES LAN. The PCs will obtain their address from the DHCP server. Same result as before! Only that here we’ve used a generic server.

As an example, here are PC1 DHCP configurations:.

PC1 DHCP config- IPHeleper Address.

That’s all.

Don’t hold back your thoughts on this post. I value your comments!

You may also like to read:.

DNS configuration in Packet Tracer.
HTTP server configuration in Packet Tracer.
DHCP configuration in Packet Tracer.
Mail server configuration in Packet Tracer.

--

--

Mahesh Sharma
Mahesh Sharma

Written by Mahesh Sharma

Mahesh Sharma – Digital Marketing Expert | 10+ Years | SEO, PPC, Social Media & Content Strategist | Boosting Brand Visibility & ROI with Data-Driven Marketing.

No responses yet