Tasks:
Configure DHCP on Switch1 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 = Router1 (10.1.1.1)
5) DNS Server = Router1 (10.1.1.1)
6) Test that PC can ping loopback of Router1 (1.1.1.1) that is already configured
Download Solved Lab
Solution:
First we will configure switch to exclude address range 10.1.1.1 to 10.1.1.100
Switch1#
Switch1#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch1(config)#ip dhcp excluded-address 10.1.1.1 10.1.1.100
Then we will configure DHCP pool and DHCP network, Default Gateway, and DNS Server
Switch1(config)#ip dhcp pool pcSwitch1(dhcp-config)#network 10.1.1.0 255.255.255.0
Switch1(dhcp-config)#default-router 10.1.1.1
Switch1(dhcp-config)#dns-server 10.1.1.1
Switch1(dhcp-config)#end
Switch1#
%SYS-5-CONFIG_I: Configured from console by console
Switch1#
Next we need to assign IP Address to the Switch1 VLAN 1 interface
Switch1(config)#
Switch1(config)#interface vlan 1
Switch1(config-if)#ip address 10.1.1.2 255.255.255.0
Switch1(config-if)#
Switch1(config-if)#exit
Switch1(config)#
Next we will test if the PC is assigned address from DHCP and is able to ping loop-back IP address 1.1.1.1 configured at Router.