Configuring Network Address Translation (NAT)
ip nat inside source static (NAPT)
Use this command to enable static NAPT translation of inside source addresses.
Syntax
ip nat inside source static {tcp | udp} local-ip local-port global-ip global-port
no ip nat inside source static {tcp | udp} local-ip local-port global-ip
global-port
Parameters
local‐ip
local‐port
global‐ip
global‐port
Defaults
None.
Usage
Packets for the specified protocol from addresses that match the IP address and port for this static
entry are translated.
The no version of the command deletes the specified static NAPT translation.
Mode
Router command, Global configuration: Matrix‐>Router(config)#
Example
This example enables a static NAPT translation of inside source addresses for private local
address 10.10.10.51 on port 123 destined for and transmitting from unique public address
45.20.10.6 on port 121:
Matrix->Router(config)#ip nat inside source static tcp 10.10.10.51 123 45.20.10.6
121
ip nat ftp-control-port
Use this command to specify the NAT FTP control port.
Syntax
ip nat ftp-control-port port-number
no ip nat ftp-control-port
Parameters
port‐number
18-6 Network Address Translation (NAT) Configuration
Specifies the private IP address for this static NAPT translation.
Specifies the L4 source port associated with the private IP address for
this static NAPT translation.
Specifies the unique public IP address for this static NAPT translation.
Specifies the L4 translated source port port associated with the unique
public IP address for this static NAPT translation.
Specifies the FTP control port. Default value: 21.
ip nat inside source static (NAPT)