All of lore.kernel.org
 help / color / mirror / Atom feed
* Different behavior wrt VRF and no VRF - packet Tx
@ 2021-04-15  7:15 Bala Sajja
  2021-04-15  7:17 ` Bala Sajja
  2021-04-15 19:41 ` David Ahern
  0 siblings, 2 replies; 5+ messages in thread
From: Bala Sajja @ 2021-04-15  7:15 UTC (permalink / raw)
  To: netdev

When interfaces are not part of VRF  and below ip address config is
done on these interfaces, ping with -I (interface) option, we see
packets transmitting out of the right interfaces.

 ip addr add 2.2.2.100 peer 1.1.1.100/32 dev enp0s3
 ip addr add 2.2.2.100 peer 1.1.1.100/32  dev enp0s8

 ping 1.1.1.100    -I  enp0s3 , packet always goes out of  enp0s3
 ping 1.1.1.100    -I   enp0s8, packet always goes out of  enp0s8

When interfaces are enslaved  to VRF  as below and ip are configured
on these interfaces, packets go out of one  interface only.

 ip link add MGMT type vrf table 1
 ip link set dev MGMT up
 ip link set dev enp0s3 up
 ip link set dev enp0s3 master MGMT
 ip link set dev enp0s8 up
 ip link set dev enp0s8 master MGMT
 ip link set dev enp0s9 up

 ip addr add 2.2.2.100 peer 1.1.1.100/32 dev enp0s3
 ip addr add 2.2.2.100 peer 1.1.1.100/32  dev enp0s8

 ping 1.1.1.100    -I  enp0s3 , packet always goes out of  enp0s3
 ping 1.1.1.100    -I   enp0s8, packet always goes out of  enp0s3


Regards,
Bala.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-18 17:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  7:15 Different behavior wrt VRF and no VRF - packet Tx Bala Sajja
2021-04-15  7:17 ` Bala Sajja
2021-04-15 19:41 ` David Ahern
2021-04-16  3:57   ` Bala Sajja
2021-04-18 17:40     ` David Ahern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.