The cmp source interface command configures the source interface of CMPv2 packets. The IP address of the configured source interface is used as the source IP address of the packets sent from the device to the CMPv2 server.
The undo cmp source interface command deletes the source interface configured for CMPv2 packets.
By default, the source IP address of CMPv2 packets is obtained based on the destination IP address in the routing table.
Usage Scenario
When a device exchanges packets with the CMPv2 server to apply for certificates, the IP address of the outbound interface for the reachable route to the device is used as the source IP address of the packets. If a different route is used, the outbound interface may change, causing the following problems:
<HUAWEI> system-view [~HUAWEI] interface LoopBack 1 [*HUAWEI-LoopBack1] ip address 10.1.1.1 32 [*HUAWEI-LoopBack1] commit [~HUAWEI-LoopBack1] quit [~HUAWEI] pki domain domain1 [*HUAWEI-pki-domain-domain1] pki cmp session session1 [*HUAWEI-pki-domain-domain1-pki-cmp-session-session1] cmp source interface loopback 1