5-8
DHCP Snooping Configuration Examples
DHCP Snooping Configuration Example
Network requirements
As shown in
Figure 5-3
, Switch B is connected to a DHCP server through GigabitEthernet2/0/1, and to
two DHCP clients through GigabitEthernet2/0/2 and GigabitEthernet2/0/3. GigabitEthernet2/0/1
forwards DHCP server responses while the other two do not.
Switch B records clients’ IP-to-MAC address bindings in DHCP-REQUEST messages and DHCP-ACK
messages received from trusted ports.
Figure 5-3
Network diagram for DHCP snooping configuration
Configuration procedure
# Enable DHCP snooping.
<SwitchB> system-view
[SwitchB] dhcp-snooping
# Specify GigabitEthernet2/0/1 as trusted.
[SwitchB] interface GigabitEthernet2/0/1
[SwitchB-GigabitEthernet2/0/1] dhcp-snooping trust
[SwitchB-GigabitEthernet2/0/1] quit
DHCP Snooping Option 82 Support Configuration Example
Network requirements
z
As shown in
Figure 5-3
, enable DHCP snooping and Option 82 support on Switch B.
z
Configure the handling strategy for DHCP requests containing Option 82 as
replace
.
z
On GigabitEthernet2/0/2, configure the padding content for the circuit ID sub-option as
company001
and for the remote ID sub-option as
device001
.
z
On GigabitEthernet2/0/3, configure the padding format as
verbose
, access node identifier as
sysname
, and code type as
ascii
for Option 82.
z
Switch B forwards DHCP requests to the DHCP server (Switch A) after replacing Option 82 in the
requests, so that the DHCP clients can obtain IP addresses.
Содержание S7902E
Страница 82: ...1 4 DeviceA interface tunnel 1 DeviceA Tunnel1 service loopback group 1 ...
Страница 200: ...1 11 DeviceB display vlan dynamic No dynamic vlans exist ...
Страница 494: ...ii Displaying and Maintaining Tunneling Configuration 1 45 Troubleshooting Tunneling Configuration 1 45 ...
Страница 598: ...ii ...
Страница 1757: ...4 9 ...
Страница 1770: ...6 4 ...
Страница 2017: ...2 11 Figure 2 3 SFTP client interface ...
Страница 2062: ...i Table of Contents 1 URPF Configuration 1 1 URPF Overview 1 1 What is URPF 1 1 How URPF Works 1 1 Configuring URPF 1 2 ...
Страница 2238: ...1 16 DeviceA cfd linktrace service instance 1 mep 1001 target mep 4002 ...
Страница 2442: ...2 4 Set the interval for sending Syslog or trap messages to 20 seconds Device mac address information interval 20 ...