Just reiterating what I said on pox-dev: you shouldn't need to sudo, you don't need to specify port 6633 since it's the default, and you generally shouldn't specify an IP address on the POX commandline unless you have a good reason to do so (by default, it will listen to all interfaces).
A good commandline to start with is the one suggested in the POX manual: ./pox.py samples.pretty_log forwarding.l2_learning For additional log information that may be useful in figuring out what's going on, you could try turning the log level to debug as Alison suggested: ./pox.py samples.pretty_log --DEBUG forwarding.l2_learning If the switch connects, you should see a log message from POX. At debug level, if l2_learning installs table entries, you should see log messages. -- Murphy On Dec 13, 2013, at 1:30 PM, Sayed Qaiser Ali Shah <11msitqs...@seecs.edu.pk> wrote: > Dear Alison I tired same configuration but same problem. I just want to > confirm IP addresses. > My laptop having POX controller has IP address 192.168.1.142, So I run pox > controller with same IP address by command > sudo ./pox.py openflow.of_01 --address=192.168.1.142 --port=6633 > forwarding.l2_learning > Well the part I am unable to know is that whether should IP addresses of the > system which are connecting via WiFi or Ethernet Ports should have IP > addresses from the same network i.e. 192.168.1.0 or should I use different > network? > > > On Fri, Dec 13, 2013 at 8:47 PM, Alison Chan <chan7...@kettering.edu> wrote: > https://gist.github.com/alis0nc/7945871 > > These are the config in question from one openwrt tp-link openflow > switch in Kettering's lab. Remember to restart the network, wireless, > and/or openflow services when you change one of these files, or else > just reboot the switch. > > Cheers, > Alison > > On Fri, Dec 13, 2013 at 4:57 AM, Sayed Qaiser Ali Shah > <11msitqs...@seecs.edu.pk> wrote: > > Thank you Alison I will wait for your reply. > > > > > > On Fri, Dec 13, 2013 at 10:56 AM, Alison Chan <chan7...@kettering.edu> > > wrote: > >> > >> The config looks wrong to me (I don't have access to our OpenWrt OF > >> switches now to confirm though), and you shouldn't be able to ping the > >> controller from the data plane interface with it set for out of band > >> control. I will look at a working setup in the lab tomorrow morning and > >> share my config files. > >> > >> Cheers, > >> > >> Alison Chan, Kettering University > >> +1 909 278 7753 > >> (sent from my phone) > >> > >> On 12 Dec 2013 13:22, "Sayed Qaiser Ali Shah" <11msitqs...@seecs.edu.pk> > >> wrote: > >>> > >>> Thank you Shayan. Are the configurations right? > >>> > >>> > >>> On Thu, Dec 12, 2013 at 11:21 PM, Shayan Saeed <shayansaee...@gmail.com> > >>> wrote: > >>>> > >>>> Run the controller with - - debug option if you want to see messages > >>>> too. > >>>> > >>>> On Dec 12, 2013 12:15 PM, "Sayed Qaiser Ali Shah" > >>>> <11msitqs...@seecs.edu.pk> wrote: > >>>>> > >>>>> Hello everybody I have installed OpenWRT on my TP-Link 1043 > >>>>> successfully then I configured it as follow. > >>>>> -------------------------------------------------------- > >>>>> Configuration of /etc/config/openflow > >>>>> config 'ofswitch' > >>>>> option 'dp' 'dp0' > >>>>> option 'dpid' '000000000001' > >>>>> option 'ofports' 'wlan0 eth0.1 eht0.2 eth0.3 eth0.4' > >>>>> option 'ofctl' 'tcp:192.168.2.12:6633' > >>>>> option 'mode' 'outofband' > >>>>> -------------------------------------------------------- > >>>>> Configuration of /etc/config/network > >>>>> config 'interface' 'loopback' > >>>>> option 'ifname' 'lo' > >>>>> option 'proto' 'static' > >>>>> option 'ipaddr' '127.0.0.1' > >>>>> option 'netmask' '255.0.0.0' > >>>>> > >>>>> config 'interface' 'lan' > >>>>> option 'ifname' 'eth0.1' > >>>>> option 'type' 'bridge' > >>>>> option 'proto' 'static' > >>>>> option 'ipaddr' '192.168.0.2' > >>>>> option 'netmask' '255.255.255.0' > >>>>> > >>>>> config 'interface' 'wan' > >>>>> option 'ifname' 'eth0.2' > >>>>> option 'proto' 'static' > >>>>> option 'ipaddr' '192.168.2.2' > >>>>> option 'netmask' '255.255.255.0' > >>>>> > >>>>> config 'switch' > >>>>> option 'name' 'rtl8366rb' > >>>>> option 'reset' '1' > >>>>> option 'enable_vlan' '1' > >>>>> > >>>>> config 'switch_vlan' > >>>>> option 'device' 'rtl8366rb' > >>>>> option 'vlan' '1' > >>>>> option 'ports' '1 2 3 4 5t' > >>>>> > >>>>> config 'switch_vlan' > >>>>> option 'device' 'rtl8366rb' > >>>>> option 'vlan' '2' > >>>>> option 'ports' '0 5t' > >>>>> -------------------------------------------------- > >>>>> Configuration of /etc/config/wireless > >>>>> config wifi-device radio0 > >>>>> option type mac80211 > >>>>> option channel 11 > >>>>> option macaddr 90:f6:52:a4:b8:5c > >>>>> option hwmode 11ng > >>>>> option htmode HT20 > >>>>> list ht_capab SHORT-GI-40 > >>>>> list ht_capab DSSS_CCK-40 > >>>>> option disabled 0 > >>>>> > >>>>> config wifi-iface > >>>>> option device radio0 > >>>>> option network lan > >>>>> option mode ap > >>>>> option ssid OpenWrt > >>>>> option encryption none > >>>>> ------------------------------------------------------------ > >>>>> > >>>>> I connected my laptop having POX controller to wan port. I set my > >>>>> laptop IP to 192.168.2.12. The IP which I have used in > >>>>> /etc/config/openflow. > >>>>> I run pox controller with the command > >>>>> sudo ./pox.py openflow.of_01 --address=192.168.2.12 --port=6633 > >>>>> forwarding.l2_learning. > >>>>> Then I connected another laptop OpenWRT SSID (via WiFi) and use ping > >>>>> command to ping 192.168.2.12. Ping was successful but controller didn't > >>>>> display anything. I am not sure what I am doing wrong. Can anybody help > >>>>> me > >>>>> in this please. > >>>>> > >>>>> _______________________________________________ > >>>>> openflow-discuss mailing list > >>>>> openflow-discuss@lists.stanford.edu > >>>>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss > >>>>> > >>> > >>> > >>> > >>> -- > >>> Regards > >>> > >>> Sayed Qaiser Ali Shah > >>> MSIT-12 > >>> NUST (SEECS) > >>> > >>> _______________________________________________ > >>> openflow-discuss mailing list > >>> openflow-discuss@lists.stanford.edu > >>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss > >>> > > > > > > > > -- > > Regards > > > > Sayed Qaiser Ali Shah > > MSIT-12 > > NUST (SEECS) > > > > -- > Alison Chan > chan7...@kettering.edu > +1 909 278 7753 > > Sedulously eschew obfuscatory hyperverbosity or prolixity. > > > > -- > Regards > > Sayed Qaiser Ali Shah > MSIT-12 > NUST (SEECS) > _______________________________________________ > openflow-discuss mailing list > openflow-discuss@lists.stanford.edu > https://mailman.stanford.edu/mailman/listinfo/openflow-discuss _______________________________________________ openflow-discuss mailing list openflow-discuss@lists.stanford.edu https://mailman.stanford.edu/mailman/listinfo/openflow-discuss