You can use DHCP option 82, also known as the DHCP relay agent information option, to help protect the EX Series switch against attacks such as spoofing (forging) of IP addresses and MAC addresses, and DHCP IP address starvation. Option 82 provides information about the network location of a DHCP client, and the DHCP server uses this information to implement IP addresses or other parameters for the client.
You can configure the DHCP option 82 feature in two topologies:
Before you configure DHCP option 82 on the switch, perform these tasks:
![]() | Note: Your DHCP server must be configured to accept DHCP option 82. If the server is not configured for DHCP option 82, the server does not use the DHCP option 82 information in the requests sent to it when it formulates its reply messages. |
To configure DHCP option 82:
![]() | Note: Replace values displayed in italics with values for your configuration. |
[edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 [edit ethernet-switching-options secure-access-port]
user@switch# set vlan all dhcp-option82 The remaining steps are optional.
[edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 circuit-id prefix hostname [edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 circuit-id use-interface-description [edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 circuit-id use-vlan-id[edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 remote-id [edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 remote-id prefix mac [edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 remote-id prefix hostname[edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 remote-id use-interface-description[edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 remote-id use-stringmystring[edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 vendor-id [edit ethernet-switching-options secure-access-port]
user@switch# set vlan employee dhcp-option82 vendor-id mystring To view results of the configuration steps before committing the configuration, type the show command at the user prompt.
To commit these changes to the active configuration, type the commit command at the user prompt.