Hi,

I'm trying to ping, and I observe that there is a mismatch between the
interface taken by the packet to go out and the source IP in the packet
(when there are ecmp routes).
The issue is that when I try to ping, and there are ECMP routes, the
interface it is going out and the source IP value filled in the IP header
is different, and also packet is not going out of the desired interface, if
I use the "source" option in ping.(even though IP is correct).


*Suppose, there are two sub-interfaces configured this way:*
TwentyFiveGEthernet0/7/0.13 (up):
  L3 10.10.10.1/29 ip4 table-id 1 fib-idx 1

TwentyFiveGEthernet0/8/0.14 (up):
  L3 10.10.10.17/29 ip4 table-id 1 fib-idx 1

*And hardware Addresses are this way:*

TwentyFiveGEthernet0/7/0           3     up   TwentyFiveGEthernet0/7/0
  Link speed: 25 Gbps
  Ethernet address fa:16:3e:xx:xx:x1

  TwentyFiveGEthernet0/8/0           4     up   TwentyFiveGEthernet0/8/0
  Link speed: 25 Gbps
  Ethernet address fa:16:3e:xx:xx:xx




*  show ip fib output is as follows:*  0.0.0.0/0
  unicast-ip4-chain
    [@0]: dpo-load-balance: [proto:ip4 index:31 buckets:2 uRPF:199 to:[0:0]]
    [0] [@5]: ipv4 via 172.19.171.113 TwentyFiveGEthernet0/7/0.1328:
mtu:1500 next:6 a47b2cf5dbf9fa163ecda406810005300800
    [1] [@5]: ipv4 via 172.19.171.121 TwentyFiveGEthernet0/8/0.1329:
mtu:1500 next:7 a47b2cfaf0edfa163eb0de2f810005310800


  Now, suppose I ping using interface TwentyFiveGEthernet0/7/0.13, [ *ping
8.8.8.8 source TwentyFiveGEthernet0/7/0.13* ]
  it is filling the *IP of that interface which is 10.10.10.1*, but
the* outgoing
packet is going out of interface TwentyFiveGEthernet0/8/0.14 and the mac
and vlan is also taken of TwentyFiveGEthernet0/8/0.13,*
  Also, using the option "table-id"[ping 8.8.8.8 table-id 1], the same
issue is seen, where there is a mismatch of the source ip filled in packet
and the packet is taking a different interface to go out.


  So I'm guessing that once the ping plugin fills the source IP address in
the packet, and when the packet gets to the next node i.e. "ip4-lookup"
node, it is not considered strictly to go out of the interface with which
the user has specified in ECMP case.

  Is this a bug?
  Can someone please help with this?

  Thanks,
  Subramanya
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20774): https://lists.fd.io/g/vpp-dev/message/20774
Mute This Topic: https://lists.fd.io/mt/88580236/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to