CPqD / ofsoftswitch13

OpenFlow 1.3 switch.
http://cpqd.github.com/ofsoftswitch13
304 stars 192 forks source link

Network configurations on Linksys WRT54gl #183

Closed nofic closed 6 years ago

nofic commented 9 years ago

Hi everyone, I am not sure if it is related specifically to openflow1.3 but I would really apreciate your help. I have compiled an openWRT backfire with OpenFlow1.3 on my linksys WRT54gl router. I wish to create an SDN network using physical routers (not as virtual on mininet etc.) and I am trying to configure the network by configuring the ports on the router. I looked for the file of the network configuration and found the file on /etc/config/network. I tried the following configuration in order to create a linear topology consists of two routers (r1->r2->controller):

root@OpenWrt:/# cat /etc/config/network

VLAN configuration

config switch eth0 option enable 1

config switch_vlan eth0_0 option device "eth0" option vlan 0 option ports "0 5"

config switch_vlan eth0_1 option device "eth0" option vlan 1 option ports "1 5"

config switch_vlan eth0_2 option device "eth0" option vlan 2 option ports "2 5"

config switch_vlan eth0_3 option device "eth0" option vlan 3 option ports "3 5"

config switch_vlan eth0_4 option device "eth0" option vlan 3 option ports "4 5"

Loopback configuration

config interface loopback option ifname "lo" option proto static option ipaddr 127.0.0.1 option netmask 255.0.0.0

LAN configuration

config interface option ifname "eth0.0" option proto static

config interface option ifname "eth0.1" option proto static

config interface option ifname "eth0.2" option proto static

config interface option ifname "eth0.3" option proto static option ipaddr 192.168.1.2 option netmask 255.255.255.0

config interface option ifname "eth0.4" option proto static option ipaddr 192.168.1.1 option netmask 255.255.255.0

----> in the /etc/config/openflow I configured:

root@OpenWrt:/# cat /etc/config/openflow config 'ofswitch' option 'dp' 'dp0'

option 'ofports' 'eth0.0 eth0.1 eth0.2 eth0.3'

    option 'ofports' 'eth0.0 eth0.1 eth0.2'
    option 'ofctl' 'tcp:192.168.1.10:6633'
    option 'mode'  'outofband'

Is there anything wrong with it? How should I configure the ports on both routers? do they need to connect via a openFlow port connection, or should it be a static route?

Thanks to anyone who can add any explanation and any assistance would be appreciated.

Nofar