DHCP Sever configuration in IOS
ip dhcp excluded-address 192.168.1.1 192.168.1.10
-> Specify a range od addresses that won't be given to DHCP clients.
ip dhcp pool LAB_POOL
-> Create a DHCP pool.
network 192.168.1.0 ?
-> Specify the subnet of addresses to be assigned to clients (except the excluded addresses).
dns-server 8.8.8.8
-> Specify the DNS server that DHCP clients should use.
domain-name jeremysitlab.com
-> Specify the domain name of the network. (ie. PC1 = pc1.jeremysitlab.com).
default-router 192.168.1.1
-> Specify the default gateway.
lease 0 5 30
-> Specify the lease time.
lease <days> <hours> <minutes>
orlease infinite
Relay agent configuration
R1(config-if)# ip helper-addres 192.168.10.10
-> Configure the IP address of the DHCP server as the 'helper' address.
Client configuration in IOS
R2(config-if)# ip address dhcp
-> Use the ip address dhcp mode to tell the router to use DHCP to learn its IP address.
Last updated