Configuring DHCP Snooping
627
n
There are two types of DHCP requests from DHCP clients, namely,
DHCP_DISCOVER and DHCP_REQUEST messages. Since some DHCP servers
process Option 82 in DHCP_DISCOVER messages while others process Option 82
in DHCP_DISCOVER messages, the DHCP snooping device will add Option 82 in
both types of DHCP requests.
Introduction to IP
Filtering
A denial-of-service (DoS) attack means an attempt of an attacker sending a large
number of forged address requests with different source IP addresses to the server
so that the network cannot work normally. The specific effects are as follows:
■
The resources on the server are exhausted, so the server does not respond to
other requests.
■
After receiving such type of packets, a switch needs to send them to the CPU
for processing. Too many request packets cause high CPU usage rate. As a
result, the CPU cannot work normally.
The switch can filter invalid IP packets through the DHCP-snooping table and IP
static binding table.
DHCP-snooping table
After DHCP snooping is enabled on a switch, a DHCP-snooping table is generated.
It is used to record IP addresses obtained from the DHCP server, MAC addresses,
the number of the port through which a client is connected to the
DHCP-snooping-enabled device, and the number of the VLAN to which the port
belongs to. These records are saved as entries in the DHCP-snooping table.
IP static binding table
The DHCP-snooping table only records information about clients that obtains IP
address dynamically through DHCP. If a fixed IP address is configured for a client,
the IP address and MAC address of the client cannot be recorded in the
DHCP-snooping table. Consequently, this client cannot pass the IP filtering of the
DHCP-snooping table, thus it cannot access external networks.
To solve this problem, the switch supports the configuration of static binding table
entries, that is, the binding relationship between IP address, MAC address, and the
port connecting to the client, so that packets of the client can be correctly
forwarded.
IP filtering
The switch can filter IP packets in the following two modes:
■
Filtering the source IP address in a packet. If the source IP address and the
number of the port that receives the packet are consistent with entries in the
DHCP-snooping table or static binding table, the switch regards the packet as a
valid packet and forwards it; otherwise, the switch drops it directly.
■
Filtering the source IP address and the source MAC address in a packet. If the
source IP address and source MAC address in the packet, and the number of
the port that receives the packet are consistent with entries in the
DHCP-snooping table or static binding table, the switch regards the packet as a
valid packet and forwards it; otherwise, the switch drops it directly.
Summary of Contents for Switch 7754
Page 32: ...32 CHAPTER 1 CLI OVERVIEW ...
Page 70: ...70 CHAPTER 5 LOGGING IN USING MODEM ...
Page 76: ...76 CHAPTER 7 LOGGING IN THROUGH NMS ...
Page 86: ...86 CHAPTER 9 CONFIGURATION FILE MANAGEMENT ...
Page 120: ...120 CHAPTER 13 ISOLATE USER VLAN CONFIGURATION ...
Page 126: ...126 CHAPTER 14 SUPER VLAN ...
Page 136: ...136 CHAPTER 16 IP PERFORMANCE CONFIGURATION ...
Page 152: ...152 CHAPTER 17 IPX CONFIGURATION ...
Page 164: ...164 CHAPTER 19 QINQ CONFIGURATION ...
Page 172: ...172 CHAPTER 21 SHARED VLAN CONFIGURATION ...
Page 182: ...182 CHAPTER 22 PORT BASIC CONFIGURATION ...
Page 198: ...198 CHAPTER 24 PORT ISOLATION CONFIGURATION ...
Page 208: ...208 CHAPTER 25 PORT SECURITY CONFIGURATION ...
Page 224: ...224 CHAPTER 27 DLDP CONFIGURATION ...
Page 232: ...232 CHAPTER 28 MAC ADDRESS TABLE MANAGEMENT ...
Page 240: ...240 CHAPTER 29 CENTRALIZED MAC ADDRESS AUTHENTICATION CONFIGURATION ...
Page 280: ...280 CHAPTER 30 MSTP CONFIGURATION ...
Page 348: ...348 CHAPTER 35 IS IS CONFIGURATION ...
Page 408: ...408 CHAPTER 39 802 1X CONFIGURATION ...
Page 412: ...412 CHAPTER 40 HABP CONFIGURATION ...
Page 422: ...422 CHAPTER 41 MULTICAST OVERVIEW ...
Page 426: ...426 CHAPTER 42 GMRP CONFIGURATION ...
Page 480: ...480 CHAPTER 47 PIM CONFIGURATION ...
Page 506: ...506 CHAPTER 48 MSDP CONFIGURATION ...
Page 552: ...552 CHAPTER 51 TRAFFIC ACCOUNTING CONFIGURATION ...
Page 570: ...570 CHAPTER 53 HA CONFIGURATION ...
Page 582: ...582 CHAPTER 54 ARP CONFIGURATION SwitchA arp protective down recover interval 200 ...
Page 622: ...622 CHAPTER 58 DHCP RELAY AGENT CONFIGURATION ...
Page 684: ...684 CHAPTER 61 QOS CONFIGURATION ...
Page 718: ...718 CHAPTER 63 CLUSTER ...
Page 738: ...738 CHAPTER 67 UDP HELPER CONFIGURATION ...
Page 752: ...752 CHAPTER 69 RMON CONFIGURATION ...
Page 772: ...772 CHAPTER 70 NTP CONFIGURATION ...
Page 796: ...796 CHAPTER 72 FILE SYSTEM MANAGEMENT ...
Page 802: ...802 CHAPTER 73 BIMS CONFIGURATION ...
Page 814: ...814 CHAPTER 74 FTP AND TFTP CONFIGURATION ...
Page 830: ...830 CHAPTER 75 INFORMATION CENTER ...
Page 836: ...836 CHAPTER 76 DNS CONFIGURATION ...
Page 852: ...852 CHAPTER 77 BOOTROM AND HOST SOFTWARE LOADING ...
Page 858: ...858 CHAPTER 78 BASIC SYSTEM CONFIGURATION DEBUGGING ...