Is it a problem with the switch running on the device? Can it be related to
the VLan configs or other configs like this?

By the way these are the configuration files:

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

config switch 'eth0'
option name 'eth0'
option reset '1'
option enable_vlan '1'

config switch_vlan
option device 'eth0'
option vlan '1'
# option ports '1 2 3 4 8t'
option ports '1 2 8t'

config switch_vlan
option device 'eth0'
option vlan '2'
option ports '0 8t'

##
config switch_vlan
option device 'eth0'
option vlan '3'
option ports '3 4 8t'
##
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config globals 'globals'
option ula_prefix 'fd47:8185:bdbd::/48'

config interface 'lan'
option ifname 'eth0.1'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'

config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'

config interface 'wan6'
option ifname '@wan'
option proto 'dhcpv6'

config interface
option ifname 'eth0.4'
option proto 'static'

config interface
option ifname 'eth0.3'
option proto 'static'
---------------------------------------------------------
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device  wl0
option type     broadcom
option channel  1
option txantenna 3
option rxantenna 3
# REMOVE THIS LINE TO ENABLE WIFI:
# option disabled 1

config wifi-iface
option device   wl0
option network lan
option mode     ap
option ssid     OpenWrt
option encryption none

config wifi-device  wl1
option type     broadcom
option channel  36
option txantenna 3
option rxantenna 3
# REMOVE THIS LINE TO ENABLE WIFI:
# option disabled 1

config wifi-iface
option device   wl1
option network lan
option mode     ap
option ssid     OpenWrt1
option encryption none
--------------------------------------------------------------
root@OpenWrt:~# cat /etc/config/openflow
config 'ofswitch'
option 'dp' 'dp0'
option 'dpid' '000000000001'
option 'ofports' 'eth0.3 eth0.4 wl0 wl1'
option 'ofctl' 'tcp:172.16.147.211:6633'
option 'mode'  'outofband'
##
option 'proto' 'static'
option 'netmask' '255.255.255.0'
#option 'ipaddr'


On Tue, Jun 23, 2015 at 10:30 AM, Minoru TAKAHASHI <
takahashi.mino...@gmail.com> wrote:

> Hi,
>
> > I think it has openvswitch its openwrt os. Is that what you mean?
>
> Yes.
>
> Hmm, simple_switch_13.py works correctly in my environment.
> (I used the URL below as reference.
>  http://osrg.github.io/ryu-book/en/html/switching_hub.html)
>
> My environment is as following.
>
> $ ryu-manager --version
> ryu-manager 3.22
>
> $ ovs-ofctl --version
> ovs-ofctl (Open vSwitch) 2.3.90
> Compiled Apr 15 2015 14:45:13
> OpenFlow versions 0x1:0x4
>
> $ cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=14.04
> DISTRIB_CODENAME=trusty
> DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
>
> thanks,
>
> On 2015年06月23日 01:22, Ardalan Pouyabahar wrote:
> > I think it has openvswitch its openwrt os. Is that what you mean?
> > What can I do to solve that error?
> >
> > Thanks for your answer.
> >
> > On Mon, Jun 22, 2015 at 10:46 AM, Minoru TAKAHASHI <
> takahashi.mino...@gmail.com <mailto:takahashi.mino...@gmail.com>> wrote:
> >
> >     Hi,
> >
> >     On 2015年06月21日 19:12, Ardalan Pouyabahar wrote:
> >     > Hello everyone,
> >     >
> >     > I run Ryu simple_switch_13.py app (without any changes) to control
> an Openflow switch which runs openwrt (barrier breaker version). It
> connects successfully but when I connect two devices and manually give them
> IPs and try to ping them it gives this error:
> >     >
> >     > error msg ev version: 0x4 msg_type 0x1 xid 0xd8ec19b9
> OFPErrorMsg(code=4,data='\x04\x0e\x00`\xd8\xec\x19\xb9\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x06\xb6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x16\x80\x00\x00\x04\x03\x00\x00\x00\x80\x00\x06\x06\xe8P\x8b1\x7fP\x00\x00\x00\x04\x00\x18\x00\x00\x00\x00\x00\x00\x00\x10\x03\x00\x00\x00\xff\xe5\x00\x00\x00\x00\x00\x00',type=2)
> type 0x2 code 0x4 0x4 0xe 0x0 0x60 0xd8 0xec 0x19 0xb9 0x0 0x0 0x0 0x0 0x0
> 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1
> 0x0 0x0 0x6 0xb6 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1
> 0x0 0x16 0x80 0x0 0x0 0x4 0x3 0x0 0x0 0x0 0x80 0x0 0x6 0x6 0xe8 0x50 0x8b
> 0x31 0x7f 0x50 0x0 0x0 0x0 0x4 0x0 0x18 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x10
> 0x3 0x0 0x0 0x0 0xff 0xe5 0x0 0x0 0x0 0x0 0x0 0x0
> >     >
> >     > I once tried to the simple monitor app too for network monitoring
> and got the same error in the same scenario.
> >     > What is the problem here? My device is Linksys e3000 with Openwrt
> (barrier breaker version) which is Openflow 1.3 enabled.
> >
> >     > error msg ev version: 0x4 msg_type 0x1
> >
> >     This error means the following.
> >
> >      OFPBAC_BAD_OUT_PORT = 4, /* Problem validating output port. */
> >
> >     What switch do you use on your device?
> >     ex. openvswitch, cpqd, Linc,,,
> >
> >     thanks,
> >
> >     >
> >     > Thanks in advance,
> >     > Ardalan
> >     >
> >     >
> >     >
> ------------------------------------------------------------------------------
> >     >
> >     >
> >     >
> >     > _______________________________________________
> >     > Ryu-devel mailing list
> >     > Ryu-devel@lists.sourceforge.net <mailto:
> Ryu-devel@lists.sourceforge.net>
> >     > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> >     >
> >
> >
>
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to