Works: vpp# nat44 enable sessions 1000000 users 1000 vpp# set interface nat44 in GigabitEthernet0/5/0 out GigabitEthernet0/4/0 vpp# Thank you very much. ________________________________ От: Elias Rudberg <elias.rudb...@bahnhof.net> Отправлено: 7 февраля 2021 г. 11:19 Кому: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io>; format_...@outlook.com <format_...@outlook.com> Тема: Re: [vpp-dev] How to add in/out interfaces in NAT44 in vpp21
I think that with the latest VPP versions you need to use the "nat44 enable" command first, for example like this: nat44 enable sessions 1000000 users 1000 where the numbers are your choices for the maximum number of sessions and users per thread. Best regards, Elias On Sun, 2021-02-07 at 09:01 +0000, Юрий Иванов wrote: > Hi, > I'm trying to configure NAT44 feature on latest vpp: > vpp# show version > vpp v21.01-release built by root on fcb1bae62b24 at 2021-01- > 27T16:06:22 > > > Can someone help to determine why adding interfaces not working like > it should > vpp# set interface nat44 in GigabitEthernet0/5/0 out > GigabitEthernet0/4/0 > set interface nat44: add GigabitEthernet0/5/0 failed > > My config: > set interface ip address GigabitEthernet0/4/0 1.0.0.1/24 > set interface ip address GigabitEthernet0/5/0 10.0.1.1/24 > > set interface state GigabitEthernet0/4/0 up > set interface state GigabitEthernet0/5/0 up > > nat44 forwarding enable > nat44 add address 1.0.0.2-1.0.0.100 > vpp# show interface > Name Idx State MTU (L3/IP4/IP6/MPLS) > Counter Count > GigabitEthernet0/4/0 1 up 9000/0/0/0 > rx packets 9 > > rx bytes 3339 > > drops 9 > GigabitEthernet0/5/0 2 up 9000/0/0/0 > local0 0 down 0/0/0/0 > > Maybe somehting has changed once more, because version 17-18 was > working as expected? > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18690): https://lists.fd.io/g/vpp-dev/message/18690 Mute This Topic: https://lists.fd.io/mt/80449289/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-