FD.io VPP  v21.01.1
Vector Packet Processing
src/plugins/nat/nat66

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/nat66_cli.c line 289)

Implementation: nat66_add_del_static_mapping_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/nat66_cli.c line 257)

Implementation: nat66_interface_feature_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/nat66_cli.c line 274)

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/nat66_cli.c line 307)

Implementation: nat66_show_static_mappings_command_fn.