DHCP
DHCP
Ahmed Nabil 1
Configuring a DHCP Server Router(config)#service dhcp Enables DHCP features on router; it is on by default. Router(config)#ip dhcp pool pool name Router(config-dhcp)#default-router default gateway address Router(config-dhcp)#network network address subnet mask Router(config-dhcp)#dns-server address [address2...address8] Router(config-dhcp)#lease {days [hours] [minutes] | infinite} Router(config)#ip dhcp excluded-address lowaddress [high address]
Ahmed Nabil 2
Configuration Example
Client
:The following is an example of the partial command syntax for this feature Central Router ip dhcp-excluded address 10.0.0.1 10.0.0.5 ip dhcp pool central network 10.0.0.0 255.255.255.0 default-router 10.0.0.1 dns-server 10.0.0.2 interface fastethernet0/0 ip address 10.0.0.1 255.255.255.0
Show ip dhcp binding# Displays the bindings between IP, MAC on a DHCP server
Ahmed Nabil 3