DCHP Configuration
R(config)#ip dhcp pool <pool name>
R(dhcp-config)#network <subnet network IP addr> <mask>
R(dhcp-config)#default-router <ip addr of the default gateway>
R(dhcp-config)#dns-server <DNS ip addr>
R(dhcp-config)#domain-name <domain name>
R(dhcp-config)#netbios-name-server <WINS ip addr>
R(dhcp-config)#lease <days|hours|minutes> infinite
R(config)#ip dhcp excluded-address <ip addr start> <ip addr end>
Note that DHCP is enabled by default on cisco servers. It can be enabled or disabled with the commands:
R(config)#ser
R(config)#no
ser
R(config)#int f0/0
R(config-if)#ip address <ip addr> <subnet mask>
R1(config)#Router RIP
R1(config-router)#network <ip addr> (IP of R12 network)
Router show and
debug commands
show run
show ip dhcp [ binding | conflict | server statistics ]
debug ip dhcp server events
The 4 basic parameters, that were also available with BOOTP are: