DHCP & DNS Flashcards
What does DHCP stand for?
Dynamic Host Configuration Protocol
What does DHCP do?
It automatically allocates and IP address to a device that requests one from a given pool of IP addresses
How many steps does DHCP handshake have?
Name them.
4 Steps.
Discover, Offer, Recquest, Acknowledge.
Also known as DORA handshake
What is the source address when a device requests an IP address?
0.0.0.0
What is the destination address when a device requests and IP address?
255.255.255.255
What extra configuration is required if a DHCP server is not located on the local subnet?
Connecting router(s) need to be configured with ‘ip helper’ address that will forward DHCP Requests outside of the local subnet
What layer 4 protocol does DHCP use and what ports does that protocol use?
UDP (User Datagram Protocol). Ports 67 and 68
How to exclude a range of addresses from a DHCP pool?
use ‘ip dhcp excluded-address [first address in range] [last address in range]’ command
What are the steps to configure a DHCP server on a Cisco router?
Provide commands as well.
- Create range of excluded addresses - ‘ip dhcp excluded-address [first] [last]
- Create a new DHCP pool - ‘ip dhcp pool [name]’
- Provide the pool with range of ip addresses to offer - (while in dhcp-config) ‘network [subnet address] [subnet mask]
- Define default router - (in dhcp-config) ‘default-router [ip address]’
- Define DNS server - (in dhcp-config) ‘dns-server [ip address]’
What command is used to get information of the DHCP pool(s) configured on a L3 device
show ip dhcp pool
What is a DHCP binding?
It’s an entry in DHCP database that shows mapings between MAC addresses of devices asking for IP addresses and IP addresses given to them
Is ‘ip helper-address’ a global command?
No. It’s an interface command
Why is it important to make the dhcp server aware of vlans on the network?
How can this be done?
DHCP server needs to know where to send the DHCP messages when asked for IP address allocations.
Via static routes or dynamic routing protocols like RIP, EIGRP or OSPF.
What does DNS stand for and what does it do?
DNS stands for Domain Name System.
It translates IP addresses used my machines to human readable names like ‘google.com’
Can a device have more than one DNS server addresses configured?
Yes