I have two services running locally on the same machine, at 172.16.1.1 and 172.16.2.1, communicating with each other through the local loopback interface.
I am trying to set up OVS such that all traffic between the two services go through the OVS bridge br0. I’ve tried the following setup using veth pairs:
veth1 (172.16.1.1) <—> veth2 (ovs port) <—> br0 <—> veth3 (ovs port) <—> veth4 (172.16.2.1)
However, when I try to ping 172.16.2.1 from veth0 using ping 172.16.2.1 -I veth0
, it does not receive ARP responses from veth3, and pings fail.
The following are the commands I used to configure the setup
ovs-vsctl add-br br0
ip link add veth1 type veth peer name veth2
ip link add veth3 type veth peer name veth4
ovs-vsctl add-port br0 veth2
ovs-vsctl add-port br0 veth3
ip addr add 172.16.1.1/24 dev veth1
ip addr add 172.16.2.1/24 dev veth4
ip link set veth1 up
ip link set veth4 up
ip link set veth2 up
ip link set veth3 up
ip link set br0 up
styx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1