I have a router VM with openvswitch and a debian machine with a Ryu controller in the following topology:
After creating bridge br0, I added to it the ports eth1 (port 1), eth2 (port 2) and eth3 (port 3). Now, the bridge can ping the controller, as it was supposed to.
However, I also want the client to be able to access the Internet through eth1. First, I added the flow entry for forwarding between ports 1 and 3:
ovs-ofctl add-flow -O openflow13 br0 priority=500,in_port=1,actions=output:3
ovs-ofctl add-flow -O openflow13 br0 priority=500,in_port=3,actions=output:1
But the client still can't access the Internet... Without the OVS, the eth1 interface would get an IP from dhcp and correspondent gateway. Now, it has no IP.
What would be the right way to do this architecture so that the client can access the internet? Note that I'm trying to do an OVS only solution and it is a requirement that Ryu can control the client's interface.
After creating bridge br0, I added to it the ports eth1 (port 1), eth2 (port 2) and eth3 (port 3). Now, the bridge can ping the controller, as it was supposed to.
However, I also want the client to be able to access the Internet through eth1. First, I added the flow entry for forwarding between ports 1 and 3:
ovs-ofctl add-flow -O openflow13 br0 priority=500,in_port=1,actions=output:3
ovs-ofctl add-flow -O openflow13 br0 priority=500,in_port=3,actions=output:1
But the client still can't access the Internet... Without the OVS, the eth1 interface would get an IP from dhcp and correspondent gateway. Now, it has no IP.
What would be the right way to do this architecture so that the client can access the internet? Note that I'm trying to do an OVS only solution and it is a requirement that Ryu can control the client's interface.
Last edited: