Hi, Yiannis Yiakoumis
    Thanks for your kindly reply.
    I re-configure my device use the following config file , but the problem 
still exist.
    When I type the command: /etc/init.d/openflow restart. It's still have the 
problem "> ofdatapath: failed to add port eth0.1 (Operation not supported)"

--------------------------------------------------------------------------------------------------------------------------------
> root@OpenWrt:/# /etc/init.d/openflow restart
> eth0.1,eth0.3
> Configuring OpenFlow switch for out-of-band control
> Jan 01 00:11:33|00001|netdev|ERR|ioctl(SIOCGIFTXQLEN) on eth0.1 device
> failed: Operation not supported
> ofdatapath: failed to add port eth0.1 (Operation not supported)
--------------------------------------------------------------------------------------------------------------------------------
  Looking forward for your reply.
Yang Yu




----------------------------------------------------------------
root@OpenWrt:~# clear

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     4
        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 lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0
config interface 
       option ifname eth0.1
       option proto  static
----------------------------------------------------------------
     



Yang Yu

From: Yiannis Yiakoumis
Date: 2012-10-18 23:33
To: yangyucau
CC: openflow-discuss; Felix
Subject: Re: Question about Pantou on Linksys wrt 54GL
Hi Yang Yu,

responses inline :

On Thu, Oct 18, 2012 at 12:19 AM, yangyucau <yangyu...@gmail.com> wrote:
> Hi, Yiannis
>     I am using the Pantou to implement the OpenFlow on Linksys wrt 54GL
> devices. When I follow the instructions on website
> http://www.openflow.org/wk/index.php/Pantou_:_OpenFlow_1.0_for_OpenWRT, some
> questions are also followed:
>     When I use the command  " /etc/init.d/openflow restart", but the
> OpenFlow dose not work. The error message is:
>
> Jan 01 00:11:33|00001|netdev|ERR|ioctl(SIOCGIFTXQLEN) on eth0.2 device
> failed: Operation not supported
> ofdatapath: failed to add port eth0.2 (Operation not supported).
>
>
Your /etc/config/network configuration is wrong. Have a look here :
http://www.openflow.org/wk/index.php/Pantou_:_OpenFlow_1.0_for_OpenWRT#Network_Configuration

> But the "ofprotocol" worked, the device(Linksys wrt 54GL ) can connected to
> the controller.
>
> Did I misconfigure some file? Any response is helpful.
>
> Another question is: Why the OpenFlow switch link to the local address
> "127.0.0.1:6634"? How can it just link to the remote
> controller(192.168.88.100:6633:)?
>

The local address is to be able to run dpctl.  It will still connect
to the remote controller you'll set in your openflow config file.

Y.

> P.S: I compiled the OpenWRT image with OpenFlow by myself follow the
> instruction.   I did not use the image from website:
> http://www.openflow.org/downloads/openwrt-images/brcm47xx/ofwrt-54g-rc1-squashfs.bin.(This
> image can not work well on my device)
>
> Thanks all.
>
>
> Yang Yu
>
> The config files of my device are listed as follows:
>
> ----------------------------------------------------------------------------------------------------------------
> root@OpenWrt:/# /etc/init.d/openflow restart
> eth0.2,eth0.3
> Configuring OpenFlow switch for out-of-band control
> Jan 01 00:11:33|00001|netdev|ERR|ioctl(SIOCGIFTXQLEN) on eth0.2 device
> failed: Operation not supported
> ofdatapath: failed to add port eth0.2 (Operation not supported)
> No need for further configuration for out-of-band control
> root@OpenWrt:/# Jan 01 00:11:36|00001|vlog|INFO|opened log file
> /tmp/log/ofdatapath.log
> Jan 01 00:11:36|00002|secchan|INFO|OpenFlow reference implementation version
> 1.0.0
> Jan 01 00:11:36|00003|secchan|INFO|OpenFlow protocol version 0x01
> Jan 01 00:11:36|00004|secchan|WARN|new management connection will receive
> asynchronous messages
> Jan 01 00:11:36|00005|rconn|INFO|tcp:127.0.0.1:6634: connecting...
> Jan 01 00:11:36|00006|rconn|INFO|tcp:192.168.88.100:6633: connected...
>
> ----------------------------------------------------------------------------------------------------------------
> root@OpenWrt:/# ifconfig
>
> br-lan    Link encap:Ethernet  HWaddr 00:14:BF:8E:A8:1E
>           inet addr:192.168.88.55  Bcast:192.168.88.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:419 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:38557 (37.6 KiB)  TX bytes:1684 (1.6 KiB)
>
> eth0      Link encap:Ethernet  HWaddr 00:14:BF:8E:A8:1E
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:3705 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1695 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:364109 (355.5 KiB)  TX bytes:228969 (223.6 KiB)
>           Interrupt:4
>
> eth0.0    Link encap:Ethernet  HWaddr 00:14:BF:8E:A8:1E
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:3689 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:752 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:296011 (289.0 KiB)  TX bytes:64435 (62.9 KiB)
>
> eth0.1    Link encap:Ethernet  HWaddr 00:14:BF:8E:A8:1E
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 B)  TX bytes:63492 (62.0 KiB)
>
> eth0.2    Link encap:Ethernet  HWaddr 00:14:BF:8E:A8:1E
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:393 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 B)  TX bytes:44599 (43.5 KiB)
>
> eth0.3    Link encap:Ethernet  HWaddr 00:14:BF:8E:A8:1E
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:390 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 B)  TX bytes:44125 (43.0 KiB)
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:2474 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:2474 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:172204 (168.1 KiB)  TX bytes:172204 (168.1 KiB)
>
> ----------------------------------------------------------------------------------------------------------------
> 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 1 2 3 5"
>
> config switch_vlan eth0_1
>         option device   "eth0"
>         option vlan     1
>         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 lan
>         option type     bridge
>         option ifname   "eth0.0 eth0.2 eth0.3"
>         option proto    static
>         option ipaddr   192.168.88.55
>         option netmask  255.255.255.0
>
>
> #### WAN configuration
> config interface        wan
>         option ifname   "eth0.1"
>         option proto    dhcp
> ----------------------------------------------------------------------------------------------------------------
> root@OpenWrt:/# cat /etc/config/openflow
>
> config 'ofswitch'
>         option 'dp' 'dp0'
>         option 'dpid' '000000000001'
>         option 'ofports' 'eth0.2 eth0.3'
>         option 'ofctl' 'tcp:192.168.88.100:6633'
>         option 'mode'  'outofband'
> ----------------------------------------------------------------------------------------------------------------
>
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to