Tasks:
Configure DHCP on Router1 as follows:
1) Excluded address range 10.1.1.1 to 10.1.1.100
2) Pool name = pc
3) Network 10.1.1.0/24
4) Default Gateway = Router 1
5) DNS Server = Router 1
6) Test that PC can ping loopback of Router 1
Download Solved Lab
Solution:
We need to power on the Router as a prerequisite.
Then we need to perform following commands to implement the tasks
We will first look at the IP Addresses which are configured at the Router interfaces
R1>
R1>en
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0/0 10.1.1.254 YES NVRAM up up
GigabitEthernet0/0/1 unassigned YES NVRAM administratively down down
Loopback0 1.1.1.1 YES NVRAM up up
Vlan1 unassigned YES NVRAM administratively down down
R1#
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip dhcp excluded-address 10.1.1.1 10.1.1.100
R1(config)#ip dhcp pool pc
R1(dhcp-config)#network 10.1.1.0 255.255.255.0
R1(dhcp-config)#default-router 10.1.1.254
R1(dhcp-config)#dns-server 10.1.1.254
R1(dhcp-config)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
Next we need to verify if the DHCP pool is working
R1#show ip dhcp binding
IP address Client-ID/ Lease expiration Type
Hardware address
10.1.1.101 0060.2F7A.9C7A -- Automatic
We see that IP Address 10.1.1.101 is assigned to the PC having MAC Address of 0060.2F7A.9C7A
Next we will test the loopback address to see if the PC can ping 1.1.1.1 which is configured at Loopback interface of the Router