Cisco tutorial

A Cisco tutorial For beginner

Wednesday, December 3, 2014

how to configure dhcp in LAN(Local area network)

hello guys
today i will tell you how to use dhcp (Dynamic host control protocol)  .it is use for providing ip address to pc or laptop dynamically ..

So you have need to following this step

  1. first you have need to take 1 router ,1 switch and 4 system
  2. connect router ,switch ,or system with wires
  3. then you have need to type following command 
  4. you have need to go configuration mode
  5. after that you have need to providing ip address to your fast Ethernet port which is connected to router ...
  6. after that no shut command for starting a port
  7. and now you have need exit interface mode and go to configuration mode and you have need to type following code

Router(config)#ip dhcp pool
Router(dhcp-config)#network 192.168.10.0 255.255.255.0
Router(dhcp-config)#network 192.168.10.0
Router(dhcp-config)#network 192.168.10.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.10.1
Router(dhcp-config)#dns-server 9.9.9.9
Router(dhcp-config)#exit
Router(config-if)#ip add 192.168.10.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#%DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged 192.168.10.1.

Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#


i attached a file you can see the configuration



Thanks




No comments:

Post a Comment