From: Oakley,I,Ian,TUS2 R Sent: 23 April 2020 12:34 To: ryu-devel@lists.sourceforge.net Cc: ianoakley1...@hotmail.co.uk Subject: HELP - Ryu SDN in CORE, unclear on what I'm supposed to do
Hi, I have designed a test network in CORE as below in the hope of being able to test SDN solutions in it: [A screenshot of a computer Description automatically generated] I know for a fact that it is supposed to be possible to use Ryu for SDN in CORE (https://github.com/coreemu/core). However, I don't really know what the hell I'm supposed to do. Due to the limitations of CORE, both OVS switches are technically routers, with an OVS service running that looks like this (taken from OVS2): /etc/init.d/openvswitch-switch start < /dev/null ovs-vsctl add-br ovsbr0 -- set Bridge ovsbr0 fail-mode=secure ip link set dev ovsbr0 up ip link add rtr0 type veth peer name sw0 ip link set dev rtr0 up ip link set dev sw0 up ip addr del 10.0.4.1/24 dev eth0 ip addr add 10.0.4.1/24 dev rtr0 ip -6 addr del 2001:4::1/64 dev eth0 ip -6 addr add 2001:4::1/64 dev rtr0 ovs-vsctl add-port ovsbr0 eth0 ovs-vsctl add-port ovsbr0 sw0 ip link add rtr1 type veth peer name sw1 ip link set dev rtr1 up ip link set dev sw1 up ip addr del 10.0.5.1/24 dev eth1 ip addr add 10.0.5.1/24 dev rtr1 ip -6 addr del 2001:5::1/64 dev eth1 ip -6 addr add 2001:5::1/64 dev rtr1 ovs-vsctl add-port ovsbr0 eth1 ovs-vsctl add-port ovsbr0 sw1 ip link add rtr2 type veth peer name sw2 ip link set dev rtr2 up ip link set dev sw2 up ip addr del 10.0.6.1/24 dev eth2 ip addr add 10.0.6.1/24 dev rtr2 ip -6 addr del 2001:6::1/64 dev eth2 ip -6 addr add 2001:6::1/64 dev rtr2 ovs-vsctl add-port ovsbr0 eth2 ovs-vsctl add-port ovsbr0 sw2 ip link add rtr3 type veth peer name sw3 ip link set dev rtr3 up ip link set dev sw3 up ip addr del 10.0.7.1/24 dev eth3 ip addr add 10.0.7.1/24 dev rtr3 ip -6 addr del 2001:7::1/64 dev eth3 ip -6 addr add 2001:7::1/64 dev rtr3 ovs-vsctl add-port ovsbr0 eth3 ovs-vsctl add-port ovsbr0 sw3 ip link add rtr4 type veth peer name sw4 ip link set dev rtr4 up ip link set dev sw4 up ip addr del 10.0.8.1/24 dev eth4 ip addr add 10.0.8.1/24 dev rtr4 ip -6 addr del 2001:8::1/64 dev eth4 ip -6 addr add 2001:8::1/64 dev rtr4 ovs-vsctl add-port ovsbr0 eth4 ovs-vsctl add-port ovsbr0 sw4 ovs-vsctl set-controller ovsbr0 tcp:10.0.5.10:6633 ovs-ofctl add-flow ovsbr0 priority=1000,in_port=1,action=output:2 ovs-ofctl add-flow ovsbr0 priority=1000,in_port=2,action=output:1 ovs-ofctl add-flow ovsbr0 priority=1000,in_port=3,action=output:4 ovs-ofctl add-flow ovsbr0 priority=1000,in_port=4,action=output:3 ovs-ofctl add-flow ovsbr0 priority=1000,in_port=5,action=output:6 ovs-ofctl add-flow ovsbr0 priority=1000,in_port=6,action=output:5 ovs-ofctl add-flow ovsbr0 priority=1000,in_port=7,action=output:8 ovs-ofctl add-flow ovsbr0 priority=1000,in_port=8,action=output:7 ovs-ofctl add-flow ovsbr0 priority=1000,in_port=9,action=output:10 ovs-ofctl add-flow ovsbr0 priority=1000,in_port=10,action=output:9 I've edited it to set the controller as being the Ryu node (for both OVS switches). But I don't know where to proceed from here. In particular, I have functionally no idea as to what I'm supposed to do with the controller node (Ryu). What am I supposed to run on it to turn this basic setup into something that can actually route packets between the two halves of the network? What commands can I put in the terminal window for the controller node that'll define some networking? And before you ask; yes, I could just do it in Mininet and it'll all work there automatically, but I'm trying to avoid using Mininet if I can at all help it. Ian Oakley Research Specialist IoT Security +44 (0)1473 626841 [EmailSigLogo] This email contains information from BT that might be privileged or confidential. And it's only meant for the person above. If that's not you, we're sorry - we must have sent it to you by mistake. Please email us to let us know, and don't copy or forward it to anyone else. Thanks. We monitor our email systems and may record all our emails. British Telecommunications plc R/O : 81 Newgate Street, London EC1A 7AJ Registered in England: No 1800000
_______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel