Netgear M4300-28G (GSM4328S) - Stackable Managed Switch with 24x1G and 4x10G including 2x10GBASE-T and 2xSFP+ Layer 3 Administrator's Guide

Page of 688
DHCP Server 
466
Managed Switches 
Dynamic Host Configuration Protocol Concepts
When a client sends a request to a Dynamic Host Configuration Protocol (DHCP) server, the 
DHCP server assigns the IP address from address pools that are specified on the switch. The 
network in the DHCP pool must belong to the same subnet.
A DHCP server allows the switch to dynamically assign an IP address to a DHCP client that 
is attached to the switch. It also enables the IP address to be assigned based on the client’s 
MAC address. The following are examples of how the DHCP Server feature is used.
Configure a DHCP Server in Dynamic Mode
The following example shows how to create a DHCP server with a dynamic pool. The 
example is shown as CLI commands and as a web interface procedure.
CLI: Configure a DHCP Server in Dynamic Mode
Note:
If there is no DHCP L3 relay between client PC and DHCP server, 
there must be an active route whose subnet is the same as the DHCP 
dynamic pool’s subnet.
(Netgear Switch) #vlan database 
(Netgear Switch) (Vlan)#vlan 200
(Netgear Switch) (Vlan)#vlan routing 200
(Netgear Switch) (Vlan)#exit
(Netgear Switch) (Config)#interface 1/0/1
(Netgear Switch) (Interface 1/0/1)#vlan participation include 200
(Netgear Switch) (Interface 1/0/1)#vlan pvid 200
(Netgear Switch) (Interface 1/0/1)#exit
(Netgear Switch) (Config)#interface vlan 200
(Netgear Switch) (Interface-vlan 200)#routing
(Netgear Switch) (Interface-vlan 200)#ip address 192.168.100.1 255.255.255.0
(Netgear Switch) #config
(Netgear Switch) (Config)#service dhcp
(Netgear Switch) (Config)#ip dhcp pool pool_dynamic
(Netgear Switch) (Config)#network 192.168.100.0 255.255.255.0