Docsity

CISCO IOS Command Reference for CCNA: DHCP Server Configuration and Verification, Study notes of Networking

Toggle sidebar
bg1
CISCOIOSCommandReferenceforCCNAExplorationSemester2
12
DHCPCommands
DHCPServer
EnableDHCP,whichisenabledbydefault.
R1(config)#servicedhcp
DefineaDHCPpoolandgiveitaname:
R1(config)#ipdhcppoolMY_POOL
Definenetworkandmasktouseinthispool,thedefaultgateway,andDNSservers:
R1(dhcp-config)#network192.168.1.0255.255.255.0
R1(dhcp-config)#default-router192.168.1.1
R1(dhcp-config)#dns-server213.131.65.208.8.8.8
Confinetheleasetime(OPTIONAL):
R1(dhcp-config)#lease2!Days
Defineoneormorescopesofexcluded(reserved)addresses(OPTIONAL):
R1(config)#ipdhcpexcluded-address192.168.1.1192.168.1.100
R1(config)#ipdhcpexcluded-address192.168.1.200192.168.1.254
ConfigurerouterasaDHCPrelayagenttoforwardDHCPpacketstoaDHCPserver:
Router(config)#interfacefastethernet0/0
Router(config-if)#iphelper-address172.16.20.2
DHCPVerificationandTroubleshooting:
Showsthestatusofthespecifiedpoolandtheleasedaddressesfromthatpool:
R1#showipdhcppoolMY_POOL
ShowsalltheleasedipaddressesfromallconfiguredDHCPpools:
R1#showipdhcpbinding

Partial preview of the text

Download CISCO IOS Command Reference for CCNA: DHCP Server Configuration and Verification and more Study notes Networking in PDF only on Docsity!

CISCOIOSCommandReferenceforCCNAExplorationSemester 2 

12  

DHCPCommands

DHCPServer

 EnableDHCP,whichisenabledbydefault.  R1(config)#servicedhcp  DefineaDHCPpoolandgiveitaname:  R1(config)#ipdhcppoolMY_POOL  Definenetworkandmasktouseinthispool,thedefaultgateway,andDNSservers:  R1(dhcp-config)#network192.168.1.0255.255.255. R1(dhcp-config)#default-router192.168.1.1  R1(dhcp-config)#dns-server213.131.65.208.8.8.8  Confinetheleasetime(OPTIONAL):  R1(dhcp-config)#lease 2 !Days  Defineoneormorescopesofexcluded(reserved)addresses(OPTIONAL):  R1(config)#ipdhcpexcluded-address192.168.1.1192.168.1.100 R1(config)#ipdhcpexcluded-address192.168.1.200192.168.1.  ConfigurerouterasaDHCPrelayagenttoforwardDHCPpacketstoaDHCPserver: Router(config)#interfacefastethernet0/0 Router(config-if)#iphelper-address172.16.20.2

DHCPVerificationandTroubleshooting:

 Showsthestatusofthespecifiedpoolandtheleasedaddressesfromthatpool:  R1#showipdhcppoolMY_POOL  ShowsalltheleasedipaddressesfromallconfiguredDHCPpools:  R1#showipdhcpbinding