In an organization, IT infrastructure may have several devices which require IP addresses to function in the network. For example a laptop can not access network resources like internet without having an IP, gateway and DNS addresses.
There are two ways by which we can Cisco switch configure DHCP these parameters in a machine like laptop or any network devices.
1. Manually Assigned
2. Dynamically Assigned
In case you have very limited network devices in you IT infrastructure, you can assign IP and other addresses manually but if you have a large enterprise having hundreds or thousands of network devices then it is very much convenience to assign IPs dynamically.
The process of assigning the IP parameters on network devices are called Dynamic Host Configuration Protocol (DHCP). It is a network management protocol, allowing devices to receive IP related information from DHCP servers, the information is as follows
- IP Addresses
- Subnet Masks
- Default Gateways
- DNS Server Addresses
The network professionals obtain training and certifications for building concepts of configuring DHCP on Cisco Switch or Router. There are some small organization where they do not effort to keep a dedicated DHCP server for assigning IP addresses dynamically, they use cisco switch to configure dhcp which is easy to setup.
Understanding DHCP is a fundamental aspect of Cisco training and certification programs. Cisco certifications, such as the Cisco Certified Network Associate (CCNA), cover DHCP extensively as part of their curriculum. CCNA training online and Certification ensures that network professionals have the knowledge and skills to implement and manage DHCP in real-world scenarios. You feel free to contact our learning advisors for further information on training and skill development.
In this task, SW1 will be configured as a DHCP Server, and all four routers will be DHCP Clients. Configure DHCP Server functionality on SW11 using the following criteria:
Pool Name | Network Address | Subnet Mask | Default Router | Lease Time |
vlan2 | 10.10.10.8 | /29 | 10.10.10.9 | 1-day |
vlan3 | 10.10.10.32 | /29 | 10.10.10.33 | 1-day |
vlan4 | 30.30.30.0 | /26 | 30.30.30.1 | 1-day |
vlan5 | 20.20.20.96 | /27 | 20.20.20.97 | 1-day |
In this blog, we are going to discuss and configure Cisco switch as DHCP server. Before directly jump on to the configuration, let's first understand how it works.
The DHCP process has the following steps while assigning IP parameters to a network device.
When a device wants to join a network, it first starts sending a broadcast message called a DHCP discover in order to locate available DHCP servers.
When any available DHCP server receives this discovery broadcast message, it responds to the client with a DHCP offer. In this offer, it includes a free available IP address and other configuration parameters to the client.
When a DHCP client receives the DHCP offer (client may receive multiple offers), it responds in a broadcast message ias DHCP request, containing the IP address of a specific server from which this client wants to accept the offer.
Once the chosen server receives the DHCP request from the client, it sends a DCHP acknowledgement back to the client. This confirms that the IP address and other details can now be used by the client for further communication in the network.
In this setup, there are three Cisco switches and four routers. Configure all FastEthernet interfaces on the routers (connected to the switches shown in the topology diagram) to obtain their IP address dynamically via Cisco switch as DHCP server. Verify that your routers have obtained an appropriate DHCP IP address.
Verify that any one of your routers can ping the IP address of any other router.
Step #2: Configure the L2 VLAN for all VLANs on SW1.
SW1:
Step #3: Verify that al ports connected to switch are 802.1Q trunk port. Configure the L3 VLAN for all VLANs on SW1.
Step #4: Verify the L3 VLAN for all VLANs on SW1.
Step #4: Configure the Switch port on all switch who are connected to all four routers .
SW1:
SW2:
Step #5: Configure the SW1 to make it as DHCP server .
SW1:
Step #6: Configure the Routers so that it will take the ip address from DHCP server.
R1:
R2:
R3:
R4:
Step #8: Verification that All routers are able to get the Ip address