What I want to do is send a packet to the server through the Open vSwitch in bare metal PC, not on the VM.
For doing that, I'm thinking of following structure.
Server PC ----------------------------- | ------ | | |SERVER| | | ------ | | |veth2 (192.168.0.152)| | | | | |veth1 | | ----------- | | | OVS (br0) | | | ----------- | | |eth0 (192.168.0.157) | -------|--------------------- | -------|-------- | Client PC | ----------------
For making above environment
, I did below commands.
- create ovs bridge
ovs-vsctl add-br br0
- make eth0 as a ovs port
ovs-vsctl add-port br0 eth0
- create veth link
ip link add veth1 type veth peer name veth2 ifconfig veth1 up ifconfig veth2 up
- Finally, I set client ARP table statically because ovs port (eth0) cannot send ARP reply
After that, I tried to do TCP connection between client and server.
I checked that SYN packet of client is sent to veth2. However, server cannot receive that packet.
I cannot guess what is wrong and how I can make above environment.