Hi, I've got basic nat setup in a lab which works as expected except extarnat IP address allocation.
My clients, behind NAT, has addresses: vpp# show ip neighbors Time IP Flags Ethernet Interface 1421.5929 10.0.1.30 D 00:50:79:66:68:00 GigabitEthernet0/5/0 1424.3609 10.0.1.55 D 00:50:79:66:68:02 GigabitEthernet0/5/0 1423.1650 10.0.1.41 D 00:50:79:66:68:01 GigabitEthernet0/5/0 1389.2929 10.0.1.20 D 00:50:79:66:68:04 GigabitEthernet0/5/0 1377.1449 10.0.1.2 D 00:50:79:66:68:03 GigabitEthernet0/5/0 All can reach external 1.0.0.2 IP which looks good, but for all client external address is 1.0.0.100 (the last IP in a range). I think it will be more better to randomly select different address in range like nftables do with this configuration stranza: "ip saddr 10.0.0.0/8 oif "vlan2" snat to 1.0.0.2-1.0.0.100 persistent" After changing vpp# nat addr-port-assignment-alg map-e psid 10 psid-offset 6 psid-len 6 the only difference that external address become 1.0.0.1 for all clients. I of cource can map host to external address with: vpp# nat44 add static mapping local 10.0.1.2 external 1.0.0.10 But with 30 thousands clients it will very strange idea to map every host route manually.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18691): https://lists.fd.io/g/vpp-dev/message/18691 Mute This Topic: https://lists.fd.io/mt/80449794/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-