The ipsec nat-traversal source-port command configures a UDP port number for IPSec NAT traversal.
The undo ipsec nat-traversal source-port command restores the default UDP port number for IPSec NAT traversal.
By default, the UDP port number for IPSec NAT traversal is 4500.
ipsec nat-traversal source-port port-number [ port-number2 ]
undo ipsec nat-traversal source-port
| Parameter | Description | Value |
|---|---|---|
| port-number | Specifies the UDP port number for IPSec NAT traversal. | The value is an integer that ranges from 4501 to 49151. |
| port-number2 | Specifies the end UDP port number for IPSec NAT traversal. | The value is an integer that ranges from 4501 to 49151. |
By default, IPSec NAT traversal uses UDP port 4500. If you want to use another UDP port for IPSec NAT traversal, run the ipsec nat-traversal source-port command.
If multiple UDP port numbers are configured, the device matches the port number from the smallest value after receiving an IPSec negotiation packet, until a value matches.