[pox-dev] Fwd: tplink pantou, openflow

Shabbir Ahmed shabbir1282 at gmail.com
Sat May 4 07:25:51 PDT 2013


Hi,

I have connected a laptop (controller) to blue (wan) port.
1 laptop to switch port (ip addr 192.168.10.1)
1 laptop to another switch port (192.168.10.2)

When I run openflow on openwrt i get the following error, all other
configurations are attached.


root at OpenWrt:~# /etc/init.d/openflow start
eth0.0,eth0.1,eth0.2,eth0.3,
Configuring OpenFlow switch for inband control
Feb 19 09:43:36|00001|netdev|ERR|ioctl(SIOCGIFINDEX) on eth0.0 device
failed: No such device
ofdatapath: failed to add port eth0.0 (No such device)
Configuring local device with ip 192.168.2.4 and netmask 255.255.255.0
ifconfig: SIOCSIFADDR: No such device
route: SIOCADDRT: File exists
root at OpenWrt:~# Feb 19 09:43:39|00001|vlog|INFO|opened log file
/tmp/log/ofprotocol.log
Feb 19 09:43:39|00002|secchan|INFO|OpenFlow reference implementation
version 1.0.0
Feb 19 09:43:39|00003|secchan|INFO|OpenFlow protocol version 0x01
Feb 19 09:43:39|00004|secchan|WARN|new management connection will receive
asynchronous messages
Feb 19 09:43:39|00005|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Feb 19 09:43:39|00006|rconn|INFO|tcp:192.168.2.5:6633: connecting...
Feb 19 09:43:39|00007|rconn|INFO|tcp:127.0.0.1:6634: connection failed
(Connection refused)
Feb 19 09:43:39|00008|rconn|WARN|tcp:127.0.0.1:6634: connection dropped
(Connection refused)
Feb 19 09:43:39|00009|rconn|INFO|tcp:192.168.2.5:6633: connected
Feb 19 09:43:40|00010|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Feb 19 09:43:40|00011|rconn|INFO|tcp:127.0.0.1:6634: connection failed
(Connection refused)
Feb 19 09:43:40|00012|rconn|WARN|tcp:127.0.0.1:6634: connection dropped
(Connection refused)
Feb 19 09:43:40|00013|rconn|INFO|tcp:127.0.0.1:6634: waiting 2 seconds
before reconnect
Feb 19 09:43:43|00014|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Feb 19 09:43:43|00015|rconn|INFO|tcp:127.0.0.1:6634: connection failed
(Connection refused)
Feb 19 09:43:43|00016|rconn|WARN|tcp:127.0.0.1:6634: connection dropped
(Connection refused)
Feb 19 09:43:43|00017|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds
before reconnect
Feb 19 09:43:48|00018|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Feb 19 09:43:48|00019|rconn|INFO|tcp:127.0.0.1:6634: connection failed
(Connection refused)
Feb 19 09:43:48|00020|rconn|WARN|tcp:127.0.0.1:6634: connection dropped
(Connection refused)
Feb 19 09:43:48|00021|rconn|INFO|tcp:127.0.0.1:6634: waiting 8 seconds
before reconnect
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20130504/279cc5b8/attachment-0001.htm>
-------------- next part --------------
root at OpenWrt:~# /etc/init.d/openflow start
eth0.0,eth0.1,eth0.2,eth0.3,
Configuring OpenFlow switch for inband control
Feb 19 09:43:36|00001|netdev|ERR|ioctl(SIOCGIFINDEX) on eth0.0 device failed: No such device
ofdatapath: failed to add port eth0.0 (No such device)
Configuring local device with ip 192.168.2.4 and netmask 255.255.255.0
ifconfig: SIOCSIFADDR: No such device
route: SIOCADDRT: File exists
root at OpenWrt:~# Feb 19 09:43:39|00001|vlog|INFO|opened log file /tmp/log/ofprotocol.log
Feb 19 09:43:39|00002|secchan|INFO|OpenFlow reference implementation version 1.0.0
Feb 19 09:43:39|00003|secchan|INFO|OpenFlow protocol version 0x01
Feb 19 09:43:39|00004|secchan|WARN|new management connection will receive asynchronous messages
Feb 19 09:43:39|00005|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Feb 19 09:43:39|00006|rconn|INFO|tcp:192.168.2.5:6633: connecting...
Feb 19 09:43:39|00007|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused)
Feb 19 09:43:39|00008|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused)
Feb 19 09:43:39|00009|rconn|INFO|tcp:192.168.2.5:6633: connected
Feb 19 09:43:40|00010|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Feb 19 09:43:40|00011|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused)
Feb 19 09:43:40|00012|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused)
Feb 19 09:43:40|00013|rconn|INFO|tcp:127.0.0.1:6634: waiting 2 seconds before reconnect
Feb 19 09:43:43|00014|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Feb 19 09:43:43|00015|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused)
Feb 19 09:43:43|00016|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused)
Feb 19 09:43:43|00017|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect
Feb 19 09:43:48|00018|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Feb 19 09:43:48|00019|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused)
Feb 19 09:43:48|00020|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused)
Feb 19 09:43:48|00021|rconn|INFO|tcp:127.0.0.1:6634: waiting 8 seconds before reconnect



config 'switch'
        option 'name' 'rtl8366rb'
        option 'reset' '1'
#         option 'enable_vlan' '1'
        option 'enable_learning' '0'

config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '1'
option 'ports' '1 5t'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '2'
option 'ports' '2 5t'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '3'
option 'ports' '3 5t'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '4'
option 'ports' '4 5t'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '5'
option 'ports' '0 5t'
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto'  'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
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'
        config 'interface'
        option 'ifname' 'eth0.4'
        option 'proto' 'static'
config 'interface'
        option 'ifname' 'eth0.5'
        option 'proto' 'static'
        option 'ipaddr' '192.168.2.4'
        option 'netmask' '255.255.255.0'

        
#config 'ofswitch'
#       option 'dp' 'dp0'
#       option 'dpid' '000000000001'
#       option 'ofports' 'eth0.1 eth0.2 eth0.3 eth0.4'
#       option 'ofctl' 'tcp:192.168.2.5:6633'
#       option 'mode'  'outofband'
#       option 'mode'  'inband'

config 'ofswitch'
        option 'dp' 'dp0'
        option 'ofports' 'eth0.0 eth0.1 eth0.2 eth0.3 '
        option 'ofctl' 'tcp:192.168.2.5:6633'
        option 'mode'  'inband'
        option 'ipaddr' '192.168.2.4'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.2.1'
~

./pox.py log.level --DEBUG forwarding.l2_pairs_debug
POX 0.0.0 / Copyright 2011 James McCauley
INFO:forwarding.l2_pairs_debug:Pair-Learning switch running.
DEBUG:core:POX 0.0.0 going up...
DEBUG:core:Running on CPython (2.7.3/Aug 1 2012 05:16:07)
INFO:core:POX 0.0.0 is up.
This program comes with ABSOLUTELY NO WARRANTY.  This program is free software,
and you are welcome to redistribute it under certain conditions.
Type 'help(pox.license)' for details.
DEBUG:openflow.of_01:Listening for connections on 0.0.0.0:6633
DEBUG:openflow.of_01:[Con 1/None] Socket error: Broken pipe
DEBUG:openflow.of_01:[Con 1/None] disconnecting


More information about the pox-dev mailing list