Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Technical Documentation
 
CLI Explorer New
 
Content Explorer New
 
Documentation Help New
 
Enterprise MIBs
 
EOL Documentation
 
Feature Explorer Login required New
 
Glossary
 
Portable Libraries
 
Home > Support > Technical Documentation > EX Series > Setting Up DHCP Option 82 on the Switch with No Relay Agent Between Clients and DHCP Server (CLI Procedure)
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...

EX Series Search

Advanced Search |  Search Tips
 

Supported Platforms

  • EX Series
 
 

Related Documentation

  • EX Series
  • Example: Setting Up DHCP Option 82 on an EX Series Switch with No Relay Agent Between Clients and DHCP Server
  • Understanding DHCP Option 82 for Port Security on EX Series Switches
  • Additional Information
  • http://tools.ietf.org/html/rfc3046.
 
Recent Community Posts
Show All Show Fewer 
 
 
Related Links
EX Series Product Literature
  • Junos Central
  • Junos Technotes
  • Junos Day One Books
Enterprise Routing and Switching Certification Track
  • Fast Track Certification Program
  • Certification Study Guides
Junos Technical Education Courses (Free)
  • Networking Fundamentals
  • Junos As A Second Language
  • Junos As A Scripting Language
  • Junos As A Switching Language
  • Juniper Networks Books
Support
  • Junos Software (Canada & US)  Login required
  • Junos Software (Worldwide) Login required
  • Knowledge Base - Browse EX Series Articles  Login required
  • Technical Bulletins for EX Series Login required
  • IOS to Junos Migration Tool Login required
Show All Show Fewer 
 
 

Setting Up DHCP Option 82 on the Switch with No Relay Agent Between Clients and DHCP Server (CLI Procedure)

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:

  • The switch, DHCP clients, and DHCP server are all on the same VLAN. The switch forwards the clients' requests to the server and forwards the server's replies to the clients. This topic describes this configuration.
  • The switch functions as a relay agent when the DHCP clients or the DHCP server is connected to the switch through a Layer 3 interface. On the switch, these interfaces are configured as routed VLAN interfaces, or RVIs. The switch relays the clients' requests to the server and then forwards the server's replies to the clients. This configuration is described in Setting Up DHCP Option 82 with the Switch as a Relay Agent Between Clients and DHCP Server (CLI Procedure).

Before you configure DHCP option 82 on the switch, perform these tasks:

  • Connect and configure the DHCP server.

    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.

  • Configure a VLAN on the switch and associate the interfaces on which the clients and the server connect to the switch with that VLAN.

To configure DHCP option 82:

Note: Replace values displayed in italics with values for your configuration.

  1. Specify DHCP option 82 for all VLANs associated with the switch or for a specified VLAN. (You can also configure the feature for a VLAN range.)
    • On a specific VLAN:

      [edit ethernet-switching-options secure-access-port]
      user@switch# set vlan employee dhcp-option82
    • On all VLANs:

      [edit ethernet-switching-options secure-access-port]
      user@switch# set vlan all dhcp-option82

      The remaining steps are optional.

  2. To configure a prefix for the circuit ID suboption (the prefix is always the hostname of the switch):

    [edit ethernet-switching-options secure-access-port]
    user@switch# set vlan employee dhcp-option82 circuit-id prefix hostname

  3. To specify that the circuit ID suboption value contains the interface description rather than the interface name (the default):

    [edit ethernet-switching-options secure-access-port]
    user@switch# set vlan employee dhcp-option82 circuit-id use-interface-description

  4. To specify that the circuit ID suboption value contains the VLAN ID rather than the VLAN name (the default):

    [edit ethernet-switching-options secure-access-port]
    user@switch# set vlan employee dhcp-option82 circuit-id use-vlan-id

  5. To specify that the remote ID suboption is included in the DHCP option 82 information:

    [edit ethernet-switching-options secure-access-port]
    user@switch# set vlan employee dhcp-option82 remote-id

  6. To configure a prefix for the remote ID suboption (here, the prefix is the MAC address of the switch):

    [edit ethernet-switching-options secure-access-port]
    user@switch# set vlan employee dhcp-option82 remote-id prefix mac

  7. To specify that the prefix for the remote ID suboption is the hostname of the switch rather than the MAC address of the switch (the default):

    [edit ethernet-switching-options secure-access-port]
    user@switch# set vlan employee dhcp-option82 remote-id prefix hostname

  8. To specify that the remote ID suboption value contains the interface description:

    [edit ethernet-switching-options secure-access-port]
    user@switch# set vlan employee dhcp-option82 remote-id use-interface-description

  9. To specify that the remote ID suboption value contains a character string:

    [edit ethernet-switching-options secure-access-port]
    user@switch# set vlan employee dhcp-option82 remote-id use-stringmystring

  10. To configure a vendor ID suboption and use the default value (the default value is Juniper), do not type a character string after the vendor-id option keyword:

    [edit ethernet-switching-options secure-access-port]
    user@switch# set vlan employee dhcp-option82 vendor-id

  11. To specify that the vendor ID suboption value contains a character string value that you specify rather than Juniper (the default):

    [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.

 

Related Documentation

  • EX Series
  • Example: Setting Up DHCP Option 82 on an EX Series Switch with No Relay Agent Between Clients and DHCP Server
  • Understanding DHCP Option 82 for Port Security on EX Series Switches
  • Additional Information
  • http://tools.ietf.org/html/rfc3046.
 

Published: 2011-01-30

 
  • About Juniper
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Green Networking
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Developers
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out