DHCP Relay
DHCP Relay
DHCP Relay
PNETLAB Store
PNETLab.com
DHCP Relay
Lab Topology:
Please use the following topology to complete this lab exercise:
https://user.pnetlab.com/store/labs/detail?id=16059478386279
Lab Objective:
The objective of this lab exercise is for you to learn and understand how can you configure
DHCP Relay
Task list:
Task 1: Configure the hostname and IP address for Routers as topo.
Task 2: Configure OSPF Area 1 routing in R2,R3,R4
Task 3: Configure DHCP client on R1 and DHCP Server on R4.
Task 4: Configure DHCP Relay and turn on debug dhcp packet on R2 to understand DHCP Relay
function.
SOLUTION:
Task 1: Configure the hostname and IP address for Routers as topo.
On R2
!
interface Ethernet0/0
ip address 192.168.1.1 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.23.2 255.255.255.0
!
1
Download PNETLab Platform
PNETLAB Store
PNETLab.com
On R3
!
interface Ethernet0/0
ip address 10.1.34.3 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.23.3 255.255.255.0
!
On R4
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface Ethernet0/0
ip address 10.1.34.4 255.255.255.0
!
Task 2: Configure OSPF Area 1 routing in R2,R3,R4
On R2
!
router ospf 1
network 10.1.23.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
!
On R3
!
router ospf 1
network 10.1.23.0 0.0.0.255 area 0
network 10.1.34.0 0.0.0.255 area 0
!
On R4
!
router ospf 1
network 4.4.4.4 0.0.0.0 area 0
network 10.1.34.0 0.0.0.255 area 0
!
//So, R2 could reach to interface loopback 0 of R4 via OSPF.
Task 3: Configure DHCP client on R1 and DHCP Server on R4.
On R1
!
interface Ethernet0/0
ip address dhcp
!
On R4
!
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Task 4: Configure DHCP Relay and turn on debug dhcp packet on R2 to understand DHCP Relay
function.
On R2
!
interface Ethernet0/0
ip helper-address 4.4.4.4
!
//R2 will pass the DHCP packet from R1 to DHCP Server in 4.4.4.4
//Following the log and IP address on R1. We could understand the DHCP Relay function.