So, again, in this topology, we need to configure DHCP on router 1. Here's router 1
IP addresses configured on router 1 are 10.1.1.254 on gigabit0/0/0 and we
have this loopback address configured. In global configuration mode
we need to configure a DHCP excluded range so IP DHCP excluded address range 10.1.10.1 to 10.1.10.
10.
That completes the exclusion of the first 10 IP addresses for VLAN 10.
I need to do something similar for VLAN 20.
And now we can create DHCP pools.
The first pool is gonna be called VLAN 10.
The network is gonna be 10.1.10.0 with a /24 mask, the default router is gonna
be the switch.
Now, we need to know what the IP address is of the switch. On the switch show, IP interface, brief
scrolling down
we can see that on VLAN 10
this is the IP address of the switch and this is the IP address on VLAN 20.
So we need to configure the switch as the default gateway.
So that would be 10.1.10.1
again, per this IP address configured on VLAN 10 on the switch.
We're told that the DNS server needs to be the router.
So DNS server 10.1.10.254 again do show IP interface brief shows us that this is the IP address of
the router.
So I've done that wrong.
That needs to be 10.1.
1.254.
So let's look at our configuration.
There's the first DHCP pool network, looks correct
default gateway is the switch DNS server is the router. In your exam use show run
if the command is supported in your simulations to check your work, make sure you haven't made a mistake
like I did.
The next DHCP pool that we need to configure is VLAN 20, the network here will be 10.1.20.0
default router will be 10.1.20.1.
Again, we can see that on the switch by using the show IP interface, brief command, or show run.
Scroll down and we can see the IP address on VLAN 20.
DNS server 10.1.1.254 which is the router once again show run allows us to check
our configuration.
That looks good.
Let's make sure that we can ping the switch, which has IP address 10.1.1.1 on VLAN 1 ping
succeeds again on the switch.
There's the IP address on VLAN
1 will show IP Interface Brief would allow us to see the IP address on VLAN 1.
If you're not sure about that
have a look at your lab topology.
You could either use show CDP neighbors to confirm whether things are working right.
In this example, CDP wasn't enabled.
In the exam, you may not be able to do that.
So have a look at your topology.
Have a look at the running configuration.
We can see here that that interface hasn't got VLANs configured, so it belongs to VLAN 1
or we could use this command show interface gigabit101 switch port to see which VLAN this
interface belongs to.
You can see it belongs to VLAN 1 show
CDP neighbor, hopefully at some point will show us a neighbor relationship.
We can see on the router as an example
that the switch is connected via gigabit101 to the router on gigabit0/0/0.
So we've confirmed the cabling and we can ping the switch. Now
we've configured DHCP on the router, but the router is separated by a layer 3 switch.
We need to do some configuration on the switch to allow DHCP request messages to be forwarded to the
router.
So now we need to do some configuration on the switch to enable that.
So don't forget that in some of these labs you have to do configuration on multiple devices.