How to Configure DHCP on Servers, Routers, Access Points and Switches in Packet Tracer

Welcome to meet and go home with me on a blog that presents a lot of tutorials about computers and networks. This time I will discuss thoroughly about How to Configure DHCP for Server Devices, Routers, Access Points and Switches.

In this article I will discuss 4 DHCP configurations:DHCP configuration in Server,DHCP Configuration in Router,CONFIGURE DHCP in Access Point, andDHCP configuration in Switch.

With the condition of increasing the device on a LAN, then a network administrator must be able to choose the best solution, as a result of which network traffic is maintained using well.

In order for all devices to be connected & can communicate is expected many devices such as Server, Router, Access Point, Switch etc. Each device must be assigned an IP address in order to connect.

If there are still many devices that must be given an IP address, then the best solution is to configure DHCP in the device, so that the IP address is obtained automatically by the client. Definition of DHCP

DHCP (Dynamic Host Configuration Protocol) is a protocol that makes it easier to address IP addresses on a network of client servers, with IP addresses set up and assigned automatically from server to client. For further theoretical discussion, you can see in gw article on DHCP Definition and Understanding DHCP Server.

Here each topology creates a DHCP configuration according to several device scenarios. Topology of multiple devices to create DHCP configuration

See also article: DHCP configuration on server

Topology used as follows: DHCP topology on Server DevicesIP settings in Server

Click the Server device and then sign in to the Desktop Tab, selecting IP Address Configuration. Give IP address for example in the topology above, IP address : 192.168.1.1 netmask : 255.255.255.0 Settings ip address on dhcp server

The next stage is to configure DHCP on the Server. Click on the Services Tab and then select the DHCP dish. (See in the picture below). DHCP settings on server devices

Pool Name: (name by DHCP)

Default Gateway: IP gateway if any

DNS server: IP DNS if any

Start IP address: Start based on IP number for DHCP

Subnet Mask: ignore 0 if you don’t specify prefixes

Maximum number of Users: determines the number of IP addresses to be used. Checking on the Client PC

Perform ping or PDU commands. (see in the image below, if the result is the same, it means that you have configured DHCP on the server validly)

Click the CLIENT PC, then select Desktop Tab & select IP Configuration,then move Static to DHCP & wait. Get a DHCP IP by Server

Select Menu Command Prompt,prompt the ping command [ip address server]. ping 192.168.1.1 DHCP connection check results to the server

Check through the PDU by clicking the envelope symbol, clicking in Server and then clicking again on the PC. There will be success if it succeeds. (See picture below)Results of checking through PDU to DHCP ServerDHCP Configuration on Router

Topology used as follows: DHCP topology in Router DevicesIP settings in router

Click on Router and then select Tab CLI,follow the boldly printed command below.

Kli noRouterdangt; EnRouter #conf tRouter(config)#int fa0/0Router(config-if)#ip address 10.10.10.1 255.255.255.0Router(config-if)#no shRouter(config-if)#exRouter(config)#exRouter#DHCP Settings in Router

Router#conf tRouter(config)#ip dhcp pool for me to rememberRouter(dhcp-config)#network 10.10.10.0 255.255.255.0Router(dhcp-config)#default-router 10.10.10.1Router(dhcp-config)#dns-server 8.8.8.8Router(dhcp-config)#exRouter(config)#exRouter #

Note:dhcp pool gw give my name to rememberdefault-router I fill using IP routerdns-server I use GOOGLE IP, if later you have a server device please make a replacement. Checking in a Client PC

Click on the PC device, and then select The Desktop Tab,select IP ConfigurationClick in DHCP and wait. (See in the picture below) Get a DHCP IP from a Router

Select Menu Command Prompt,prompt the ping command [ip address server]. ping 10.10.10.1 DHCP connection check results to RouterDHCP Configuration in Access Point

The topology used is the following: DHCP topology in Access Point Devices

Click the WRT300N Access Point device select tab GUI (see in the image below) Wireless DHCP configuration

Note:Select Automatic Configuration – DHCPDetermine the IP address and netmask, here I use ip address 192.168.100.1 /30Click enable in DHCP ServerDetermine the start IP that will be the DHCP IPSpecify aporisma maximum number IP DHCPStatic DNS1 IP Input

Proceed to SSID configuration in Tab Config – Wireless (see in the image below) SSID configuration in access point

Note:Select wirelessGive the name in SSID here I give the name DHCPSelect channel 6Select authentication using WPA2 PSK & here I give logindhcp password

Click on pc, then turn off power to update module to WMP300N Install module WMP300N to PC

Turn the power button back on, then click the Wireless PC & connect using the SSID DHCP and Enter Username and Password, & Click the Connect button. (See in the picture below) Select SSID DHCPEnter Username & PASSWORD DHCP

To check select Desktop Tab and select Command Prompt. When the ipconfig /all command (to view ip address) DHCP IP check on PC

Please check using the PING command to ip access point 192.168.100.1 Dhcp Access Point connection check results

See also article: DHCP configuration on Switch

Topology used as follows: DHCP topology in Switch Devices

Click in Switch and then select Tab CLI, and then follow the bolded code. VLAN settings in Switch

Switchdangt; EnSwitch#conf tSwitch(config)#vlan 100Switch(config-vlan)#exitSwitch(config)#interface fastEthernet 0/1Switch(config-if)#sw mode accessSwitch(config-if)#sw access vlan 100Switch(config-if) #exitSwitch(config)#exSwitch#show vlan briefShow vlan briefIP Address Settings on Vlan 100 on Switch

Switch(config)#int vlan 100Switch(config-if)#ip address 16.16.16.1 255.255.255.0Switch(config-if)#exSwitch(config)#Konfigurasi DHCP on Switch

Continue to configure DHCP in switch

Switchdangt; EnSwitch#conf tSwitch(config)#ip dhcp pool vlan100Switch(dhcp-config)#network 16.16.16.0 255.255.255.0Switch(dhcp-config)#default-router 16.16.16.1Switch(dhcp-config)#dns-server 8.8.8.8Paca PC Client Check

Click PC then select Desktop Tab &IP Configuration (see in the image below) Get DHCP IP by Switch

Client PC receives DHCP IP address according to Switch 16.16.16.two

Perform the PING command to the IP address access point address. ping 16.16.16.1 DHCP Switch connection check results

Thus the information about DHCP in some types of devices, hopefully useful and if there are questions, please leave a message in the comments field below.

Leave a Reply

Your email address will not be published. Required fields are marked *