Simple routing scenario using flows?

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

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:

trunk: https://nopaste.me/view/128a1fac

subnet 192.168.50.x:
controller: https://nopaste.me/view/8ce88042
admin: https://nopaste.me/view/d503e3d2

subnet 192.168.30.x:
opfer: https://nopaste.me/view/c4ff83b7

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: https://nopaste.me/view/ff6ba2e5 (or https://nopaste.me/view/raw/ff6ba2e5 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