No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - IP Service

S1720, S2700, S5700, and S6720 V200R012(C00 and C20)

This document describes the configurations of IP Service, including IP address, ARP, DHCP, DHCP policy VLAN, DNS, mDNS gateway, mDNS relay, UDP Helper, IP performance optimization, IPv6, DHCPv6, IPv6 DNS, IPv6 over IPv4 tunnel, and IPv4 over IPv6 tunnel.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
(Optional) Configuring Strategies for Processing Option 82 Information on a DHCP Relay Agent

(Optional) Configuring Strategies for Processing Option 82 Information on a DHCP Relay Agent

Context

Option 82 is also called the Relay Agent Information Option. It records the location of a DHCP client, based on which a DHCP server can select address allocation policies including IP addresses and other network parameters. You can configure strategies for processing Option 82 information on a DHCP relay agent.

You are advised to perform the configuration on a user-side device. If the DHCP relay agent connects to a DHCP snooping-enabled device, configure the strategies for processing Option 82 information on the DHCP snooping device. When a device functions as the DHCP snooping device, for details on how to perform the configuration, see Inserting the Option 82 Field in a DHCP Message in "DHCP Snooping Configuration" in the S1720, S2700, S5700, and S6720 V200R012(C00&C20) Configuration Guide - Security.

NOTE:

If the device functions as the first-hop DHCP relay agent, it can process Option 82 information. If the device functions as the second-hop or subsequent DHCP relay agent, it cannot process Option 82 information.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run dhcp relay trust option82

    The DHCP relay agent is enabled to trust Option 82.

    By default, a DHCP relay agent does not trust Option 82.

    When this function is enabled, the DHCP relay agent can receive and forward DHCP messages that carry Option 82. If the DHCP relay agent is disabled from trusting Option 82 using the undo dhcp relay trust option82 command, the device discards the DHCP messages carrying Option 82.

  3. Configure strategies for processing Option 82 information on the DHCP relay agent.

    • Configure the DHCP relay agent to insert the Option 82 field to DHCP messages in a VLAN view. This configuration takes effect on all DHCP messages from this VLAN received on the interfaces of the DHCP relay agent.

      1. Run vlan vlan-id

        The VLAN view is displayed.

      2. Run dhcp option82 { insert | rebuild } enable interface interface-type interface-number1 [ to interface-number2 ]

        The DHCP relay agent is enabled to insert the Option 82 field to received DHCP messages.

        By default, a DHCP relay agent is disabled from inserting the Option 82 field to received DHCP messages.

      3. Run quit

        Return to the system view.

    • Configure the DHCP relay agent to insert the Option 82 field to DHCP messages in an interface view. This configuration takes effect on DHCP messages received on the specified interface.

      Use the following methods to configure strategies for processing Option 82 information. If both methods are used, method 2 takes effect.

      • Method 1:

        1. Run interface interface-type interface-number

          The interface view is displayed.

        2. Run dhcp option82 { insert | rebuild } enable

          The DHCP relay agent is enabled to insert the Option 82 field to received DHCP messages.

          By default, a DHCP relay agent is disabled from inserting the Option 82 field to received DHCP messages.

          DHCP messages received on the DHCP relay agent may carry the Option 82 field. Select a strategy based on network requirements.

          • When insert is configured: If a DHCP message does not carry the Option 82 field, the DHCP relay agent inserts the Option 82 field. If a DHCP message carries the Option 82 field, the DHCP relay agent checks the Option 82 field. If the field contains remote-id, the Option 82 field remains unchanged. Otherwise, the DHCP relay agent inserts remote-id.
          • When rebuild is configured: If a DHCP message does not carry the Option 82 field, the DHCP relay agent inserts the Option 82 field. If a DHCP message carries the Option 82 field, the DHCP relay agent deletes the original Option 82 field and inserts the locally configured Option 82 field.
        3. Run quit

          Return to the system view.

      • Method 2:

        1. Run interface interface-type interface-number [.subinterface-number ]

          The interface view or sub-interface view is displayed.

          NOTE:

          Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support sub-interfaces.

        2. Run dhcp relay information enable

          The DHCP relay agent is enabled to support Option 82.

          By default, a DHCP relay agent does not support Option 82.

        3. Run dhcp relay information strategy { drop | keep | replace }

          A strategy for processing Option 82 information is configured on the DHCP relay agent.

          The default strategy is replace.

          DHCP messages received on the DHCP relay agent may carry the Option 82 field. Select a strategy based on network requirements.

          • When replace is configured: If a DHCP message does not carry the Option 82 field, the DHCP relay agent inserts the Option 82 field. If a DHCP message carries the Option 82 field, the DHCP relay agent deletes the original Option 82 field and inserts the locally configured Option 82 field.

          • When drop is configured: If a DHCP message does not carry the Option 82 field, the DHCP relay agent forwards the message directly without processing it. If a DHCP message carries the Option 82 field, the DHCP relay agent discards the Option 82 field and forwards the message.

          • When keep is configured: If a DHCP message does not carry the Option 82 field, the DHCP relay agent forwards the message directly without processing it. If a DHCP message carries the Option 82 field, the DHCP relay agent retains the Option 82 field and forwards the message.

        4. Run quit

          Return to the system view.

  4. (Optional) Set the format of the Option 82 field.

    Configure the format of the Option 82 field in the system or interface view. If the configuration is performed in the system view, it takes effect on all interfaces of the device. If the configuration is performed in an interface view, it takes effect only on the specified interface.

    If the strategy for processing Option 82 information is drop or keep on the DHCP relay agent, skip this step.

    • All Option82 fields configured in the system view or in the same interface view share a length of 1-255 bytes. If their total length exceeds 255 bytes, some Option82 information will be lost.

    • There is no limit on the number of Option 82 fields configured on the device. However, a large number of Option 82 fields will occupy a lot of memory and prolong the device processing time. To ensure device performance, you are advised to configure Option 82 fields based on the service requirements and device memory size.

    • In the system view:

      Run dhcp option82 [ vlan vlan-id ] [ ce-vlan ce-vlan-id ] [ circuit-id | remote-id ] format { default | common | extend | user-defined text }

      The format of the Option 82 field is configured.

      By default, the Option 82 field is in the default format.

    • In the interface view:

      1. Run interface interface-type interface-number

        The interface view is displayed.

      2. Run dhcp option82 [ vlan vlan-id ] [ ce-vlan ce-vlan-id ] [ circuit-id | remote-id ] format { default | common | extend | user-defined text }

        The format of the Option 82 field is configured.

        By default, the Option 82 field is in the default format.

      3. Run quit

        Return to the system view.

Translation
Download
Updated: 2018-12-24

Document ID: EDOC1100038342

Views: 89935

Downloads: 291

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next