FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
plugins/snat-plugin/snat

set interface snat

Summary/usage

set interface snat in <intfc> out <intfc> [del].

Declaration and implementation

Declaration: set_interface_snat_command (plugins/snat-plugin/snat/snat.c line 1472)

Implementation: snat_feature_command_fn.

set snat workers

Summary/usage

set snat workers <workers-list>.

Description

Example usage
vpp# set snat workers
Set SNAT workers if 2 or more workers available, use:
 vpp# set snat workers 0-2,5

Declaration and implementation

Declaration: set_workers_command (plugins/snat-plugin/snat/snat.c line 1617)

Implementation: set_workers_command_fn.

show snat

Summary/usage

show snat.

Declaration and implementation

Declaration: show_snat_command (plugins/snat-plugin/snat/snat.c line 1953)

Implementation: show_snat_command_fn.

snat add address

Summary/usage

snat add addresses <ip4-range-start> [- <ip4-range-end>] [del].

Declaration and implementation

Declaration: add_address_command (plugins/snat-plugin/snat/snat.c line 1406)

Implementation: add_address_command_fn.

snat add static mapping

Summary/usage

snat add static mapping local <addr> [<port>] external <addr> [<port>] [vrf <table-id>] [del].

Description

Example usage
vpp# snat add static mapping
Static mapping allows hosts on the external network to initiate connection
to to the local network host.
To create static mapping between local host address 10.0.0.3 port 6303 and
external address 4.4.4.4 port 3606 use:
 vpp# snat add static mapping local 10.0.0.3 6303 external 4.4.4.4 3606
If not runnig "static mapping only" S-NAT plugin mode use before:
 vpp# snat add address 4.4.4.4
To create static mapping between local and external address use:
 vpp# snat add static mapping local 10.0.0.3 external 4.4.4.4

Declaration and implementation

Declaration: add_static_mapping_command (plugins/snat-plugin/snat/snat.c line 1557)

Implementation: add_static_mapping_command_fn.