FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
src/plugins/nat

dslite add pool address

Summary/usage

dslite add pool address <ip4-range-start> [- <ip4-range-end>]  [del].

Description

Example usage
vpp# dslite add pool address
Add/delete DS-Lite pool address for AFTR element.
To add DS-Lite pool address use:
 vpp# dslite add pool address 10.1.1.3
To add DS-Lite pool address range use:
 vpp# dslite add pool address 10.1.1.5 - 10.1.1.7

Declaration and implementation

Declaration: dslite_add_pool_address_command (src/plugins/nat/dslite_cli.c line 301)

Implementation: dslite_add_del_pool_addr_command_fn.

dslite set aftr-tunnel-endpoint-address

Summary/usage

dslite set aftr-tunnel-endpoint-address <ip6>.

Description

Example usage
vpp# dslite set aftr-tunnel-endpoint-address
Set IPv6 tunnel endpoint address of the AFTR element.
To set AFTR tunnel endpoint address use:
vpp# dslite set aftr-tunnel-endpoint-address 2001:db8:85a3::8a2e:370:1

Declaration and implementation

Declaration: dslite_set_aftr_tunnel_addr (src/plugins/nat/dslite_cli.c line 334)

Implementation: dslite_set_aftr_tunnel_addr_command_fn.

dslite set b4-tunnel-endpoint-address

Summary/usage

dslite set b4-tunnel-endpoint-address <ip6>.

Description

Example usage
vpp# dslite set b4-tunnel-endpoint-address
Set IPv6 tunnel endpoint address of the B4 element.
To set B4 tunnel endpoint address use:
vpp# dslite set b4-tunnel-endpoint-address 2001:db8:62aa::375e:f4c1:1

Declaration and implementation

Declaration: dslite_set_b4_tunnel_addr (src/plugins/nat/dslite_cli.c line 362)

Implementation: dslite_set_b4_tunnel_addr_command_fn.

nat addr-port-assignment-alg

Summary/usage

nat addr-port-assignment-alg <alg-name> [<alg-params>].

Description

Example usage
vpp# nat addr-port-assignment-alg
Set address and port assignment algorithm
For the MAP-E CE limit port choice based on PSID use:
 vpp# nat addr-port-assignment-alg map-e psid 10 psid-offset 6 psid-len 6
For port range use:
 vpp# nat addr-port-assignment-alg port-range <start-port> - <end-port>
To set standard (default) address and port assignment algorithm use:
 vpp# nat addr-port-assignment-alg default

Declaration and implementation

Declaration: nat44_set_alloc_addr_and_port_alg_command (src/plugins/nat/nat44_cli.c line 1829)

Implementation: nat44_set_alloc_addr_and_port_alg_command_fn.

nat ipfix logging

Summary/usage

nat ipfix logging [domain <domain-id>] [src-port <port>] [disable].

Description

Example usage
vpp# snat ipfix logging
To enable NAT IPFIX logging use:
 vpp# nat ipfix logging
To set IPFIX exporter use:
 vpp# set ipfix exporter collector 10.10.10.3 src 10.10.10.1

Declaration and implementation

Declaration: snat_ipfix_logging_enable_disable_command (src/plugins/nat/nat44_cli.c line 1811)

Implementation: snat_ipfix_logging_enable_disable_command_fn.

nat mss-clamping

Summary/usage

nat mss-clamping <mss-value>|disable.

Description

Example usage
vpp# nat mss-clamping
Set TCP MSS rewriting configuration
To enable TCP MSS rewriting use:
 vpp# nat mss-clamping 1452
To disbale TCP MSS rewriting use:
 vpp# nat mss-clamping disable

### Declaration and implementation

Declaration: nat_set_mss_clamping_command (src/plugins/nat/nat44_cli.c line 1856)

Implementation: nat_set_mss_clamping_command_fn.

nat virtual-reassembly

### Summary/usage

    nat virtual-reassembly ip4|ip6 [max-reassemblies <n>] [max-fragments <n>] [timeout <sec>] [enable|disable].

### Declaration and implementation

Declaration: nat_reass_command (src/plugins/nat/nat_reass.c line 816)

Implementation: nat_reass_command_fn.

nat44 add address

### Summary/usage

    nat44 add address <ip4-range-start> [- <ip4-range-end>] [tenant-vrf <vrf-id>] [twice-nat] [del].

### Description

Example usage
vpp# nat44 add address
Add/delete NAT44 pool address.
To add NAT44 pool address use:
 vpp# nat44 add address 172.16.1.3
 vpp# nat44 add address 172.16.2.2 - 172.16.2.24
To add NAT44 pool address for specific tenant (identified by VRF id) use:
 vpp# nat44 add address 172.16.1.3 tenant-vrf 10

Declaration and implementation

Declaration: add_address_command (src/plugins/nat/nat44_cli.c line 1896)

Implementation: add_address_command_fn.

nat44 add identity mapping

Summary/usage

nat44 add identity mapping <interface>|<ip4-addr> [<protocol> <port>] [vrf <table-id>] [del].

Description

Example usage
vpp# nat44 add identity mapping
Identity mapping translate an IP address to itself.
To create identity mapping for address 10.0.0.3 port 6303 for TCP protocol
use:
 vpp# nat44 add identity mapping 10.0.0.3 tcp 6303
To create identity mapping for address 10.0.0.3 use:
 vpp# nat44 add identity mapping 10.0.0.3
To create identity mapping for DHCP addressed interface use:
 vpp# nat44 add identity mapping GigabitEthernet0/a/0 tcp 3606

Declaration and implementation

Declaration: add_identity_mapping_command (src/plugins/nat/nat44_cli.c line 2002)

Implementation: add_identity_mapping_command_fn.

nat44 add interface address

Summary/usage

nat44 add interface address <interface> [twice-nat] [del].

Description

Example usage
vpp# nat44 add interface address
Use NAT44 pool address from specific interfce
To add NAT44 pool address from specific interface use:
 vpp# nat44 add interface address GigabitEthernet0/8/0

Declaration and implementation

Declaration: snat_add_interface_address_command (src/plugins/nat/nat44_cli.c line 2076)

Implementation: snat_add_interface_address_command_fn.

nat44 add load-balancing back-end

Summary/usage

nat44 add load-balancing back-end protocol tcp|udp external <addr>:<port> local <addr>:<port> [vrf <table-id>] probability <n> [del].

Description

Example usage
vpp# nat44 add load-balancing static mapping
Modify service load balancing using NAT44
To add new back-end server 10.100.10.30:8080 for service load balancing
static mapping with external IP address 1.2.3.4 and TCP port 80 use:
 vpp# nat44 add load-balancing back-end protocol tcp external 1.2.3.4:80 local 10.100.10.30:8080 probability 25

Declaration and implementation

Declaration: add_lb_backend_command (src/plugins/nat/nat44_cli.c line 2038)

Implementation: add_lb_backend_command_fn.

nat44 add load-balancing static mapping

Summary/usage

nat44 add load-balancing static mapping protocol tcp|udp external <addr>:<port> local <addr>:<port> [vrf <table-id>] probability <n> [twice-nat|self-twice-nat] [out2in-only] [affinity <timeout-seconds>] [del].

Description

Example usage
vpp# nat44 add load-balancing static mapping
Service load balancing using NAT44
To add static mapping with load balancing for service with external IP
address 1.2.3.4 and TCP port 80 and mapped to 2 local servers
10.100.10.10:8080 and 10.100.10.20:8080 with probability 80% resp. 20% use:
 vpp# nat44 add load-balancing static mapping protocol tcp external 1.2.3.4:80 local 10.100.10.10:8080 probability 80 local 10.100.10.20:8080 probability 20

Declaration and implementation

Declaration: add_lb_static_mapping_command (src/plugins/nat/nat44_cli.c line 2019)

Implementation: add_lb_static_mapping_command_fn.

nat44 add static mapping

Summary/usage

nat44 add static mapping tcp|udp|icmp local <addr> [<port>] external <addr> [<port>] [vrf <table-id>] [twice-nat|self-twice-nat] [out2in-only] [del].

Description

Example usage
vpp# nat44 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 for TCP protocol use:
 vpp# nat44 add static mapping tcp local 10.0.0.3 6303 external 4.4.4.4 3606
If not runnig "static mapping only" NAT plugin mode use before:
 vpp# nat44 add address 4.4.4.4
To create static mapping between local and external address use:
 vpp# nat44 add static mapping local 10.0.0.3 external 4.4.4.4

Declaration and implementation

Declaration: add_static_mapping_command (src/plugins/nat/nat44_cli.c line 1980)

Implementation: add_static_mapping_command_fn.

nat44 del session

Summary/usage

nat44 del session in|out <addr>:<port> tcp|udp|icmp [vrf <id>] [external-host <addr>:<port>].

Description

Example usage
vpp# nat44 del session
To administratively delete NAT44 session by inside address and port use:
 vpp# nat44 del session in 10.0.0.3:6303 tcp
To administratively delete NAT44 session by outside address and port use:
 vpp# nat44 del session out 1.0.0.3:6033 udp

Declaration and implementation

Declaration: nat44_del_session_command (src/plugins/nat/nat44_cli.c line 2120)

Implementation: nat44_del_session_command_fn.

nat44 deterministic add

Summary/usage

nat44 deterministic add in <addr>/<plen> out <addr>/<plen> [del].

Description

Example usage
vpp# nat44 deterministic add
Create bijective mapping of inside address to outside address and port range
pairs, with the purpose of enabling deterministic NAT to reduce logging in
CGN deployments.
To create deterministic mapping between inside network 10.0.0.0/18 and
outside network 1.1.1.0/30 use:
# vpp# nat44 deterministic add in 10.0.0.0/18 out 1.1.1.0/30

Declaration and implementation

Declaration: snat_det_map_command (src/plugins/nat/nat44_cli.c line 2155)

Implementation: snat_det_map_command_fn.

nat44 deterministic close session in

Summary/usage

nat44 deterministic close session in <in_addr>:<in_port> <ext_addr>:<ext_port>.

Description

Example usage
vpp# nat44 deterministic close session in
Close session using inside ip address and port
and external ip address and port, use:
 vpp# nat44 deterministic close session in 3.3.3.3:3487 2.2.2.2:2387

Declaration and implementation

Declaration: snat_det_close_session_in_command (src/plugins/nat/nat44_cli.c line 2250)

Implementation: snat_det_close_session_in_fn.

nat44 deterministic close session out

Summary/usage

nat44 deterministic close session out <out_addr>:<out_port> <ext_addr>:<ext_port>.

Description

Example usage
vpp# nat44 deterministic close session out
Close session using outside ip address and port
and external ip address and port, use:
 vpp# nat44 deterministic close session out 1.1.1.1:1276 2.2.2.2:2387

Declaration and implementation

Declaration: snat_det_close_sesion_out_command (src/plugins/nat/nat44_cli.c line 2235)

Implementation: snat_det_close_session_out_fn.

nat44 deterministic forward

Summary/usage

nat44 deterministic forward <addr>.

Description

Example usage
vpp# nat44 deterministic forward
Return outside address and port range from inside address for deterministic
NAT.
To obtain outside address and port of inside host use:
 vpp# nat44 deterministic forward 10.0.0.2
 1.1.1.0:<1054-1068>

Declaration and implementation

Declaration: snat_det_forward_command (src/plugins/nat/nat44_cli.c line 2189)

Implementation: snat_det_forward_command_fn.

nat44 deterministic reverse

Summary/usage

nat44 deterministic reverse <addr>:<port>.

Description

Example usage
vpp# nat44 deterministic reverse
Return inside address from outside address and port for deterministic NAT.
To obtain inside host address from outside address and port use:
 #vpp nat44 deterministic reverse 1.1.1.1:1276
 10.0.16.16

Declaration and implementation

Declaration: snat_det_reverse_command (src/plugins/nat/nat44_cli.c line 2204)

Implementation: snat_det_reverse_command_fn.

nat44 forwarding

Summary/usage

nat44 forwarding enable|disable.

Description

Example usage
vpp# nat44 forwarding
Enable or disable forwarding
Forward packets which don't match existing translation
or static mapping instead of dropping them.
To enable forwarding, use:
 vpp# nat44 forwarding enable
To disable forwarding, use:
 vpp# nat44 forwarding disable

Declaration and implementation

Declaration: snat_forwarding_set_command (src/plugins/nat/nat44_cli.c line 2138)

Implementation: snat_forwarding_set_command_fn.

nat64 add interface address

Summary/usage

nat64 add interface address <interface> [del].

Description

Example usage
vpp# nat64 add interface address
Add/delete NAT64 pool address from specific (DHCP addressed) interface.
To add NAT64 pool address from specific interface use:
 vpp# nat64 add interface address GigabitEthernet0/8/0

Declaration and implementation

Declaration: nat64_add_interface_address_command (src/plugins/nat/nat64_cli.c line 916)

Implementation: nat64_add_interface_address_command_fn.

nat64 add pool address

Summary/usage

nat64 add pool address <ip4-range-start> [- <ip4-range-end>] [tenant-vrf <vrf-id>] [del].

Description

Example usage
vpp# nat64 add pool address
Add/delete NAT64 pool address.
To add single NAT64 pool address use:
 vpp# nat64 add pool address 10.1.1.10
To add NAT64 pool address range use:
 vpp# nat64 add pool address 10.1.1.2 - 10.1.1.5
To add NAT64 pool address for specific tenant use:
 vpp# nat64 add pool address 10.1.1.100 tenant-vrf 100

Declaration and implementation

Declaration: nat64_add_pool_address_command (src/plugins/nat/nat64_cli.c line 748)

Implementation: nat64_add_del_pool_addr_command_fn.

nat64 add prefix

Summary/usage

nat64 add prefix <ip6-prefix>/<plen> [tenant-vrf <vrf-id>] [del] [interface <interface].

Description

Example usage
vpp# nat64 add prefix
Set NAT64 prefix for generating IPv6 representations of IPv4 addresses.
To set NAT64 global prefix use:
 vpp# nat64 add prefix 2001:db8::/32
To set NAT64 prefix for specific tenant use:
 vpp# nat64 add prefix 2001:db8:122:300::/56 tenant-vrf 10

Declaration and implementation

Declaration: nat64_add_del_prefix_command (src/plugins/nat/nat64_cli.c line 884)

Implementation: nat64_add_del_prefix_command_fn.

nat64 add static bib

Summary/usage

nat64 add static bib <ip6-addr> <port> <ip4-addr> <port> tcp|udp|icmp [vfr <table-id>] [del].

Description

Example usage
vpp# nat64 add static bib
Add/delete NAT64 static BIB entry.
To create NAT64 satatic BIB entry use:
 vpp# nat64 add static bib 2001:db8:c000:221:: 1234 10.1.1.3 5678 tcp
 vpp# nat64 add static bib 2001:db8:c000:221:: 1234 10.1.1.3 5678 udp vrf 10

Declaration and implementation

Declaration: nat64_add_del_static_bib_command (src/plugins/nat/nat64_cli.c line 813)

Implementation: nat64_add_del_static_bib_command_fn.

nat66 add static mapping

Summary/usage

nat66 add static mapping local <ip6-addr> external <ip6-addr> [vfr <table-id>] [del].

Description

Example usage
vpp# nat66 add static mapping
Add/delete NAT66 static mapping entry.
To add NAT66 static mapping entry use:
 vpp# nat66 add static mapping local fd01:1::4 external 2001:db8:c000:223::
 vpp# nat66 add static mapping local fd01:1::2 external 2001:db8:c000:221:: vrf 10

Declaration and implementation

Declaration: show_nat66_add_del_static_mapping_command (src/plugins/nat/nat66_cli.c line 290)

Implementation: nat66_add_del_static_mapping_command_fn.

set interface nat44

Summary/usage

set interface nat44 in <intfc> out <intfc> [output-feature] [del].

Description

Example usage
vpp# set interface nat44
Enable/disable NAT44 feature on the interface.
To enable NAT44 feature with local network interface use:
 vpp# set interface nat44 in GigabitEthernet0/8/0
To enable NAT44 feature with external network interface use:
 vpp# set interface nat44 out GigabitEthernet0/a/0

Declaration and implementation

Declaration: set_interface_snat_command (src/plugins/nat/nat44_cli.c line 1943)

Implementation: snat_feature_command_fn.

set interface nat64

Summary/usage

set interface nat64 in|out <intfc> [del].

Description

Example usage
vpp# set interface nat64
Enable/disable NAT64 feature on the interface.
To enable NAT64 feature with local (IPv6) network interface
GigabitEthernet0/8/0 and external (IPv4) network interface
GigabitEthernet0/a/0 use:
 vpp# set interface nat64 in GigabitEthernet0/8/0 out GigabitEthernet0/a/0

Declaration and implementation

Declaration: set_interface_nat64_command (src/plugins/nat/nat64_cli.c line 781)

Implementation: nat64_interface_feature_command_fn.

set interface nat66

Summary/usage

set interface nat66 in|out <intfc> [del].

Description

Example usage
vpp# set interface nat66
Enable/disable NAT66 feature on the interface.
To enable NAT66 feature with local (IPv6) network interface
GigabitEthernet0/8/0 and external (IPv4) network interface
GigabitEthernet0/a/0 use:
 vpp# set interface nat66 in GigabitEthernet0/8/0 out GigabitEthernet0/a/0

Declaration and implementation

Declaration: set_interface_nat66_command (src/plugins/nat/nat66_cli.c line 258)

Implementation: nat66_interface_feature_command_fn.

set nat timeout

Summary/usage

set nat timeout [udp <sec> | tcp-established <sec> tcp-transitory <sec> | icmp <sec> | reset].

Description

Example usage
vpp# set nat timeout
Set values of timeouts for NAT sessions (in seconds), use:
 vpp# set nat timeout udp 120 tcp-established 7500 tcp-transitory 250 icmp 90
To reset default values use:
 vpp# set nat44 deterministic timeout reset

Declaration and implementation

Declaration: set_timeout_command (src/plugins/nat/nat44_cli.c line 1777)

Implementation: set_timeout_command_fn.

set nat workers

Summary/usage

set nat workers <workers-list>.

Description

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

Declaration and implementation

Declaration: set_workers_command (src/plugins/nat/nat44_cli.c line 1746)

Implementation: set_workers_command_fn.

show dslite aftr-tunnel-endpoint-address

Summary/usage

show dslite aftr-tunnel-endpoint-address.

Description

Example usage
vpp# show dslite aftr-tunnel-endpoint-address
Show IPv6 tunnel endpoint address of the AFTR element.
vpp# show dslite aftr-tunnel-endpoint-address
2001:db8:85a3::8a2e:370:1

Declaration and implementation

Declaration: dslite_show_aftr_ip6_addr (src/plugins/nat/dslite_cli.c line 348)

Implementation: dslite_show_aftr_ip6_addr_command_fn.

show dslite b4-tunnel-endpoint-address

Summary/usage

show dslite b4-tunnel-endpoint-address.

Description

Example usage
vpp# show dslite b4-tunnel-endpoint-address
Show IPv6 tunnel endpoint address of the B4 element.
vpp# show dslite b4-tunnel-endpoint-address
2001:db8:62aa::375e:f4c1:1

Declaration and implementation

Declaration: dslite_show_b4_ip6_addr (src/plugins/nat/dslite_cli.c line 376)

Implementation: dslite_show_b4_ip6_addr_command_fn.

show dslite pool

Summary/usage

show dslite pool.

Description

Example usage
vpp# show dslite pool
Show DS-lite pool addresses.
vpp# show dslite pool
DS-Lite pool:
10.0.0.3
10.0.0.5
10.0.0.6
10.0.0.7

Declaration and implementation

Declaration: show_dslite_pool_command (src/plugins/nat/dslite_cli.c line 320)

Implementation: dslite_show_pool_command_fn.

show dslite sessions

Summary/usage

show dslite sessions.

Description

Example usage
vpp# show dslite sessions
Show DS-Lite sessions.
vpp# show dslite sessions
B4 fd01:2::2 1 sessions
  in 192.168.1.1:20000 out 10.0.0.3:16253 protocol udp
    total pkts 2, total bytes 136
B4 fd01:2::3 2 sessions
  in 192.168.1.1:20001 out 10.0.0.3:18995 protocol tcp
    total pkts 2, total bytes 160
  in 192.168.1.1:4000 out 10.0.0.3:53893 protocol icmp
    total pkts 2, total bytes 136

Declaration and implementation

Declaration: dslite_show_sessions (src/plugins/nat/dslite_cli.c line 397)

Implementation: dslite_show_sessions_command_fn.

show nat addr-port-assignment-alg

Summary/usage

show nat addr-port-assignment-alg.

Description

Example usage
vpp# show nat addr-port-assignment-alg
Show address and port assignment algorithm

Declaration and implementation

Declaration: nat44_show_alloc_addr_and_port_alg_command (src/plugins/nat/nat44_cli.c line 1841)

Implementation: nat44_show_alloc_addr_and_port_alg_command_fn.

show nat mss-clamping

Summary/usage

show nat mss-clamping.

Description

Example usage
vpp# nat mss-clamping
Show TCP MSS rewriting configuration
### Declaration and implementation

Declaration: nat_show_mss_clamping_command (src/plugins/nat/nat44_cli.c line 1867)

Implementation: nat_show_mss_clamping_command_fn.

show nat timeouts

### Summary/usage

show nat timeouts.

### Description

Example usage
vpp# show nat timeouts
Show values of timeouts for NAT sessions.
vpp# show nat timeouts
udp timeout: 300sec
tcp-established timeout: 7440sec
tcp-transitory timeout: 240sec
icmp timeout: 60sec

Declaration and implementation

Declaration: nat_show_timeouts_command (src/plugins/nat/nat44_cli.c line 1796)

Implementation: nat_show_timeouts_command_fn.

show nat virtual-reassembly

Summary/usage

show nat virtual-reassembly.

Declaration and implementation

Declaration: show_nat_reass_command (src/plugins/nat/nat_reass.c line 824)

Implementation: show_nat_reass_command_fn.

show nat workers

Summary/usage

show nat workers.

Description

Example usage
vpp# show nat workers
Show NAT workers.
 vpp# show nat workers:
 2 workers
   vpp_wk_0
   vpp_wk_1

Declaration and implementation

Declaration: nat_show_workers_command (src/plugins/nat/nat44_cli.c line 1762)

Implementation: nat_show_workers_commnad_fn.

show nat44 addresses

Summary/usage

show nat44 addresses.

Description

Example usage
vpp# show nat44 addresses
Show NAT44 pool addresses.
vpp# show nat44 addresses
NAT44 pool addresses:
172.16.2.2
  tenant VRF independent
  10 busy udp ports
  0 busy tcp ports
  0 busy icmp ports
172.16.1.3
  tenant VRF: 10
  0 busy udp ports
  2 busy tcp ports
  0 busy icmp ports
NAT44 twice-nat pool addresses:
10.20.30.72
  tenant VRF independent
  0 busy udp ports
  0 busy tcp ports
  0 busy icmp ports

Declaration and implementation

Declaration: nat44_show_addresses_command (src/plugins/nat/nat44_cli.c line 1927)

Implementation: nat44_show_addresses_command_fn.

show nat44 deterministic mappings

Summary/usage

show nat44 deterministic mappings.

Description

Example usage
{show nat44 deterministic mappings} Show NAT44 deterministic mappings vpp# show nat44 deterministic mappings NAT44 deterministic mappings: in 10.0.0.0/24 out 1.1.1.1/32 outside address sharing ratio: 256 number of ports per inside host: 252 sessions number: 0

Declaration and implementation

Declaration: nat44_det_show_mappings_command (src/plugins/nat/nat44_cli.c line 2173)

Implementation: nat44_det_show_mappings_command_fn.

show nat44 deterministic sessions

Summary/usage

show nat44 deterministic sessions.

Description

Example usage
vpp# show nat44 deterministic sessions
Show NAT44 deterministic sessions.
vpp# show nat44 deterministic sessions
NAT44 deterministic sessions:
  in 10.0.0.3:3005 out 1.1.1.2:1146 external host 172.16.1.2:3006 state: udp-active expire: 306
  in 10.0.0.3:3000 out 1.1.1.2:1141 external host 172.16.1.2:3001 state: udp-active expire: 306
  in 10.0.0.4:3005 out 1.1.1.2:1177 external host 172.16.1.2:3006 state: udp-active expire: 306

Declaration and implementation

Declaration: nat44_det_show_sessions_command (src/plugins/nat/nat44_cli.c line 2221)

Implementation: nat44_det_show_sessions_command_fn.

show nat44 hash tables

Summary/usage

show nat44 hash tables [detail|verbose].

Description

Example usage
vpp# show nat44 hash tables
Show NAT44 hash tables

Declaration and implementation

Declaration: nat44_show_hash (src/plugins/nat/nat44_cli.c line 1879)

Implementation: nat44_show_hash_commnad_fn.

show nat44 interface address

Summary/usage

show nat44 interface address.

Description

Example usage
vpp# show nat44 interface address
Show NAT44 pool address interfaces
vpp# show nat44 interface address
NAT44 pool address interfaces:
 GigabitEthernet0/a/0
NAT44 twice-nat pool address interfaces:
 GigabitEthernet0/8/0

Declaration and implementation

Declaration: nat44_show_interface_address_command (src/plugins/nat/nat44_cli.c line 2093)

Implementation: nat44_show_interface_address_command_fn.

show nat44 interfaces

Summary/usage

show nat44 interfaces.

Description

Example usage
vpp# show nat44 interfaces
Show interfaces with NAT44 feature.
vpp# show nat44 interfaces
NAT44 interfaces:
 GigabitEthernet0/8/0 in
 GigabitEthernet0/a/0 out

Declaration and implementation

Declaration: nat44_show_interfaces_command (src/plugins/nat/nat44_cli.c line 1960)

Implementation: nat44_show_interfaces_command_fn.

show nat44 sessions

Summary/usage

show nat44 sessions [detail].

Description

Example usage
vpp# show nat44 sessions
Show NAT44 sessions.

Declaration and implementation

Declaration: nat44_show_sessions_command (src/plugins/nat/nat44_cli.c line 2105)

Implementation: nat44_show_sessions_command_fn.

show nat44 static mappings

Summary/usage

show nat44 static mappings.

Description

Example usage
vpp# show nat44 static mappings
Show NAT44 static mappings.
vpp# show nat44 static mappings
NAT44 static mappings:
 local 10.0.0.3 external 4.4.4.4 vrf 0
 tcp local 192.168.0.4:6303 external 4.4.4.3:3606 vrf 0
 tcp vrf 0 external 1.2.3.4:80  out2in-only
  local 10.100.10.10:8080 probability 80
  local 10.100.10.20:8080 probability 20
 tcp local 10.100.3.8:8080 external 169.10.10.1:80 vrf 0 twice-nat
 tcp local 10.0.0.10:3603 external GigabitEthernet0/a/0:6306 vrf 10

Declaration and implementation

Declaration: nat44_show_static_mappings_command (src/plugins/nat/nat44_cli.c line 2062)

Implementation: nat44_show_static_mappings_command_fn.

show nat64 bib

Summary/usage

show nat64 bib all|tcp|udp|icmp|unknown.

Description

Example usage
vpp# show nat64 bib
Show NAT64 BIB entries.
To show NAT64 TCP BIB entries use:
 vpp# show nat64 bib tcp
 NAT64 tcp BIB:
  fd01:1::2 6303 10.0.0.3 62303 tcp vrf 0 dynamic 1 sessions
  2001:db8:c000:221:: 1234 10.1.1.3 5678 tcp vrf 0 static 2 sessions
To show NAT64 UDP BIB entries use:
 vpp# show nat64 bib udp
 NAT64 udp BIB:
  fd01:1::2 6304 10.0.0.3 10546 udp vrf 0 dynamic 10 sessions
  2001:db8:c000:221:: 1234 10.1.1.3 5678 udp vrf 10 static 0 sessions
To show NAT64 ICMP BIB entries use:
 vpp# show nat64 bib icmp
 NAT64 icmp BIB:
  fd01:1::2 6305 10.0.0.3 63209 icmp vrf 10 dynamic 1 sessions

Declaration and implementation

Declaration: show_nat64_bib_command (src/plugins/nat/nat64_cli.c line 840)

Implementation: nat64_show_bib_command_fn.

show nat64 interfaces

Summary/usage

show nat64 interfaces.

Description

Example usage
vpp# show nat64 interfaces
Show interfaces with NAT64 feature.
To show interfaces with NAT64 feature use:
 vpp# show nat64 interfaces
 NAT64 interfaces:
  GigabitEthernet0/8/0 in
  GigabitEthernet0/a/0 out

Declaration and implementation

Declaration: show_nat64_interfaces_command (src/plugins/nat/nat64_cli.c line 798)

Implementation: nat64_show_interfaces_command_fn.

show nat64 pool

Summary/usage

show nat64 pool.

Description

Example usage
vpp# show nat64 pool
Show NAT64 pool.
 vpp# show nat64 pool
 NAT64 pool:
  10.1.1.3 tenant VRF: 0
  10.1.1.10 tenant VRF: 10

Declaration and implementation

Declaration: show_nat64_pool_command (src/plugins/nat/nat64_cli.c line 765)

Implementation: nat64_show_pool_command_fn.

show nat64 prefix

Summary/usage

show nat64 prefix.

Description

Example usage
vpp# show nat64 prefix
Show NAT64 prefix.
To show NAT64 prefix use:
 vpp# show nat64 prefix
 NAT64 prefix:
  2001:db8::/32 tenant-vrf 0
  2001:db8:122:300::/56 tenant-vrf 10

Declaration and implementation

Declaration: show_nat64_prefix_command (src/plugins/nat/nat64_cli.c line 902)

Implementation: nat64_show_prefix_command_fn.

show nat64 session table

Summary/usage

show nat64 session table all|tcp|udp|icmp|unknown.

Description

Example usage
vpp# show nat64 session table
Show NAT64 session table.
To show NAT64 TCP session table use:
 vpp# show nat64 session table tcp
 NAT64 tcp session table:
  fd01:1::2 6303 64:ff9b::ac10:202 20 10.0.0.3 62303 172.16.2.2 20 tcp vrf 0
  fd01:3::2 6303 64:ff9b::ac10:202 20 10.0.10.3 21300 172.16.2.2 20 tcp vrf 10
To show NAT64 UDP session table use:
#vpp show nat64 session table udp
NAT64 udp session table:
 fd01:1::2 6304 64:ff9b::ac10:202 20 10.0.0.3 10546 172.16.2.2 20 udp vrf 0
 fd01:3::2 6304 64:ff9b::ac10:202 20 10.0.10.3 58627 172.16.2.2 20 udp vrf 10
 fd01:1::2 1235 64:ff9b::a00:3 4023 10.0.0.3 24488 10.0.0.3 4023 udp vrf 0
 fd01:1::3 23 64:ff9b::a00:3 24488 10.0.0.3 4023 10.0.0.3 24488 udp vrf 0
To show NAT64 ICMP session table use:
#vpp show nat64 session table icmp
NAT64 icmp session table:
 fd01:1::2 64:ff9b::ac10:202 6305 10.0.0.3 172.16.2.2 63209 icmp vrf 0

Declaration and implementation

Declaration: show_nat64_st_command (src/plugins/nat/nat64_cli.c line 868)

Implementation: nat64_show_st_command_fn.

show nat66 interfaces

Summary/usage

show nat66 interfaces.

Description

Example usage
vpp# show nat66 interfaces
Show interfaces with NAT66 feature.
To show interfaces with NAT66 feature use:
 vpp# show nat66 interfaces
 NAT66 interfaces:
  GigabitEthernet0/8/0 in
  GigabitEthernet0/a/0 out

Declaration and implementation

Declaration: show_nat66_interfaces_command (src/plugins/nat/nat66_cli.c line 275)

Implementation: nat66_show_interfaces_command_fn.

show nat66 static mappings

Summary/usage

show nat66 static mappings.

Description

Example usage
vpp# show nat66 static mappings
Show NAT66 static mappings.
To show NAT66 static mappings use:
 vpp# show nat66 static mappings
 NAT66 static mappings:
  local fd01:1::4 external 2001:db8:c000:223:: vrf 0
  local fd01:1::2 external 2001:db8:c000:221:: vrf 10

Declaration and implementation

Declaration: show_nat66_static_mappings_command (src/plugins/nat/nat66_cli.c line 308)

Implementation: nat66_show_static_mappings_command_fn.