390
Configuring DHCP
Information About Configuring DHCP
The DHCP snooping binding database has the MAC address, the IP address, the lease time, the binding type, the VLAN
number, and the interface information that corresponds to the local untrusted interfaces of a switch. It does not have
information regarding hosts interconnected with a trusted interface.
In a service-provider network, a trusted interface is connected to a port on a device in the same network. An untrusted
interface is connected to an untrusted interface in the network or to an interface on a device that is not in the network.
When a switch receives a packet on an untrusted interface and the interface belongs to a VLAN in which DHCP snooping
is enabled, the switch compares the source MAC address and the DHCP client hardware address. If the addresses match
(the default), the switch forwards the packet. If the addresses do not match, the switch drops the packet.
The switch drops a DHCP packet when one of these situations occurs:
A packet from a DHCP server, such as a DHCPOFFER, DHCPACK, DHCPNAK, or DHCPLEASEQUERY packet, is
received from outside the network or firewall.
A packet is received on an untrusted interface, and the source MAC address and the DHCP client hardware address
do not match.
The switch receives a DHCPRELEASE or DHCPDECLINE broadcast message that has a MAC address in the DHCP
snooping binding database, but the interface information in the binding database does not match the interface on
which the message was received.
A DHCP relay agent forwards a DHCP packet that includes a relay-agent IP address that is not 0.0.0.0, or the relay
agent forwards a packet that includes option-82 information to an untrusted port.
If the switch is an aggregation switch supporting DHCP snooping and is connected to an edge switch that is inserting
DHCP option-82 information, the switch drops packets with option-82 information when packets are received on an
untrusted interface. If DHCP snooping is enabled and packets are received on a trusted port, the aggregation switch does
not learn the DHCP snooping bindings for connected devices and cannot build a complete DHCP snooping binding
database.
When an aggregation switch can be connected to an edge switch through an untrusted interface and you enter the
ip
dhcp snooping information option allow-untrusted
global configuration command, the aggregation switch accepts
packets with option-82 information from the edge switch. The aggregation switch learns the bindings for hosts
connected through an untrusted switch interface. The DHCP security features, such as dynamic ARP inspection or IP
source guard, can still be enabled on the aggregation switch while the switch receives packets with option-82
information on untrusted input interfaces to which hosts are connected. The port on the edge switch that connects to
the aggregation switch must be configured as a trusted interface.
Option-82 Data Insertion
In residential, metropolitan Ethernet-access environments, DHCP can centrally manage the IP address assignments for
a large number of subscribers. When the DHCP option-82 feature is enabled on the switch, a subscriber device is
identified by the switch port through which it connects to the network (in addition to its MAC address). Multiple hosts on
the subscriber LAN can be connected to the same port on the access switch and are uniquely identified.
Note:
The DHCP option-82 feature is supported only when DHCP snooping is globally enabled and on the VLANs to
which subscriber devices using this feature are assigned.
is an example of a metropolitan Ethernet network in which a centralized DHCP server assigns IP
addresses to subscribers connected to the switch at the access layer. Because the DHCP clients and their associated
DHCP server do not reside on the same IP network or subnet, a DHCP relay agent (the Catalyst switch) is configured with
a helper address to enable broadcast forwarding and to transfer DHCP messages between the clients and the server.
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...