Skip to main content

Posts

Showing posts with the label Configuring DHCP Server

Configuring DHCP Server

What is DHCP? The DHCP (Dynamic Host Configuration Protocol) is an Internet protocol responsible for automating the configuration of computers which use TCP/IP. DHCP can be used to assign IP addresses to computers by delivering TCP/IP configuration addresses such as IP address, subnet masks, default routers and DNS addresses. It can also be used to provide information for a number of other services such as printers, time, news and TFTP servers. Config A Cisco router can be configured as a DHCP server to assign IP addresses. The range of IP addresses which can be given out is called a 'pool'. From this pool clients are leased addresses for a given time, after which the lease expires and the client needs to request a new IP address lease. The following config lines show how to setup a DHCP pool of addresses in the 192.168.0.0 IP range: no ip dhcp conflict logging ip dhcp excluded-address 192.168.0.1 192.168.0.50 ! ip dhcp pool 1 network 192.168.0.0 255.255.255.0 default-route