Got it

Option 82 for S6730 Switches

Created: Dec 1, 2020 06:47:45Latest reply: Dec 1, 2020 06:59:52 112 6 0 0
  Rewarded HiCoins: 2 (problem resolved)

Hi,


I need to track location of end devices. I read it can be done using Option 82, can the experts please confirm how can we insert Option 82 with configuration examples.

  • x
  • convention:

Featured Answers
umaryaqub
MVE Created Dec 1, 2020 06:59:52 Helpful(1) Helpful(1)

Hi,


The Option 82 field records the location of a DHCP client, and is inserted into a DHCP Request message before being sent to the DHCP server. This allows the DHCP server to assign an IP address and other configurations to the DHCP client, facilitating DHCP client security.


  1. Run system-view

  2. The system view is displayed.

  3. You can configure the device to insert the Option 82 field in a DHCP message in the interface view or VLAN view.

  4. You can configure the format of the Option 82 field in the system or interface view. If the configuration is performed in the system view, the configuration takes effect for all interfaces on the device. If the configuration is performed in the interface view, the configuration takes effect only for the specified interface.

  5. Run dhcp option82 subscriber-id format { ascii ascii-text | hex hex-text }

    The Sub6 suboption is inserted into the Option 82 field of DHCP messages and the format of the Sub6 suboption is configured.

    By default, the Sub6 suboption is not inserted into the Option 82 field of DHCP messages.

  6. Insert the Sub9 suboption into the Option 82 field of DHCP messages.

    The Sub9 suboption has old and new formats. The old format contains the vendor ID, for example, hwid. The new format does not contain the vendor ID.

    1. Run the dhcp option82 vendor-specific format vendor-sub-option sub-option-num { ascii ascii-text | hex hex-text | ip-address ip-address &<1-8> | sysname } command to insert the Sub9 suboption of the old format to the Option 82 field of DHCP messages.

    2. Insert the Sub9 suboption of the new format into the Option 82 field of DHCP messages.


Verifying the Configuration

  • Run the display dhcp option82 configuration [ vlan vlan-id | interface interface-type interface-number ] command to view the DHCP Option 82 configuration.


I hope it helps.

View more
  • x
  • convention:

rafaolla
rafaolla Created Dec 2, 2020 03:51:01
thanks!  
umaryaqub
umaryaqub Reply rafaolla  Created Dec 2, 2020 05:15:46
 
All Answers
Sokrin
Sokrin Created Dec 1, 2020 06:50:43 Helpful(1) Helpful(1)

Hello friend!

The Option 82 field records the location of a DHCP client, and is inserted into a DHCP Request message before being sent to the DHCP server. This allows the DHCP server to assign an IP address and other configurations to the DHCP client, facilitating DHCP client security.


https://support.huawei.com/enterprise/en/doc/EDOC1000178177/e359b12d/inserting-the-option-82-field-in-a-dhcp-message

Regards,

View more
  • x
  • convention:

rafaolla
rafaolla Created Dec 2, 2020 03:50:48
 
DDSN
DDSN Admin Created Dec 1, 2020 06:53:09 Helpful(1) Helpful(1)

  • x
  • convention:

umaryaqub
umaryaqub MVE Created Dec 1, 2020 06:59:52 Helpful(1) Helpful(1)

Hi,


The Option 82 field records the location of a DHCP client, and is inserted into a DHCP Request message before being sent to the DHCP server. This allows the DHCP server to assign an IP address and other configurations to the DHCP client, facilitating DHCP client security.


  1. Run system-view

  2. The system view is displayed.

  3. You can configure the device to insert the Option 82 field in a DHCP message in the interface view or VLAN view.

  4. You can configure the format of the Option 82 field in the system or interface view. If the configuration is performed in the system view, the configuration takes effect for all interfaces on the device. If the configuration is performed in the interface view, the configuration takes effect only for the specified interface.

  5. Run dhcp option82 subscriber-id format { ascii ascii-text | hex hex-text }

    The Sub6 suboption is inserted into the Option 82 field of DHCP messages and the format of the Sub6 suboption is configured.

    By default, the Sub6 suboption is not inserted into the Option 82 field of DHCP messages.

  6. Insert the Sub9 suboption into the Option 82 field of DHCP messages.

    The Sub9 suboption has old and new formats. The old format contains the vendor ID, for example, hwid. The new format does not contain the vendor ID.

    1. Run the dhcp option82 vendor-specific format vendor-sub-option sub-option-num { ascii ascii-text | hex hex-text | ip-address ip-address &<1-8> | sysname } command to insert the Sub9 suboption of the old format to the Option 82 field of DHCP messages.

    2. Insert the Sub9 suboption of the new format into the Option 82 field of DHCP messages.


Verifying the Configuration

  • Run the display dhcp option82 configuration [ vlan vlan-id | interface interface-type interface-number ] command to view the DHCP Option 82 configuration.


I hope it helps.

View more
  • x
  • convention:

rafaolla
rafaolla Created Dec 2, 2020 03:51:01
thanks!  
umaryaqub
umaryaqub Reply rafaolla  Created Dec 2, 2020 05:15:46
 

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community
Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.