noxrepo / pox

The POX network software platform
https://noxrepo.github.io/pox-doc/html/
Apache License 2.0
619 stars 470 forks source link

No access to Internet after running POX and connected to OpenWRT router #283

Closed EngHassanJ closed 1 year ago

EngHassanJ commented 1 year ago

Hello Dear @MurphyMc

I have installed POX on ubuntu 20.04 + have installed OVS on the OpenWRT router . .

I have set the OpenWRT router as an access point, but when I run POX and connect the OpenWRT through ovs , I cant access the internet!

actually, when using this command: "/ usr/share/openvswitch/scripts/ovs-ctl start" to start listening to pox , the host they connected to OpenWRT router can't access the internet

did you know why?. before running pox the router worked fine

thanks in advanced

MurphyMc commented 1 year ago

This is a difficult question to answer more precisely than "it's configured wrong".

You're starting OVS. Does OVS connect to POX? (It should show up in the POX logs; make sure to run with the POX logging turned to DEBUG level for testing.)

Also, what configuration are you using for POX?

EngHassanJ commented 1 year ago

thank you for response

Does OVS connect to POX?

yes it does

the pox working fine , but I notice that: 1- if the OpenWRT router worked as a wireless repeater, after started the command "/ usr/share/openvswitch/scripts/ovs-ctl start" >>> the pox just shows me the main router's logs but not the OpenWRT and also OpenWRT have no access to the internet

2- if I connect OpenWRT router to the main router through an Ethernet cable, hosts can access the internet for some wireless zones but not all zones and the loges of openwrt shows.

show the screenshots: Screen Shot 2022-11-18 at 1 06 28 PM

StC_2021 : Main Router

HassanSDN zone : Main wireless network for openWrt

the other Zones as shows inside red rectangle have no access to internet after running the commands : "/ usr/share/openvswitch/scripts/ovs-ctl start"

the pox logs ;

Screen Shot 2022-11-16 at 7 55 10 PM

I'm sorry I know this makes you confusing, but let me know if you need other details.

MurphyMc commented 1 year ago

I don't have any idea how OpenWRT's zones work or what the OVS configuration is like, so I am missing some important information.

One thing I'd try is running l2_learning instead of l3_learning.