Netgear M4100-26G-POE (GSM7226LPv1h1) - 22‐port GE + 4 GE Combo L2 Managed PoE Switch Administrator's Guide

Page of 353
DHCP L2 Relay and L3 Relay 
330
ProSAFE M4100 Managed Switches 
DHCP L2 Relay
DHCP relay agents eliminate the need to have a DHCP server on each physical network. 
Relay agents populate the giaddr field and also append the Relay Agent Information 
option to the DHCP messages. DHCP servers use this option for IP addresses and other 
parameter assignment policies. These DHCP relay agents are typically IP routing-aware 
devices and are referred to as Layer 3 relay agents. 
 In some network configurations, there is a need for Layer 2 devices to append the relay 
agent Information option as they are closer to the end hosts. 
DHCP Server #1
Host #1
Host #2
Layer 2 Switch #1
1/0/4
1/0/5
1/0/6
Figure 33. DHCP L2 Relay
These Layer 2 devices typically operate only as bridges for the network and might not have 
an IPv4 address on the network. Lacking a valid IPv4 source address, they cannot relay 
packets directly to a DHCP server located on another network. These Layer 2 devices 
append the Relay agent information option and broadcast the DHCP message. This section 
provides information about where a Layer 2 relay agent fits in and how it is used. 
CLI: Enable DHCP L2 Relay
1. 
Enter the following commands:
(Netgear Switch)#vlan database
(Netgear Switch)(Vlan)#vlan 200
(Netgear Switch)(Vlan)#exit