< Home

ipsec sa (IPv4)

Function

The ipsec sa command specifies an IPSec SA globally used for encrypting and authenticating PIM messages sent and received by the device.

The undo ipsec sa command deletes the IPSec SA globally used for encrypting and authenticating PIM messages sent and received by the device.

By default, no IPSec SA is specified for encrypting and authenticating PIM messages.

Format

ipsec [ unicast-message ] sa sa-name

undo ipsec [ unicast-message ] sa

Parameters

Parameter Description Value

unicast-message

Authenticates only PIM unicast messages. If you do not specify this keyword, the device authenticates only PIM multicast messages.

-

sa-name

Specifies the name of the globally used SA.

The value is an existing SA name.

Views

PIM view of public network instance or PIM view of VPN instance

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On an IPv4 multicast network, if multicast devices are attacked by forged PIM messages, multicast data forwarding between multicast devices will be interrupted. To protect multicast devices against such attacks, configure PIM IPSec on the multicast devices to authenticate PIM messages they send and receive.

Prerequisites

  • IP multicast routing has been enabled using the multicast routing-enable command.

  • Basic IPSec functions have been configured.

Precautions

If you run both the ipsec sa sa-name command and the hello ipsec sa (IPv4) command in the PIM view, the last configured one takes effect.

This command has the same function as the pim ipsec sa command used in the interface view, except for the effective scope. The configuration in the interface view takes precedence over the configuration in the PIM view. If SAs are specified in both the interface view and PIM view, the specified interface uses the SA configured in the interface view. If no SA is specified on an interface, the interface uses the SA specified in the PIM view.

Example

# Configure the device to encrypt and authenticate PIM multicast messages using the PIM IPSec SA named sa1. (This SA has been created.)

<HUAWEI> system-view
[HUAWEI] multicast routing-enable
[HUAWEI] pim
[HUAWEI-pim] ipsec sa sa1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >