Practical 10 DHCP Server
Practical 10 DHCP Server
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fast
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip addr 192.168.10.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#ip dhc
Router(config)#ip dhcp pool cisco
Router(dhcp-config)#net
Router(dhcp-config)#network 192.168.10.0 255.255.255.0
Router(dhcp-config)#default-rou
Router(dhcp-config)#default-router 192.168.10.1
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-ad
Router(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10
Router(config)#ip dhcp excluded-address 192.168.10.12 192.168.10.14
Router(config)#
In the first place we will configure the DHCP Server for its DHCP pools and its IP configuration.
The IP address is 192.168.1.10 and the default gateway will be the routers interface’s IP address
that is face to DHCP server.
For the subnets 192.168.1.0 and 10.10.0.0 there must be two DHCP pool. The below screenshot is
showing how these assignments will be done in DHCP Server.
In the router the following configuration will be done for two different subnet DHCP
achievement: