15 - Security Services III - DHCP and ARP Inspection Flashcards
What 2 key things do clients use DHCP protocol to do?
- Discover a DHCP server
- Request to lease an address
What are the 4 message types exchanged between a DHCP client and server?
- Discover
- Offer
- Request
- Acknowledgement
What is a DHCP acknowledgement message?
Sent by the DHCP server to assign the address and also list the following:
- Mask
- Default router
- DNS server IPs
What 2 special IP addresses does DHCP make use of for hosts that don’t yet have an IP?
- 0.0.0 as a source IP
255. 255.255.255 local broadcast
Where are DHCP Offer messages addressed to?
255.255.255.255
What is included in a DHCP Discover messages to uniquely identify a client?
The client ID which is it’s MAC
How do DHCP Offer messages identify who they are intended for, given all hosts receive them?
The client ID (MAC)
How can you allow messages from a centralized DHCP server to traverse beyond the local subnet and back?
Make the device a DHCP Relay
ip helper-address {server ip}
What effects does the ip helper-address
command have on messages coming in from DHCP clients?
- Look for incoming DHCP messages with destination 255.255.255.255
- Change said packets source IP to the routers incoming interface IP
- Change said packets destination IP to the address of the DHCP server (as configured with ip helper-address command)
- Route the packet to the DHCP server
What is the name of the feature enabled by the ip helper-address
command?
DHCP Relay
What settings must a DHCP server be configured with?
- Subnet ID and Mask
- Reserved (excluded) addresses
- Default router(s)
- DNS IPs
What are the 3 DHCP Allocation modes?
- Dynamic
- Automatic
- Static
What does Automatic DHCP allocation mode do?
Sets the DHCP lease time to infinite
What does Static DHCP allocation mode do?
Pre-configures an IP for a client based on a specific MAC address
What 2 criteria identify interfaces that need to have DHCP Relay enabled?
- DHCP Clients exist in the subnet
- DHCP Servers do NOT exist in the subnet
How would you configure a switch to use DHCP to lease an address?
interface vlan 1
ip address dhcp
no shutdown
show interfaces vlan 1
How can you view details about DHCP configuration for interfaces on that device?
show dhcp lease
How can Routers distribute default routes learned on its internet facing interface from the ISP into the network?
Using an interior routing protocol such as OSPF
How do you configure an IP to be obtained from DHCP on an interface?
ip address dhcp
What does IOS display default routes learned from DHCP as?
A static route with an administrative distance of 254
What does IOS use to identify routes that are DHCP learned default routes?
An administrative distance of 254
What settings does a host need to work correctly for IPv4?
- Self IP and Subnet mask
- DNS IPs
- Default gateway (router) IP
How would you view the IP routing table on a Windows or MAC host?
netstat -rn
How would you view the default gateway and DNS servers on a Mac given the ifconfig command doesn’t?
networksetup-getinfo
networksetup-getdnsservers
How does DHCP Snooping work?
Switch analyzes incoming messages on specified subset of ports in VLAN depending on if it is a trusted or untrusted port.
If messages appear on