Configuring an ipsec tunnel interface – H3C Technologies H3C SecPath F1000-E User Manual
Page 200
188
Step Command
Remarks
9.
Set the global SA lifetime.
ipsec sa global-duration
{ time-based seconds |
traffic-based kilobytes }
Optional.
3600 seconds for time-based SA
lifetime by default
1843200 kilobytes for
traffic-based SA lifetime by default.
Configuring an IPsec tunnel interface
An IPsec tunnel interface uses IPsec as the encapsulation protocol.
To configure an IPsec tunnel interface, complete the following tasks:
1.
Create a tunnel interface and set the tunnel mode to IPsec over IPv4.
2.
Specify the source address or source interface of the IPsec tunnel interface, which will be used as
the local address in IKE negotiation.
3.
Configure the destination addresses of the tunnel interface for the local peer to initiate an IKE
negotiation. If you want the local peer to act only as an IKE negotiation responder, omit this
configuration.
4.
Apply an IPsec profile to the IPsec tunnel interface.
After the link layer of the IPsec tunnel interface comes up, packets routed to the tunnel interface will be
protected by IPsec. To make sure that the link layer of the IPsec tunnel interface comes up, make sure the
following requirements are met:
•
The source address of the tunnel interface is the IP address of the local physical interface that
connects to the remote.
•
The IPsec tunnel interfaces of the IPsec tunnel are configured with proper IPsec profiles.
•
The expected IKE SA and IPsec SAs are established between the local security gateway and the
peer gateway. Use the display ike sa command to view the status the IKE SA and the IPsec SAs.
To configure an IPsec tunnel interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a tunnel interface and
enter its view.
interface tunnel number
By default, no tunnel interface exists
on the device.
3.
Assign an IPv4 address to the
tunnel interface.
ip address ip-address { mask |
mask-length } [ sub ]
By default, no IPv4 address is
assigned to a tunnel interface.
4.
Set the tunnel mode of the
tunnel interface to IPsec over
IPv4.
tunnel-protocol ipsec ipv4
N/A
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS