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


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


AR500, AR510, and AR530 V200R007 Commands Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
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).



The dh command configures a Diffie-Hellman group used in IKE key negotiation.

By default, the 1024-bit Diffie-Hellman group (group2) is used in IKE negotiation.


dh { group1 | group2 | group5 | group14 }






Uses the 768-bit Diffie-Hellman group in IKE negotiation.



Uses the 1024-bit Diffie-Hellman group in IKE negotiation.



Uses the 1536-bit Diffie-Hellman group in IKE negotiation.



Uses the 2048-bit Diffie-Hellman group in IKE negotiation.



IKE proposal view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The Diffie-Hellman (DH) algorithm is a public key algorithm. The two communicating parties do not transmit a key but exchange data to calculate a shared key. A third party (such as a hacker) cannot calculate the actual key even if it intercepts all exchanged data for key calculation. The communicating parties exchange data to calculate a shared key but do not directly transmit a key.


A DH group with more bits indicates higher encryption. A DH group with more bits has higher encryption but slower calculation. The 768-bit Diffie-Hellman group (group1) has potential security risks. The 2048-bit Diffie-Hellman group (group14) is recommended.

Both ends of an IPSec tunnel must use the same Diffie-Hellman group; otherwise, IKE negotiation fails.

If you run the dh command multiple times, only the latest configuration takes effect.


# Configure IKE proposal 10 to use the 2048-bit Diffie-Hellman group.

<Huawei> system-view
[Huawei] ike proposal 10
[Huawei-ike-proposal-10] dh group14
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 90647

Downloads: 124

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