-
Notifications
You must be signed in to change notification settings - Fork 0
Class Lab 3.1: Simple DHCP Relay Hardware Lab
Emma edited this page Sep 8, 2025
·
16 revisions
In this lab we are creating the environment from Week 1 but setting up the Skiff Server to be a DHCP server and setting up DHCP on the Foster Laptop.
- We used an 1841 router for the 1841 router
- The 2960 switches are small Netgear switches
- The Laptop and Server were Seraphim and my workstations booted to a Kali Linux thumbdrive
- Plugged Ethernet cables into the Router
- Cable from Emma's Workstation (Foster Laptop) 192.168.3.0 Network = FastEthernet 0/1
- Cable from Seraphim's Workstation (Skiff Server) 192.168.1.0 Network = FastEthernet 0/0
- Console Cable from Luc's Workstation to the Console port on the router
- Open Device Manager and see what COM port the Router is using
![]()
- Power on Switch
- Open Putty in Workstation
- Change "connection type" to serial and change the "serial line"
![]()
- Click Open
This was already done for us
![]()
Step 2: Update Cisco router with "ip helper-address" on the Foster interface using the ip address of the DHCP server (e.g. 192.168.1.100)
Router# conf tRouter(config)#interface FastEthernet0/1Router(config-if)#ip helper-address 192.168.1.100![]()
- Keep the Skiff/Kali System on the Ireland Network to have internet access
- Open Terminal ->
sudo apt update- If there is a time discrepancy:
sudo date --set="2024-09-09 14:23:00
wget -q -O -https://archive.kali.org/archive-key.asc | sudo apt-key add -- '''sudo apt install isc-dhcp-server'''
- Disconnect from the Ireland Network
- We Assigned the manual IP address to 192.168.1.100
- edit /etc/default/isc-dhcp-server => update line to
INTERFACESv4="eth0"- edit /etc/dhcp/dhcpd.conf => add the following subnet definitions to the bottom of the file
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.200 192.168.1.205;
option routers 192.168.1.1;
}
subnet 192.168.3.0 netmask 255.255.255.0 {
range 192.168.3.200 192.168.3.205;
option routers 192.168.3.1;
}
- Start DHCP server ->
sudo systemctl start isc-dhcp-server- Check that its working with
sudo systemctl start isc-dhcp-server-> should show that its active
- Can also check with systemctl status isc-dhcp-server```
- Open Root Terminal on Kali
- '''nmtui'''
- Edit a connection -> Make sure IPv4 is set to Automatic -> ok -> exit
- (If not in root terminal add sudo to the beginning of the next two commands)
dhclient -r eth0will release your IPdhclient ethowill renew your IP from DHCP
ifconfig
DHCP wasn't working do we added a route on the Skiff Server.
sudo ip route add 192.168.3.0/24 via 192.168.1.1
-
dhclient -r <interface>-> releases your IP address -
dhclient <interface>-> renews your IP
- Updating a router with the IP address of the DHCP server
-
- interface
-
- ip helper-address
- Power off the Workstation
- Plug the USB Thumbdrive into the powered off workstation
- Hit the F10 key during the NUC screen
- From the Boot Menu - Select "UEFI Vendor Product Code 2"
- Select "Live System (amd64)" (first option) from the menu
- If it prompts for a signin pass word use kali defaults
