Nat66 cli reference

nat66

nat66 <enable [outside-vrf <vrf-id>]>|disable
nat66

To enable NAT66 plugin
 vpp# nat66 enable
To disable NAT66 plugin
 vpp# nat66 disable
To enable NAT66 plugin with outside-vrf id 10
 vpp# nat66 enable outside-vrf 10

Declaration: nat66_enable_disable_command src/plugins/nat/nat66/nat66_cli.c line 340

Implementation: nat66_enable_disable_command_fn

nat66 add static mapping

nat66 add static mapping local <ip6-addr> external <ip6-addr> [vfr <table-id>] [del]
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: show_nat66_add_del_static_mapping_command src/plugins/nat/nat66/nat66_cli.c line 388

Implementation: nat66_add_del_static_mapping_command_fn

set interface nat66

set interface nat66 in|out <intfc> [del]
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: set_interface_nat66_command src/plugins/nat/nat66/nat66_cli.c line 356

Implementation: nat66_interface_feature_command_fn

show nat66 interfaces

show nat66 interfaces
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: show_nat66_interfaces_command src/plugins/nat/nat66/nat66_cli.c line 373

Implementation: nat66_show_interfaces_command_fn

show nat66 static mappings

show nat66 static mappings
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: show_nat66_static_mappings_command src/plugins/nat/nat66/nat66_cli.c line 406

Implementation: nat66_show_static_mappings_command_fn