Hi, Cloud providers don’t always allow MAC spoofing. You will probably need to clone the MAC of `eth1` over `br1`.
We use the following when setting up a kubernetes environment on AWS: https://github.com/openvswitch/ovn-kubernetes#k8s-gateway-node-initialization (`ovn-k8s-util nics-to-bridge eth0`). If you are using RHEL you can look over: https://github.com/openvswitch/ovs/blob/master/rhel/README.RHEL.rst and https://github.com/openvswitch/ovs/blob/master/debian/openvswitch-switch.README.Debian for Debian. Thanks, Alin. From: [email protected] [mailto:[email protected]] On Behalf Of Johnson Li Sent: Sunday, December 17, 2017 5:05 PM To: [email protected] Subject: [ovs-discuss] Problem of setting up a bridge in AWS EC2 Hi, I am trying to set up a simple bridge using OVS. Everything works fine in my local VMs but it does not work on EC2. I have two interfaces eth0(useless) and eth1 on my EC2 machine A. Then I used the following command to set up the bridge: ovs-vsctl add-br br1 ovs-vsctl add-port eth1 ovs-ofctl add-flow br1 in_port=1,actions=local ovs-ofctl add-flow br1 in_port=local,actions=1 Then I set the IP addresses of br1 the same as eth1. I used another machine B on the same subnet in EC2 to ping this machine A, it failed. But the tcpdump result on br1 showed that machine A had already received the ICMP package from machine B. Unfortunately there is no response packet. Then I run a netcat UDP server in machine A and it did not report any message while I could still see the packet on br1. Do you have any ideas about why this problem occurs? Thank you very much! Sincerely, Johnson _______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
