cisco ccna- dhcp server

21
CISCO CCNA DHCP SERVER To watch our Cisco CCNA Video Trainings Please Check out the link below: www.asmed.com/c1 ASM Educational Center Inc. (ASM) Where Training, Technology & Service Converge Phone: (301) 984-7400

Upload: hamed-moghaddam

Post on 07-Jan-2017

304 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Cisco CCNA-  DHCP Server

CISCO CCNADHCP SERVERTo watch our Cisco CCNA Video Trainings Please Check out the link below:www.asmed.com/c1

ASM Educational Center Inc. (ASM)Where Training, Technology & Service ConvergePhone: (301) 984-7400

Page 2: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

In this lab we are trying to make our Cisco Router Act as a DHCP server, that is R1 will give IP address 10.10.10.0/24 to left side Pc and it will give the IP address 20.20.20.0/24 to right side of PC. The Goal is Prepare you for your Cisco CCNA Certification Exam.

Page 3: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

DHCP goes thru these steps : DORA Step 1)   D= Discover packet Step 2)   O= offer packet Step 3)   R=Request packet Step 4)   A=Acknowledge packeHint : when you configure the DHCP; your LAN must match with the IP address of yourint f0/0  and Int f0/1.

Page 4: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

R1#show ip int brief                                                                                                                 

Hint : Always start with ip DHCP?

Interface  IP-Address OK?   Method Status

Protocol

FastEthernet0/0  

10.10.10.100  

YES manual up up

FastEthernet0/1 

20.20.20.100

YES manual up up

Vlan1 unassigned YES Unset Administratively

down down

Page 5: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

Now I will go create a scopeStep 1) Define your pool of address

R1#R1#config tR1(config)#ip dhcp ?excluded-address  Prevent DHCP from assigning certain addressespool              Configure DHCP address poolsR1(config)#ip dhcp POOL ?WORD  Pool name

Page 6: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

R1(config)#ip dhcp POOL lan100R1(dhcp-config)#?default-router  Default routersdns-server      Set name serverexit            Exit from DHCP pool configuration modenetwork         Network number and maskno              Negate a command or set its defaultsoption          Raw DHCP options

Page 7: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

R1(dhcp-config)#NETWork ?A.B.C.D  Network number in dotted-decimal notationR1(dhcp-config)#NETWork 10.10.10.0 ?A.B.C.D  Network maskR1(dhcp-config)#NETWork 10.10.10.0 255.255.255.0R1(dhcp-config)#default-router ?A.B.C.D  Router’s IP addressR1(dhcp-config)#default-router 10.10.10.100

Page 8: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

Here is my show runip dhcp pool lan100network 10.10.10.0 255.255.255.0default-router 10.10.10.100

Page 9: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

Step 2) Lets exclude some addressR1#config tEnter configuration commands, one per line.  End with CNTL/Z.R1(config)#ip dhcp ?excluded-address  Prevent DHCP from assigning certain addressespool              Configure DHCP address poolsR1(config)#ip dhcp excR1(config)#ip dhcp excluded-address ?

Page 10: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

A.B.C.D  Low IP addressR1(config)#ip dhcp excluded-address 10.10.10.1 ?A.B.C.D  High IP address<cr>R1(config)#ip dhcp excluded-address 10.10.10.1 10.10.10.20 ?<cr>R1(config)#ip dhcp excluded-address 10.10.10.1 10.10.10.20

Page 11: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

Lets see your show runip dhcp excluded-address 10.10.10.1 10.10.10.20!ip dhcp pool lan100network 10.10.10.0 255.255.255.0default-router 10.10.10.100!

Page 12: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

Now I will create a another scope for LAN 20.20.20.0/2R1#config tEnter configuration commands, one per line.  End with CNTL/Z.R1(config)#ip dhcp ?excluded-address  Prevent DHCP from assigning certain addressespool              Configure DHCP address poolsR1(config)#ip dhcp poolR1(config)#ip dhcp pool ?WORD  Pool nameR1(config)#ip dhcp pool lan200

Page 13: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

R1(dhcp-config)#?default-router  Default routersdns-server      Set name serverexit            Exit from DHCP pool configuration modenetwork         Network number and maskno              Negate a command or set its defaultsoption          Raw DHCP options

Page 14: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

R1(dhcp-config)#netwR1(dhcp-config)#network 20.20.20.0 ?A.B.C.D  Network maskR1(dhcp-config)#network 20.20.20.0 255.255.255.0R1(dhcp-config)#deR1(dhcp-config)#default-router 20.20.20.100R1(dhcp-config)#

Page 15: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

Here is my show runip dhcp excluded-address 10.10.10.1 10.10.10.20!ip dhcp pool lan100network 10.10.10.0 255.255.255.0default-router 10.10.10.100ip dhcp pool lan200network 20.20.20.0 255.255.255.0default-router 20.20.20.100

Page 16: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

Now I will give out 2nd exclusionR1#config tEnter configuration commands, one per line.  End with CNTL/Z.R1(config)#ip dhcp ?excluded-address  Prevent DHCP from assigning certain addressespool              Configure DHCP address pools

Page 17: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

R1(config)#ip dhcp excluded-address ?A.B.C.D  Low IP addressR1(config)#ip dhcp excluded-address 20.20.20.1 20.20.20.20 ?<cr>R1(config)#ip dhcp excluded-address 20.20.20.1 20.20.20.20

Page 18: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

Here is my show runip dhcp excluded-address 10.10.10.1 10.10.10.20ip dhcp excluded-address 20.20.20.1 20.20.20.20!ip dhcp pool lan100network 10.10.10.0 255.255.255.0default-router 10.10.10.100

Page 19: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

ip dhcp pool lan200network 20.20.20.0 255.255.255.0default-router 20.20.20.100!interface FastEthernet0/0ip address 10.10.10.100 255.255.255.0duplex auto speed auto !

Page 20: Cisco CCNA-  DHCP Server

Cisco CCNA-DHCP Server

interface FastEthernet0/1ip address 20.20.20.100 255.255.255.0duplex autospeed auto

***Now If  I go to my pc I will say obtain IP address; and you will see IP address is given to each PC on left side and right side and we should be able to ping from left to right.

Page 21: Cisco CCNA-  DHCP Server

ASM Educational Center Inc. (ASM)

Where Training, Technology & Service Converge

To watch our Cisco CCNA Video Trainings Please Check out the link below:www.asmed.com/c1Phone: (301) 984-7400