Skip to content

Option not applied: nat { translation hash buckets 1048576 } in VPP v25.10 #3649

@MaxB892

Description

@MaxB892

#Good afternoon!

I can't apply the option in startup.conf:

nat { translation hash buckets 1048576 }

There is an error in the log: Nov 28 04:25:06 nat vpp[81634]: vlib_call_all_config_functions: unknown input nat  connection hash buckets 1048576.

Although these settings are described in the documentation, I couldn't find another way to set the hash bucket size:

https://s3-docs.fd.io/vpp/26.02/configuration/reference.html#translation-hash-buckets-n

nat Section translation hash buckets Sets the number of hash buckets in each of the two in/out NAT bi-hash lookup tables. Defaults to 1024 buckets. If the NAT is indicated to be endpoint dependent, which can be set with the endpoint-dependent parameter, then this parameter sets the number of hash buckets in each of the two endpoint dependent sessions NAT bi-hash lookup tables. translation hash buckets 1024"

Version VPP:

show version vpp v25.10-release built by root on 428091060f38 at 2025-10-29T10:56:37

Full config:cat /etc/vpp/startup.conf

`
unix {
  nodaemon
  log /var/log/vpp/vpp.log
  full-coredump
  cli-listen /run/vpp/cli.sock
  gid vpp
  cli-prompt nat-vpp1
  cli-history-limit 1000
  cli-no-pager
  startup-config /etc/vpp/nat44_config.cli
}

heapsize 6G

logging {
  default-log-level info
  default-syslog-log-level info
}

statseg {
  per-node-counters on
}

api-trace {
  on
}

api-segment {
  gid vpp
  global-size 3G
}

socksvr {
  default
}

cpu {
  main-core 1
  corelist-workers 2-15
}

plugins {
  plugin dpdk_plugin.so { enable }
  plugin nat_plugin.so { enable }
  plugin flowprobe_plugin.so { enable }
}

nat {
  translation hash buckets 1048576
}

buffers {
  buffers-per-numa 512000
  default data-size 2048
  page-size default-hugepage

  numa 0 {
      buffers 512000
  }
  numa 1 {
      buffers 0
   }
}

dpdk {
  dev 0000:12:00.1 {
    name 40GEthernet_cl
    num-rx-queues 14
    num-tx-queues 14
    num-rx-desc 4096
    num-tx-desc 4096
  }

  dev 0000:12:00.0 {
    name 40GEthernet_int
    num-rx-queues 14
    num-tx-queues 14
    num-rx-desc 4096
    num-tx-desc 4096
  }

  no-multi-seg
}`

Settings CG NAT:
cat /etc/vpp/nat44_config.cli

`set interface state 40GEthernet_cl up
set interface state 40GEthernet_int up

set interface mtu packet 1500 40GEthernet_cl
set interface mtu packet 1500 40GEthernet_int

set interface ip address 40GEthernet_cl 10.255.243.248/28

set interface ip address 40GEthernet_int 10.255.243.202/30

nat44 plugin enable sessions 500000
set nat workers 0-13
set nat timeout udp 300 tcp-established 600 tcp-transitory 240 icmp 30
set interface nat44 in 40GEthernet_cl out 40GEthernet_int
nat44 add address 30.52.214.1-30.52.215.254

ip route add 10.0.0.0/8 via 10.255.243.253 40GEthernet_cl
ip route add 192.168.0.0/16 via 10.255.243.253 40GEthernet_cl
ip route add 172.16.0.0/12 via 10.255.243.253 40GEthernet_cl
ip route add 30.52.192.0/19 via 10.255.243.253 40GEthernet_cl
ip route add 0.0.0.0/0 via 10.255.243.201 40GEthernet_int
#ip route add 30.52.214.0/23 via drop
ip route add 224.0.0.0/4 via drop
ip route add 169.254.0.0/16 via drop

ip neighbor 40GEthernet_cl 10.255.243.253 00:2a:10:fe:eb:eb
ip neighbor 40GEthernet_int 10.255.243.201 f0:7c:c7:0d:1f:fa

set ipfix exporter collector 10.224.5.199 port 2055 src 10.255.243.248 path-mtu 1450 template-interval 20
nat ipfix logging enable`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions