Chapter 29. DHCP L2 Relay and L3 Relay | 489
ProSafe M4100 and M7100 Managed Switches
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
2. Enable the DHCP L2 relay on the switch.
(Netgear Switch) (Config)#dhcp l2relay
(Netgear Switch) (Config)#dhcp l2relay vlan 200
3.
(Netgear Switch) (Config)#dhcp l2relay circuit-id vlan 200
Enable the Option 82 Circuit ID field.
4. Enable the Option 82 Remote ID field.
(Netgear Switch) (Config)#dhcp l2relay remote-id rem_id vlan 200
5. Enable DHCP L2 relay on port 1/0/4.
(Netgear Switch) (Config)#interface 1/0/4
(Netgear Switch) (Interface 1/0/4)# dhcp l2relay
(Netgear Switch) (Interface 1/0/4)# vlan pvid 200
(Netgear Switch) (Interface 1/0/4)# vlan participation include 200
(Netgear Switch) (Interface 1/0/4)# exit