[Edited Message Follows]

Hi,
I would like to have NAT between 1 inside interface to 2 outside interfaces.
I added 1 in NAT address to 2 out NAT addresses, i expect the decision of which 
interface to translate to, to be based on the subnet.

Configuration:
set interface ip address TenGigabitEthernet6/0/0           20.20.20.1/24
set interface ip address TenGigabitEthernet6/0/1.300    30.30.30.1/24
set interface ip address TenGigabitEthernet6/0/0.400    40.40.40.1/24
nat44 add address 30.30.30.1
nat44 add address 40.40.40.1
set int nat44 in TenGigabitEthernet6/0/0 out TenGigabitEthernet6/0/1.300
set int nat44 in TenGigabitEthernet6/0/0 out TenGigabitEthernet6/0/1.400

Example:
If i send a packet from *20.20.20.1* to *30.30.30.2* i expect the source IP 
address to translate to *30.30.30.1*
If i send a packet from *20.20.20.1* to *40.40.40.2* i expect the source IP 
address to translate to *40.40.40.1*

But the chosen out NAT address seems to be always the last one i configured.
I think in function nat_alloc_addr_and_port_default the choice is made, but it 
doesn't take into consideration the destination IP and just translates into the 
last configured
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13423): https://lists.fd.io/g/vpp-dev/message/13423
Mute This Topic: https://lists.fd.io/mt/32283582/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to