Sections:
Overview:
Lab Topology
Scenario:
Configuration
Raspberry Pi DHCP Setup
Using the management GUI of the Raspberry Pi running OpenWRT firmware, I have setup the DHCP server to serve the LAN interface and to assign an IP address to my GNS3 Gateway-R1 router.
LAN interface of the Raspberry Pi using the 192.168.99.0/24 subnet.
DHCP server scope range and lease time parameters.
DHCP server options including options for default gateway and DNS.
Active LAN DHCP leases including my GNS3 virtual machine.
Raspberry Pi acting as a DHCP client towards my ISP router via wireless.
Gateway-R1
Verify no IP address is assigned on the WAN Gi0/0 interface.
Configure the Gi0/0 WAN interface as a DHCP client and optionally assign a DHCP hostname for the device.
Verify the DHCP IP address of the Gi0/0 interface.
Test gateway and Internet connectivity from the router.
Verify the active DHCP leases of the Raspberry Pi DHCP server for the router entry - hostname GNS3_Gateway-R1.
DHCP Client Packet Captures
Scenario:
Discover Packet
Offer Packet
Request Packet
Acknowledgement Packet
ICMP Packets
ICMP Packets from the router destined to the default gateway Raspberry Pi and the Internet.