Got it

Does the Interface with a Dynamic IP Address Support IPSec?

Created: Jun 21, 2019 03:08:37Latest reply: Jun 21, 2019 06:09:54 448 5 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Does the Interface with a Dynamic IP Address Support IPSec?

Featured Answers
GatewayWhiz
Official Created Jun 21, 2019 03:24:33

Yes.

When the local interface has a dynamic IP address and the peer interface has a fixed IP address, configure an IPSec policy template on the peer interface to implement IPSec.

The following uses the 3G interface as an example to implement IKE auto negotiation.

Dynamic IP address

#
ike peer peer_3g_1  
 pre-shared-key cipher %@%@VsiNAx"H;$1jaO'QE%[=I\O6%@%@  //Set the pre-shared key to huawei.
 remote-address 10.5.39.160  //Specify a fixed IP address for the peer end.
#
ipsec proposal ipsec  //Use the default security parameters.
#
ipsec policy ipsec 1 isakmp  //Configure an IPSec policy and import the policy on a 3G interface.
 security acl 3000
 ike-peer peer_3g_1
 proposal ipsec
# 
interface Cellular0/0/0 
 ipsec policy ipsec   //Configure the IPSEC policy on the 3G interface.
# 
acl 3000  //Configure ACL rules. The IPSec policy protects packets that match ACL rules.
...
#

Fixed IP address

# 
ipsec proposal ipsec 
# 
ike peer peer_3g_2   //The peer end uses a dynamic IP address.
 pre-shared-key cipher %@%@VsiNAx"H;$1jaO'QE%[=I\O6%@%@  //Set the pre-shared key to huawei.
# 
ipsec policy-template temp 1  //Configure an IPSec policy template.
 ike-peer peer_3g_2
 proposal ipsec 
# 
ipsec policy ipsec 1 isakmp template temp  //Configure an IPSec policy and bind the policy to the template.
# 
interface GigabitEthernet 1/0/0  //This interface uses a fixed IP address.
 ipsec policy ipsec
 ip address 10.5.39.160 255.255.255.255 
#

In V200R002C00 and earlier versions, run the pre-shared-key huawei command to set the pre-shared key to huawei.

In V200R008C00 and later versions, the v1 and v2 parameters are deleted from the ike peer peer-name [ v1 | v2 ] command. To configure the IKE protocol, run the version { 1 | 2 } command.

View more
  • x
  • convention:

All Answers
GatewayWhiz
GatewayWhiz Official Created Jun 21, 2019 03:24:33

Yes.

When the local interface has a dynamic IP address and the peer interface has a fixed IP address, configure an IPSec policy template on the peer interface to implement IPSec.

The following uses the 3G interface as an example to implement IKE auto negotiation.

Dynamic IP address

#
ike peer peer_3g_1  
 pre-shared-key cipher %@%@VsiNAx"H;$1jaO'QE%[=I\O6%@%@  //Set the pre-shared key to huawei.
 remote-address 10.5.39.160  //Specify a fixed IP address for the peer end.
#
ipsec proposal ipsec  //Use the default security parameters.
#
ipsec policy ipsec 1 isakmp  //Configure an IPSec policy and import the policy on a 3G interface.
 security acl 3000
 ike-peer peer_3g_1
 proposal ipsec
# 
interface Cellular0/0/0 
 ipsec policy ipsec   //Configure the IPSEC policy on the 3G interface.
# 
acl 3000  //Configure ACL rules. The IPSec policy protects packets that match ACL rules.
...
#

Fixed IP address

# 
ipsec proposal ipsec 
# 
ike peer peer_3g_2   //The peer end uses a dynamic IP address.
 pre-shared-key cipher %@%@VsiNAx"H;$1jaO'QE%[=I\O6%@%@  //Set the pre-shared key to huawei.
# 
ipsec policy-template temp 1  //Configure an IPSec policy template.
 ike-peer peer_3g_2
 proposal ipsec 
# 
ipsec policy ipsec 1 isakmp template temp  //Configure an IPSec policy and bind the policy to the template.
# 
interface GigabitEthernet 1/0/0  //This interface uses a fixed IP address.
 ipsec policy ipsec
 ip address 10.5.39.160 255.255.255.255 
#

In V200R002C00 and earlier versions, run the pre-shared-key huawei command to set the pre-shared key to huawei.

In V200R008C00 and later versions, the v1 and v2 parameters are deleted from the ike peer peer-name [ v1 | v2 ] command. To configure the IKE protocol, run the version { 1 | 2 } command.

View more
  • x
  • convention:

Hi,
It works
Pls find the below link for more clarification
https://support.huawei.com/enterprise/en/doc/EDOC1100069342/46668d54/does-the-interface-with-a-dynamic-ip-address-support-ipsec
Regards
Yogendra
View more
  • x
  • convention:

Hello
Yes.

When the local interface has a dynamic IP address and the peer interface has a fixed IP address, configure an IPSec policy template on the peer interface to implement IPSec.
Thanks
View more
  • x
  • convention:

GatewayWhiz
GatewayWhiz Official Created Jun 21, 2019 05:46:40

Yes.

The following uses the 3G interface as an example to implement IKE auto negotiation.

Dynamic IP address

#
ike peer peer_3g_1  
 pre-shared-key cipher %@%@VsiNAx"H;$1jaO'QE%[=I\O6%@%@  //Set the pre-shared key to huawei.
 remote-address 10.5.39.160  //Specify a fixed IP address for the peer end.
#
ipsec proposal ipsec  //Use the default security parameters.
#
ipsec policy ipsec 1 isakmp  //Configure an IPSec policy and import the policy on a 3G interface.
 security acl 3000
 ike-peer peer_3g_1
 proposal ipsec
# 
interface Cellular0/0/0 
 ipsec policy ipsec   //Configure the IPSEC policy on the 3G interface.
# 
acl 3000  //Configure ACL rules. The IPSec policy protects packets that match ACL rules.
...
#

Fixed IP address

# 
ipsec proposal ipsec 
# 
ike peer peer_3g_2   //The peer end uses a dynamic IP address.
 pre-shared-key cipher %@%@VsiNAx"H;$1jaO'QE%[=I\O6%@%@  //Set the pre-shared key to huawei.
# 
ipsec policy-template temp 1  //Configure an IPSec policy template.
 ike-peer peer_3g_2
 proposal ipsec 
# 
ipsec policy ipsec 1 isakmp template temp  //Configure an IPSec policy and bind the policy to the template.
# 
interface GigabitEthernet 1/0/0  //This interface uses a fixed IP address.
 ipsec policy ipsec
 ip address 10.5.39.160 255.255.255.255 
#
View more
  • x
  • convention:

GatewayWhiz
GatewayWhiz Official Created Jun 21, 2019 06:09:54

The interface can be configured with IPSec when it dynamically obtains an IP address. When the local interface is configured with a dynamic IP address and the remote interface is configured with a fixed IP address, you can configure an IPSec policy template on the remote end to implement IPSec.
The 3G interface is used as an example. IKE negotiation is used. The key configuration is as follows:
Interface with a dynamic IP address
#
ike peer peer_3g_1 v1
pre-shared-key cipher %^%#JvZxR2g8c;a9~FPN~n'$7`DEV&=G(=Et02P/%\*!%^%# //Set the preshared key to huawei.
remote-address 10.5.39.160 //Specify the fixed IP address for the remote end.
#
ipsec proposal ipsec //Use default security parameters.
#
ipsec policy ipsec 1 isakmp //Configure an IPSec policy.
security acl 3000
ike-peer peer_3g_1
proposal ipsec
#
interface Cellular0/0/0
ipsec policy ipsec //Apply the IPSec policy to the 3G interface. Other configurations of the 3G interface are not mentioned.
#
acl 3000 //Configure an ACL. IPSec protects the packets matching the ACL.
...
#

Interface with a fixed IP address
#
ipsec proposal ipsec
#
ike peer peer_3g_2 v1 //The remote interface is configured with a dynamic IP address, so there is no need to specify an IP address for the remote interface.
pre-shared-key cipher %^%#K{JG:rWVHPMnf;5\|,GW(Luq'qi8BT4nOj%5W5=)%^%# //Set the pre-shared key to huawei.
#
ipsec policy-template temp 1 //Configure an IPSec policy template.
ike-peer peer_3g_2
proposal ipsec
#
ipsec policy ipsec 1 isakmp template temp //Bind the IPSec policy to the IPSec policy template.
#
interface GigabitEthernet 1/0/0 //The interface uses a fixed IP address.
ipsec policy ipsec
ip address 10.5.39.160 255.255.255.255
#
View more
  • x
  • convention:

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 " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

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.