In the previous video, we have done configuring inter vlan routing. 2
And now all vlan can communicate each others. 3
But for now we need to configure the ip address of all pc one by one manually. 4
In this video we are going to learn about dhcp server. 5
If we configure a dhcp server, we don’t need to configure the ip address of pc manually anymore. 6
Okay let’s just start, we will configure dhcp server in the router. 7
Enable, and then go to global configuration mode. 8
To configure dhcp server, the command is ip dhcp pool and then the name of the pool. 9
We can use anything for the pool name. But usually we will use the vlan number or the vlan name 10
for the pool name, for example we can use vlan 10 or accounting. 11
But actually we can use anything for the pool name. For now, let’s say I will use vlan10. 12
Next we need to define a network, because this pool is for vlan 10, 13
so the network is 192.168.10.0 and the subnetmask is 255.255.255.0. 14
Next we will need to configure default-router, 15
the default router will become the gateway for the pc in the vlan 10. So here default-router 16
and then the gateway for vlan 10, which is the ip address of router it self, so 192.168.10.1. 17
Next we also can configure dns. So dns-server and the the dns server, usually we will use google 18
dns server, which is 8.8.8.8. Okay now we have done configuring the dhcp server for vlan 10. 19
To test it, we can configure the dhcp client in all of pc vlan 10. 20
Let’s start from room 1. Here we can choose dhcp, and here we can see that dhcp request successful. 21
Here we can see that the ip address is 192.168.10.2, 22
this ip address is automatically assigned to the pc by dhcp server. 23
Let’s configure dhcp client in the other pc. 24
Here we can see that this is also success. Next this is also vlan 10, here also success, 25
Next let’s try here. This is also success, the ip address is 192.168.10.5. 26
Last, let’s configure for vlan 10 in room 3, okay here success, the ip address is 10.6, 27
and last here this is also success. The ip address is 10.7. 28
Okay so now the dhcp server configuration for vlan 10 is done. 29
Next let’s configure dhcp server for vlan 1. Ip dhcp pool vlan1, the network is 192.168.1.0 30
and the subnetmask is 255.255.255.0. The default router is the ip address of router for vlan 1, 31
which is 192.168.1.1. and the dns server is 8.8.8.8. 32
Next for vlan 20. Ip dhcp pool vlan 20. The network is 192.168.20.0 255.255.255.0, 33
default router 192.168.20.1, and then dns-server 8.8.8.8. 34
Last for vlan 30, ip dhcp pool vlan 30. Network 192.168.30.0 255.255.255.0 35
default router 192.168.30.1, and dns-server 8.8.8.8 36
Okay now we have done configuring dhcp server for all vlan. 37
Now let’s configure dhcp client on all pc. 38
I will speed up the video until the configuration off all pc is done. 39
Okay so now all pc can get an ip address automatically from dhcp server. 40
I think enough for this video and see you on the next video!