DYNAMIC NAT
Anything from inside to a single IP – tested with ICMP
vppctl set interface snat in loop0 out GigabitEthernet0/a/0
vppctl snat add address 172.16.2.2 < - single ip
vppctl snat add address 172.16.2.2 - 172.16.2.24 < - pool
STATIC NAPT (source port translation)
Works only if source ip, source port and dest IP and dest port is specified.
vppctl snat add address 192.168.11.99 < - ext ip has to be specified
vppctl snat add static mapping tcp local 192.168.99.3 333 external 192.168.11.99 999 vrf 0
It’s possible NOT to specify a source port in CLI, but the translation does not work then.
WHAT IS MISSING IN HC
Only static 1:1 ip addr translation is implemented.
Please implement dynamic nat and NAPT.