So here's router 1
show IP Interface Brief shows us the IP addresses configured on the router.
Here's the loopback interface, here's the IP address on gigabit 0/0/0.
So the first thing we need to do is configure an exclusion range.
So IP DHCP excluded-address 10.1.1.1 to 10.1.1.100.
The next thing we need to do is configure a pool called PC.
The network to use is 10.1.1.0 with a subnet mask of /24.
We then need to configure a default router or default gateway of 10.1.1.254, because
that's the IP address of router 1.
So the default route will be that DNS server will be the router and that looks good.
So Show Run there's our exclusion range and there's our DHCP pool show IP DHCP binding.
Our client has already been allocated an IP address, 10.1.1.101.
So let's confirm that by opening up a command prompt
IP config.
There's the IP address of the PC, there's the subnet mask, there's the default gateway, can the PC
ping router 1?
Yes, it can.
Can it ping the loop back of router 1?
Yes, it can.
And
to confirm that show IP interface brief, there's the loopback of router 1, and the PC can ping
the loopback router 1.
Can the router ping the PC?
Yes, it can.
So we've successfully configured DHCP
on router 1 and tested that the PC gets an IP address via DHCP and that the PC can ping the loopback
of router 1.
That was a very basic DHCP lab in the next labs.
It gets more complicated.