Class Lab 3-1: Simple DHCP Relay Hardware Lab

Recreate the environment from Lab 1.1:

Lab 1.1 Simple Network Hardware Lab

Hardware

  • one 1841 router

  • two 2960 switches (NetGear)

  • one workstation (kali)

  • One workstation (windows configuration machine)

  • One console cable

  • Four ethernet cables

Lab Setup

  • Use ethernet cables to connect gear

  • Use the console cable to connect to the configuration computer (light blue cable)

  • Configure the router with PuTTy

    • Under connection, go to serial and enter the following:

1. Serial Line to Connect: COM port from step 2 
2. Bits per sec: 9600
3. Data bits: 8 
4. Parity: none
5. Stops bits: 1
6. Flow Control: none 
  • Under Session - Select serial and change the COM port to the # from step 2:

    • Click Open - hit enter and you should have access

Subnet for Foster is 192.168.3.0/24

Subnet for Skiff is 192.168.1.0/24

  • Use the bootable kali hard-drive for the Foster Laptop and the Skiff server (don't connect them to the switches yet)

Set up DHCP on Skiff Server

  • Leave the Skiff/Kali live system on the Ireland Network (make sure you have internet access)

  • Open Terminal and:

    • sudo apt update

  • Install isc dhcp server

    • sudo apt install osc-dhcp-server

  • Disconnect Skiff/Kali NUC from Ireland Network and connect to your Skiff switch

  • Assign a manual IP address (such as 192.168.1.100) on "Skiff Server/Kali" on the Skiff subnet

    • use ip addr to make sure that your new IP is in effect on eth0

  • On Skiff Server (Kali) Configre the DHCP server

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 the DHCP server with sudo systemctl start isc-dhcp-server

  • Update Cisco Router with ip helper-addresson the Foster Interface using the ip address of the DHCP Server

Getting DHCP to work for Foster Laptop

  • Set Foster laptop to DHCP and obtain address and IP configuration.

  • If it works, you should be able to ping the skiff server

If needed - Booting Classroom NUCS to Kali Linux

  1. Plug the USB Thumbdrive into the powered off workstation

  2. Hit the F10 key during the NUC Splash Screen

  3. From the Boot Menu – Select UEFI Vendor Product Code 2

  4. Select “Live System (amd64)” (first option) from the menu

  5. That will take you into a Live Kali Linux desktop

  6. If needed:

    1. Username: kali

    2. Password: kali

Last updated