NETGEAR M7100 Switch User Manual


 
Chapter 22. DHCP Server | 381
22
22. DHCP Server
This chapter provides the following examples:
Figure on page 381
Configure a DHCP Reservation on page 384
When a client sends a request to a 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.
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
(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