0% found this document useful (0 votes)
6 views

DHCP Relay Agent Configuration in Cisco Packet Tracer

The document discusses configuring DHCP relay agent on a Cisco router to allow devices connected to one interface to obtain IP addresses from a DHCP server connected to a different interface. It provides steps to configure the router interfaces, assign IP addresses, create DHCP pools on the server, and configure the DHCP helper address on the router interface to forward requests to the DHCP server.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

DHCP Relay Agent Configuration in Cisco Packet Tracer

The document discusses configuring DHCP relay agent on a Cisco router to allow devices connected to one interface to obtain IP addresses from a DHCP server connected to a different interface. It provides steps to configure the router interfaces, assign IP addresses, create DHCP pools on the server, and configure the DHCP helper address on the router interface to forward requests to the DHCP server.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

DHCP relay agent configuration in cisco packet tracer

1. Create the following network topology.

2. Router0 configuration (interface gigabitethernet0/0)


➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with CNTL/Z.
➢ Router(config)#interface gigabitethernet0/0
➢ Router(config-if)#ip address 192.168.100.1 255.255.255.0
➢ Router(config-if)#no shutdown

➢ Router(config-if)#
➢ %LINK-5-CHANGED: Interface GigabitEthernet0/0, changed
state to up

➢ %LINEPROTO-5-UPDOWN: Line protocol on Interface


GigabitEthernet0/0, changed state to up

➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#do show ip int brief
3. Router0 configuration (interface gigabitethernet0/1)
➢ Router(config-if)#interface gigabitethernet0/1
➢ Router(config-if)#ip address 192.168.200.1 255.255.255.0
➢ Router(config-if)#no shutdown

➢ Router(config-if)#
➢ %LINK-5-CHANGED: Interface GigabitEthernet0/1, changed
state to up

➢ %LINEPROTO-5-UPDOWN: Line protocol on Interface


GigabitEthernet0/1, changed state to up

➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#do show ip int brief
4. Assign an IP address to Server 0 as follows.

5. Create a dhcp Pool named acn0 in server 0.


6. Create a dhcp pool named second acn1 in server 0.

7. All pc connected to switch 1 will get IP address through dhcp


server.
PC3
PC4

PC5
8. But all the pc connected to switch 0 will not be able to get ip
address through dhcp server.
PC0

PC1
PC2

9. But if we want to assign ip address through dhcp server to all


pcs connected to switch 0 then for that you have to do
configuration in router as mentioned below.
➢ Router>enable
➢ Router#config t
➢ Enter configuration commands, one per line. End with
CNTL/Z.
➢ Router(config)#interface gigabitethernet0/0
➢ Router(config-if)#ip helper-address 192.168.200.2 (ip helper-
address ip address of dhcp server)
➢ Router(config-if)#do wr
➢ Building configuration...
➢ [OK]
➢ Router(config-if)#
10. Now all the PCs connected to switch 0
(Gigabitethernet0/0) will be successfully assigned an ip address
by the dhcp server.
PC0

PC1
PC2

You might also like