Show Menu
Cheatography

C2.7 M7+8 DHCP Cheat Sheet (DRAFT) by [deleted]

This field is required.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

7.4.1/­7.4.2 - Implement DHCPv4

Configure the excluded IPv4 address

ip dhcp exclud­ed-­address 192.16­8.10.1 192.16­8.10.10
bzw.
192.16­8.30.1 192.16­8.30.10


Create a DHCP pool on R2 for the R1 LAN

ip dhpc pool R1-LAN

network 192.16­8.10.0 255.25­5.255.0

defaul­t-r­outer 192.16­8.10.1

dns-server 192.16­8.2­0.254


ip dhcp pool R3-LAN

network 192.16­8.10.0 255.25­5.255.0

defaul­t-r­outer 192.16­8.30.1

dns-server 192.16­8.2­0.254


Configure R1 and R3 as a DHCP relay agent

interface g0/0

ip helper­-ad­dress 10.1.1.2
bzw.
10.2.2.2


Set PC1 and PC2 to receive IP addressing inform­ation from DHCP

Set PCs to DHCP

Configure R2 as a DHCP Client

interface g0/1

ip address dhcp

no shut
 

8.5.1 - Configure DHCPv6

Configure interfaces and routing for both routers

ipv6 unicas­t-r­outing

interface {inter­face}

ipv6 address {ipv6-­add­ress}

ipv6 address {linkl­ocal} link-local

no shutdown


ipv6 route ::/0 2001:d­b8:­aca­d:2::2
(R1) bzw
::/0 2001:d­b8:­aca­d:2::1
(R2)

Configure R1 to provide stateless DHCPv6 for PC-A

ipv6 dhcp pool R1-STA­TELESS

dns-server 2001:d­b8:­aca­d::254

domain­-name STATEL­ESS.com


interface g0/0/1

ipv6 nd other-­con­fig­-flag

ipv6 dhcp server R1-STA­TELESS


Configure a stateful DHCPv6 server on R1

ipv6 dhcp pool R2-STA­TEFUL

address prefix 2001:d­b8:­aca­d:3­:aa­a::/80

dns-server 2001:d­b8:­aca­d::254

domain­-name STATEF­UL.com


interface g0/0/0

ipv6 dhcp server R2-STA­TEFUL