Volume 2 - Chapter 12: DHCP Snooping and ARP Inspection Flashcards
In regards to DHCP snooping, which of the following types of devices are most likely to have their connected ports configured as “trusted”?
* Hosts
* Routers
* Switches
* DHCP Servers
* Access Points
Hosts, routers, and DHCP servers
Describe the function of the untrusted port type in regards to DHCP snooping.
The untrusted port will discard DHCP messages that would normally only be sent by servers (Offer & Ack.)
The untrusted port will forward DHCP client messages (Discover & Request), but may filter them if they are part of an attack.
Describe how DHCP is used in a man-in-the-middle attack.
The attacker will configure a DHCP server on their machine and offer the default gateway option as its own IP address. The attacker can then snoop the traffic before passing it along the network.
Describe how untrusted ports filter DHCP traffic for client messages
- For DISCOVER and REQUEST messages: compare the source MAC of the frame with the hardware address (chaddr) field in the DHCP message
- For RELEASE & DECLINE messages: compare the source port of the incoming RELEASE/DECLINE with the DHCP Snooping binding table
A switch is configured with DHCP snooping and a connected host makes a successful DHCP request to a trusted server.
What happens after the host receives the new IP address?
The switch will add a new binding in the DHCP snooping binding table.
What information is stored for each entry in the DHCP snooping binding table?
Each entry will contain the following:
* The source port of the host with the IP address
* The source VLAN of the host
* The IP address that was assigned to the host
* The MAC address of the host
What commands are required at a minimum to enable the use of DHCP snooping?
DHCP snooping must be enabled globally and for the specific VLANs for it to function:
* ip dhcp snooping
* ip dhcp snooping vlan XX
What command can be used to list the enabled/disabled state of DHCP snooping and the VLANs that it is currently enabled on?
show ip dhcp snooping
What additional option is added to DHCP requests when a request is forwarded to an external DHCP server by a relay agent?
Option 82
A switch enabled with DHCP snooping, but does not act as a DHCP relay.
What command is required on the switch to prevent it from blocking valid DHCP client requests?
no ip dhcp snooping information option
What command can be enabled to restrict the amount of DHCP messages being processed by DHCP snooping on the switch?
DHCP Snooping Rate Limits:
ip dhcp snooping limit rate messagespersecond
Describe what happens when the DHCP snooping limit rate is exceeded?
The switch will put the interface configured with the limit rate into an err-disable state.
What command(s) are required to enable the automatic recovery of a port put into err-disable due to exceeding the DHCP snooping rate limit?
errdisable recovery cause dhcp-rate-limit
errdisable recovery interval seconds
What 4 main fields are included in a typical ARP request?
Sender Hardware Address
Sender Protocol (IP) Address
Target Hardware Address
Target Protocol (IP) Address
An ARP reply that is sent to a host without first having received an ARP request is refered to as?
A gratuitous ARP