Simple routing scenario using flows?

asked 2016-09-12 07:09:01 -0700

johnassel gravatar image

Hi, I'm trying to setup a small network using libvrit, OpenVSwitch, OpenDaylight and OpenFlow. I set up a switch which has one port as connection to the rest of the network and other ports to which the clients are connected to. The clients are sitting in different subnets (192.168.10.x, 192.168.20.x,...) and they should communicate among themselves. In a subnet the clients can see each other but they can't reach the outer network and clients in other subnets.
These are my flows:


subnet 192.168.50.x:

subnet 192.168.30.x:

I pushed the flows to the controller using RESTconf:

curl -u admin:admin -X PUT -H "Content-Type:application/xml" -H "Accept:application/xml" -d "@trunk.xml" http://controller:8181/restconf/config/opendaylight-inventory:nodes/node/$switch/flow-node-inventory:table/0/flow/0

After that the clients in the .50.x subnet were able to see each other, but they couldn't ping the .30.x subnet or the outer network. This is what ovs-ofctl -O OpenFlow13 dump-flows sw-vlan gives me: (or for better reading)

What can be done so that the clients in different subnets can see each other and that they can reach the outer network?

edit retag flag offensive close merge delete