FD.io VPP
v17.01.1-3-gc6833f8
Vector Packet Processing
|
set interface snat in <intfc> out <intfc> [del].
Declaration: set_interface_snat_command (plugins/snat-plugin/snat/snat.c line 1472)
Implementation: snat_feature_command_fn.
set snat workers <workers-list>.
vpp# set snat workers
Set SNAT workers if 2 or more workers available, use:
vpp# set snat workers 0-2,5
Declaration: set_workers_command (plugins/snat-plugin/snat/snat.c line 1617)
Implementation: set_workers_command_fn.
show snat.
Declaration: show_snat_command (plugins/snat-plugin/snat/snat.c line 1953)
Implementation: show_snat_command_fn.
snat add addresses <ip4-range-start> [- <ip4-range-end>] [del].
Declaration: add_address_command (plugins/snat-plugin/snat/snat.c line 1406)
Implementation: add_address_command_fn.
snat add static mapping local <addr> [<port>] external <addr> [<port>] [vrf <table-id>] [del].
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: add_static_mapping_command (plugins/snat-plugin/snat/snat.c line 1557)
Implementation: add_static_mapping_command_fn.