intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
441 stars 240 forks source link

Sample topology (wifi network) #107

Closed hamzehmohammadnia closed 6 years ago

hamzehmohammadnia commented 7 years ago

Hi,

I have tried to build up a sample topology of three access points connected to three mobile stations but I think Im missing something around... When I run it I see that remote controller can detect connection of switches but no ping is working.

!/usr/bin/python

from mininet.net import Mininet from mininet.link import TCLink from mininet.cli import CLI from mininet.log import setLogLevel from mininet.node import Controller, RemoteController, OVSKernelAP, OVSSwitch

def topology():

"Create a network."
net = Mininet( controller=RemoteController, link=TCLink, accessPoint=OVSKernelAP )

print "*** Creating nodes"

sta1 = net.addStation( 'sta1', mac='00:00:00:00:00:02', ip='10.0.0.2/8', position='20,50,0' )
sta2 = net.addStation( 'sta2', mac='00:00:00:00:00:03', ip='10.0.0.3/8', position='70,50,0')
sta3 = net.addStation( 'sta3', mac='00:00:00:00:00:04', ip='10.0.0.4/8', position='90,50,0' )

ap1 = net.addAccessPoint( 'ap1', ssid= 'new-ssid', mode= 'g', channel= '5', position='25,50,0', range='35' )
ap2 = net.addAccessPoint( 'ap2', ssid= 'new-ssid', mode= 'g', channel= '5', position='75,50,0', range='35' )
ap3 = net.addAccessPoint( 'ap3', ssid= 'new-ssid', mode= 'g', channel= '5', position='90,50,0', range='35' )
c0 = net.addController('c0', controller=RemoteController, ip='127.0.0.1', port=6633 )
#net.runAlternativeModule('../module/mac80211_hwsim.ko')
net.addLink(ap1, sta1)
net.addLink(ap2, sta2)
net.addLink(ap3, sta3)

net.build()
c0.start()
ap1.start( [c0] )
ap2.start( [c0] )
ap3.start( [c0] )
CLI( net )
net.stop()

if name == 'main': setLogLevel( 'info' ) topology()

Am I missing something? Cuz im getting 100% packet loss. I think I should connect Access points but if I do so, then I gotta connect the controller to a switch and I dunno how workflows will go in that case. Is there any way to connect APs together to exchange the packets/flows between each other?

Best,

ramonfontes commented 7 years ago

I don't think this is an issue. Please use our mailing list for such questions.

There is no connection among APs. So, you got an expected behavior. Please read the manual and discussions that already approach such subject. I think they will help you.

2017-09-07 19:56 GMT-03:00 hamzehmohammadnia notifications@github.com:

Hi,

I have tried to build up a sample topology of three access points connected to three mobile stations but I think Im missing something around... When I run it I see that remote controller can detect connection of switches but no ping is working.

!/usr/bin/python

from mininet.net import Mininet from mininet.link import TCLink from mininet.cli import CLI from mininet.log import setLogLevel from mininet.node import Controller, RemoteController, OVSKernelAP, OVSSwitch

def topology():

"Create a network." net = Mininet( controller=RemoteController, link=TCLink, accessPoint=OVSKernelAP )

print "*** Creating nodes"

sta1 = net.addStation( 'sta1', mac='00:00:00:00:00:02', ip='10.0.0.2/8', position='20,50,0' ) sta2 = net.addStation( 'sta2', mac='00:00:00:00:00:03', ip='10.0.0.3/8', position='70,50,0') sta3 = net.addStation( 'sta3', mac='00:00:00:00:00:04', ip='10.0.0.4/8', position='90,50,0' )

ap1 = net.addAccessPoint( 'ap1', ssid= 'new-ssid', mode= 'g', channel= '5', position='25,50,0', range='35' ) ap2 = net.addAccessPoint( 'ap2', ssid= 'new-ssid', mode= 'g', channel= '5', position='75,50,0', range='35' ) ap3 = net.addAccessPoint( 'ap3', ssid= 'new-ssid', mode= 'g', channel= '5', position='90,50,0', range='35' ) c0 = net.addController('c0', controller=RemoteController, ip='127.0.0.1', port=6633 )

net.runAlternativeModule('../module/mac80211_hwsim.ko')

net.addLink(ap1, sta1) net.addLink(ap2, sta2) net.addLink(ap3, sta3)

net.build() c0.start() ap1.start( [c0] ) ap2.start( [c0] ) ap3.start( [c0] ) CLI( net ) net.stop()

if name == 'main': setLogLevel( 'info' ) topology()

Am I missing something? Cuz im getting 100% packet loss. I think I should connect Access points but if I do so, then I gotta connect the controller to a switch and I dunno how workflows will go in that case. Is there any way to connect APs together to exchange the packets/flows between each other?

Best,

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmeomKERXspI0zaSF6B6bx6vEsrZKAks5sgHS3gaJpZM4PQfdH .

shreyakupadhyay commented 7 years ago

I think this is not an issue as this worked for me after making few modifications. Look at the solution below.

Yeah, there is no flow between access points when you use the above script. You need to add link between access points using

net.addLink(ap1, ap2)
net.addLink(ap2, ap3)

There are few changes you need to make in your script. Add the below line before adding links

print “*** Configuring wifi nodes”
net.configureWifiNodes()

As, according to the position of stations and access points defined by you, sta1 connects to ap1 and sta2,sta3 connects to ap2.

About the connectivity of controller with the access point. That is defined by

ap1.start( [c0] )
ap2.start( [c0] )
ap3.start( [c0] )

The final topology is easily visible in any of remote controller(for example ODL) after making the above modifications. I will also recommend you to read the manual of mininet-wifi. It has really nice explanations to all these rules.

NadiaMOUAWAD commented 6 years ago

good morning, As we can see in the mobility.py code, the mobile stations already have an ip address. I am working on a handover problem in SDN, I am wondering if I can change the IP address of a station when it connects to a new AP. Thanks in advance

ramonfontes commented 6 years ago

Yes. You change it with setIP(), ip addr or even ifconfig.

Sent from my android

On 8 Nov 2017 05:41, "NadiaMOUAWAD" notifications@github.com wrote:

good morning, As we can see in the mobility.py code, the mobile stations already have an ip address. I am working on a handover problem in SDN, I am wondering if I can change the IP address of a station when it connects to a new AP. Thanks in advance

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107#issuecomment-342748513, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmetuFZX9WJjwCrWcn2pGQMsOlMsiLks5s0WktgaJpZM4PQfdH .

NadiaMOUAWAD commented 6 years ago

Good morning, I just have a question about mininet-wifi.

I am trying to run vanet.py or sumo-experimental.py but i am having this kind of error:

Configuring Propagation Model Configuring wifi nodes Traceback (most recent call last): File "./vanet1.py", line 110, in topology() File "./vanet1.py", line 47, in topology net.configureWifiNodes() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6-py2.7.egg/mininet/net.py", line 771, in configureWifiNodes self.stations, self.accessPoints = mininetWiFi.configureWifiNodes(**params) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6-py2.7.egg/mininet/wifiNet.py", line 1039, in configureWifiNodes self.configureWmediumd(stations, accessPoints) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6-py2.7.egg/mininet/wifiNet.py", line 605, in configureWmediumd WmediumdStarter.start() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6-py2.7.egg/mininet/wmediumdConnector.py", line 447, in start stderr=subprocess.STDOUT, preexec_fn=os.setpgrp) File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Can you help me to run the code correctly?

Thanks in advance,

Nadia MOUAWAD

On Wed, Nov 8, 2017 at 12:28 PM, Ramon Fontes notifications@github.com wrote:

Yes. You change it with setIP(), ip addr or even ifconfig.

Sent from my android

On 8 Nov 2017 05:41, "NadiaMOUAWAD" notifications@github.com wrote:

good morning, As we can see in the mobility.py code, the mobile stations already have an ip address. I am working on a handover problem in SDN, I am wondering if I can change the IP address of a station when it connects to a new AP. Thanks in advance

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342748513, or mute the thread https://github.com/notifications/unsubscribe-auth/ AEnmetuFZX9WJjwCrWcn2pGQMsOlMsiLks5s0WktgaJpZM4PQfdH .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107#issuecomment-342775738, or mute the thread https://github.com/notifications/unsubscribe-auth/Afvoi8dgZoQxcYjFKY59uMSfCyguAVWZks5s0YJYgaJpZM4PQfdH .

ramonfontes commented 6 years ago

Did you install wmediumd?

Sent from my android

On 12 Mar 2018 07:57, "NadiaMOUAWAD" notifications@github.com wrote:

Good morning, I just have a question about mininet-wifi.

I am trying to run vanet.py or sumo-experimental.py but i am having this kind of error:

Configuring Propagation Model Configuring wifi nodes Traceback (most recent call last): File "./vanet1.py", line 110, in topology() File "./vanet1.py", line 47, in topology net.configureWifiNodes() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/net.py", line 771, in configureWifiNodes self.stations, self.accessPoints = mininetWiFi.configureWifiNodes(**params) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 1039, in configureWifiNodes self.configureWmediumd(stations, accessPoints) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 605, in configureWmediumd WmediumdStarter.start() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6-py2.7.egg/mininet/ wmediumdConnector.py", line 447, in start stderr=subprocess.STDOUT, preexec_fn=os.setpgrp) File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Can you help me to run the code correctly?

Thanks in advance,

Nadia MOUAWAD

On Wed, Nov 8, 2017 at 12:28 PM, Ramon Fontes notifications@github.com wrote:

Yes. You change it with setIP(), ip addr or even ifconfig.

Sent from my android

On 8 Nov 2017 05:41, "NadiaMOUAWAD" notifications@github.com wrote:

good morning, As we can see in the mobility.py code, the mobile stations already have an ip address. I am working on a handover problem in SDN, I am wondering if I can change the IP address of a station when it connects to a new AP. Thanks in advance

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342748513, or mute the thread https://github.com/notifications/unsubscribe-auth/ AEnmetuFZX9WJjwCrWcn2pGQMsOlMsiLks5s0WktgaJpZM4PQfdH .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342775738, or mute the thread https://github.com/notifications/unsubscribe-auth/ Afvoi8dgZoQxcYjFKY59uMSfCyguAVWZks5s0YJYgaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107#issuecomment-372269477, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmes9B-lVS2h8r5UPuO0rnjDSbviv-ks5tdlScgaJpZM4PQfdH .

NadiaMOUAWAD commented 6 years ago

I tried to install wmediumd by using the command: mininet@ubuntu:~/mininet-wifi$ sudo util/install.sh -l

I end up by this output.

Detected Linux distribution: Ubuntu 14.04 trusty i386 Ubuntu Installing wmediumd sources into /home/mininet/wmediumd Reading package lists... Done Building dependency tree Reading state information... Done libconfig-dev is already the newest version. make is already the newest version. libevent-dev is already the newest version. libnl-3-dev is already the newest version. libnl-genl-3-dev is already the newest version. The following extra packages will be installed: git-man Suggested packages: git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following packages will be upgraded: git git-man 2 upgraded, 0 newly installed, 0 to remove and 635 not upgraded. Need to get 6,437 kB of archives. After this operation, 2,326 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! git git-man E: There are problems and -y was used without --force-yes

Can you figure out what is the problem?

Thanks in advance, Nadia

On Mon, Mar 12, 2018 at 4:44 PM, Ramon Fontes notifications@github.com wrote:

Did you install wmediumd?

Sent from my android

On 12 Mar 2018 07:57, "NadiaMOUAWAD" notifications@github.com wrote:

Good morning, I just have a question about mininet-wifi.

I am trying to run vanet.py or sumo-experimental.py but i am having this kind of error:

Configuring Propagation Model Configuring wifi nodes Traceback (most recent call last): File "./vanet1.py", line 110, in topology() File "./vanet1.py", line 47, in topology net.configureWifiNodes() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/net.py", line 771, in configureWifiNodes self.stations, self.accessPoints = mininetWiFi.configureWifiNodes(**params) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 1039, in configureWifiNodes self.configureWmediumd(stations, accessPoints) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 605, in configureWmediumd WmediumdStarter.start() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6-py2.7.egg/mininet/ wmediumdConnector.py", line 447, in start stderr=subprocess.STDOUT, preexec_fn=os.setpgrp) File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Can you help me to run the code correctly?

Thanks in advance,

Nadia MOUAWAD

On Wed, Nov 8, 2017 at 12:28 PM, Ramon Fontes notifications@github.com wrote:

Yes. You change it with setIP(), ip addr or even ifconfig.

Sent from my android

On 8 Nov 2017 05:41, "NadiaMOUAWAD" notifications@github.com wrote:

good morning, As we can see in the mobility.py code, the mobile stations already have an ip address. I am working on a handover problem in SDN, I am wondering if I can change the IP address of a station when it connects to a new AP. Thanks in advance

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342748513, or mute the thread https://github.com/notifications/unsubscribe-auth/ AEnmetuFZX9WJjwCrWcn2pGQMsOlMsiLks5s0WktgaJpZM4PQfdH .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342775738, or mute the thread https://github.com/notifications/unsubscribe-auth/ Afvoi8dgZoQxcYjFKY59uMSfCyguAVWZks5s0YJYgaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372269477, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmes9B- lVS2h8r5UPuO0rnjDSbviv-ks5tdlScgaJpZM4PQfdH

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107#issuecomment-372334096, or mute the thread https://github.com/notifications/unsubscribe-auth/Afvoi9nkP8oZqc5ua3_9C8A_NJZHfUnfks5tdom2gaJpZM4PQfdH .

ramonfontes commented 6 years ago

some missing source in /etc/apt/sources.list.

Sent from my android

On 13 Mar 2018 05:15, "NadiaMOUAWAD" notifications@github.com wrote:

I tried to install wmediumd by using the command: mininet@ubuntu:~/mininet-wifi$ sudo util/install.sh -l

I end up by this output.

Detected Linux distribution: Ubuntu 14.04 trusty i386 Ubuntu Installing wmediumd sources into /home/mininet/wmediumd Reading package lists... Done Building dependency tree Reading state information... Done libconfig-dev is already the newest version. make is already the newest version. libevent-dev is already the newest version. libnl-3-dev is already the newest version. libnl-genl-3-dev is already the newest version. The following extra packages will be installed: git-man Suggested packages: git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following packages will be upgraded: git git-man 2 upgraded, 0 newly installed, 0 to remove and 635 not upgraded. Need to get 6,437 kB of archives. After this operation, 2,326 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! git git-man E: There are problems and -y was used without --force-yes

Can you figure out what is the problem?

Thanks in advance, Nadia

On Mon, Mar 12, 2018 at 4:44 PM, Ramon Fontes notifications@github.com wrote:

Did you install wmediumd?

Sent from my android

On 12 Mar 2018 07:57, "NadiaMOUAWAD" notifications@github.com wrote:

Good morning, I just have a question about mininet-wifi.

I am trying to run vanet.py or sumo-experimental.py but i am having this kind of error:

Configuring Propagation Model Configuring wifi nodes Traceback (most recent call last): File "./vanet1.py", line 110, in topology() File "./vanet1.py", line 47, in topology net.configureWifiNodes() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/net.py", line 771, in configureWifiNodes self.stations, self.accessPoints = mininetWiFi.configureWifiNodes(**params) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 1039, in configureWifiNodes self.configureWmediumd(stations, accessPoints) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 605, in configureWmediumd WmediumdStarter.start() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/ wmediumdConnector.py", line 447, in start stderr=subprocess.STDOUT, preexec_fn=os.setpgrp) File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Can you help me to run the code correctly?

Thanks in advance,

Nadia MOUAWAD

On Wed, Nov 8, 2017 at 12:28 PM, Ramon Fontes < notifications@github.com> wrote:

Yes. You change it with setIP(), ip addr or even ifconfig.

Sent from my android

On 8 Nov 2017 05:41, "NadiaMOUAWAD" notifications@github.com wrote:

good morning, As we can see in the mobility.py code, the mobile stations already have an ip address. I am working on a handover problem in SDN, I am wondering if I can change the IP address of a station when it connects to a new AP. Thanks in advance

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342748513, or mute the thread https://github.com/notifications/unsubscribe-auth/ AEnmetuFZX9WJjwCrWcn2pGQMsOlMsiLks5s0WktgaJpZM4PQfdH .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342775738, or mute the thread https://github.com/notifications/unsubscribe-auth/ Afvoi8dgZoQxcYjFKY59uMSfCyguAVWZks5s0YJYgaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372269477, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmes9B- lVS2h8r5UPuO0rnjDSbviv-ks5tdlScgaJpZM4PQfdH

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372334096, or mute the thread https://github.com/notifications/unsubscribe- auth/Afvoi9nkP8oZqc5ua3_9C8A_NJZHfUnfks5tdom2gaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107#issuecomment-372581721, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmehwvliUPcRx4-_VqaPvox6S-vjibks5td4A1gaJpZM4PQfdH .

NadiaMOUAWAD commented 6 years ago

Good morning,

I just want you to excuse me for bothering with my list of questions, but I have to start my simulations for my PhD thesis.

I reinstalled mininet-wifi with wmediumd. the code is running well this time, but when I start vanet.py for example, when the CLI strats after 30 second I have this error: Exception in thread vanet: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.target(*self.args, **self.__kwargs) File "/usr/local/lib/python2.7/dist-packages/mininet_wifi-2.2.0d1-py2.7.egg/mininet/wifi/vanet.py", line 59, in start self.display_grid(aps, params['connections'], params['nroads']) File "/usr/local/lib/python2.7/dist-packages/mininet_wifi-2.2.0d1-py2.7.egg/mininet/wifi/vanet.py", line 125, in display_grid self.points[n] = self.get_line(int(x1[0]), int(y1[0]), IndexError: list index out of range.

can u you please help me figuring out the problem?

Thanks in advance, Nadia

On Tue, Mar 13, 2018 at 12:09 PM, Ramon Fontes notifications@github.com wrote:

some missing source in /etc/apt/sources.list.

Sent from my android

On 13 Mar 2018 05:15, "NadiaMOUAWAD" notifications@github.com wrote:

I tried to install wmediumd by using the command: mininet@ubuntu:~/mininet-wifi$ sudo util/install.sh -l

I end up by this output.

Detected Linux distribution: Ubuntu 14.04 trusty i386 Ubuntu Installing wmediumd sources into /home/mininet/wmediumd Reading package lists... Done Building dependency tree Reading state information... Done libconfig-dev is already the newest version. make is already the newest version. libevent-dev is already the newest version. libnl-3-dev is already the newest version. libnl-genl-3-dev is already the newest version. The following extra packages will be installed: git-man Suggested packages: git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following packages will be upgraded: git git-man 2 upgraded, 0 newly installed, 0 to remove and 635 not upgraded. Need to get 6,437 kB of archives. After this operation, 2,326 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! git git-man E: There are problems and -y was used without --force-yes

Can you figure out what is the problem?

Thanks in advance, Nadia

On Mon, Mar 12, 2018 at 4:44 PM, Ramon Fontes notifications@github.com wrote:

Did you install wmediumd?

Sent from my android

On 12 Mar 2018 07:57, "NadiaMOUAWAD" notifications@github.com wrote:

Good morning, I just have a question about mininet-wifi.

I am trying to run vanet.py or sumo-experimental.py but i am having this kind of error:

Configuring Propagation Model Configuring wifi nodes Traceback (most recent call last): File "./vanet1.py", line 110, in topology() File "./vanet1.py", line 47, in topology net.configureWifiNodes() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/net.py", line 771, in configureWifiNodes self.stations, self.accessPoints = mininetWiFi.configureWifiNodes(**params) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 1039, in configureWifiNodes self.configureWmediumd(stations, accessPoints) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 605, in configureWmediumd WmediumdStarter.start() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/ wmediumdConnector.py", line 447, in start stderr=subprocess.STDOUT, preexec_fn=os.setpgrp) File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Can you help me to run the code correctly?

Thanks in advance,

Nadia MOUAWAD

On Wed, Nov 8, 2017 at 12:28 PM, Ramon Fontes < notifications@github.com> wrote:

Yes. You change it with setIP(), ip addr or even ifconfig.

Sent from my android

On 8 Nov 2017 05:41, "NadiaMOUAWAD" notifications@github.com wrote:

good morning, As we can see in the mobility.py code, the mobile stations already have an ip address. I am working on a handover problem in SDN, I am wondering if I can change the IP address of a station when it connects to a new AP. Thanks in advance

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342748513, or mute the thread https://github.com/notifications/unsubscribe-auth/ AEnmetuFZX9WJjwCrWcn2pGQMsOlMsiLks5s0WktgaJpZM4PQfdH .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342775738, or mute the thread https://github.com/notifications/unsubscribe-auth/ Afvoi8dgZoQxcYjFKY59uMSfCyguAVWZks5s0YJYgaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372269477, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmes9B- lVS2h8r5UPuO0rnjDSbviv-ks5tdlScgaJpZM4PQfdH

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372334096, or mute the thread https://github.com/notifications/unsubscribe- auth/Afvoi9nkP8oZqc5ua3_9C8A_NJZHfUnfks5tdom2gaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372581721, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmehwvliUPcRx4-_ VqaPvox6S-vjibks5td4A1gaJpZM4PQfdH

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107#issuecomment-372613069, or mute the thread https://github.com/notifications/unsubscribe-auth/Afvoi4dH1CRSIUMqvNxBjS0Yd4c-ja7qks5td5rmgaJpZM4PQfdH .

ramonfontes commented 6 years ago

Did you use the cursor to draw your topology?

Sent from my android

On 15 Mar 2018 03:51, "NadiaMOUAWAD" notifications@github.com wrote:

Good morning,

I just want you to excuse me for bothering with my list of questions, but I have to start my simulations for my PhD thesis.

I reinstalled mininet-wifi with wmediumd. the code is running well this time, but when I start vanet.py for example, when the CLI strats after 30 second I have this error: Exception in thread vanet: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.target(*self.args, **self.__kwargs) File "/usr/local/lib/python2.7/dist-packages/mininet_wifi-2. 2.0d1-py2.7.egg/mininet/wifi/vanet.py", line 59, in start self.display_grid(aps, params['connections'], params['nroads']) File "/usr/local/lib/python2.7/dist-packages/mininet_wifi-2. 2.0d1-py2.7.egg/mininet/wifi/vanet.py", line 125, in display_grid self.points[n] = self.get_line(int(x1[0]), int(y1[0]), IndexError: list index out of range.

can u you please help me figuring out the problem?

Thanks in advance, Nadia

On Tue, Mar 13, 2018 at 12:09 PM, Ramon Fontes notifications@github.com wrote:

some missing source in /etc/apt/sources.list.

Sent from my android

On 13 Mar 2018 05:15, "NadiaMOUAWAD" notifications@github.com wrote:

I tried to install wmediumd by using the command: mininet@ubuntu:~/mininet-wifi$ sudo util/install.sh -l

I end up by this output.

Detected Linux distribution: Ubuntu 14.04 trusty i386 Ubuntu Installing wmediumd sources into /home/mininet/wmediumd Reading package lists... Done Building dependency tree Reading state information... Done libconfig-dev is already the newest version. make is already the newest version. libevent-dev is already the newest version. libnl-3-dev is already the newest version. libnl-genl-3-dev is already the newest version. The following extra packages will be installed: git-man Suggested packages: git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following packages will be upgraded: git git-man 2 upgraded, 0 newly installed, 0 to remove and 635 not upgraded. Need to get 6,437 kB of archives. After this operation, 2,326 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! git git-man E: There are problems and -y was used without --force-yes

Can you figure out what is the problem?

Thanks in advance, Nadia

On Mon, Mar 12, 2018 at 4:44 PM, Ramon Fontes < notifications@github.com> wrote:

Did you install wmediumd?

Sent from my android

On 12 Mar 2018 07:57, "NadiaMOUAWAD" notifications@github.com wrote:

Good morning, I just have a question about mininet-wifi.

I am trying to run vanet.py or sumo-experimental.py but i am having this kind of error:

Configuring Propagation Model Configuring wifi nodes Traceback (most recent call last): File "./vanet1.py", line 110, in topology() File "./vanet1.py", line 47, in topology net.configureWifiNodes() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/net.py", line 771, in configureWifiNodes self.stations, self.accessPoints = mininetWiFi.configureWifiNodes(**params) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 1039, in configureWifiNodes self.configureWmediumd(stations, accessPoints) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 605, in configureWmediumd WmediumdStarter.start() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/ wmediumdConnector.py", line 447, in start stderr=subprocess.STDOUT, preexec_fn=os.setpgrp) File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Can you help me to run the code correctly?

Thanks in advance,

Nadia MOUAWAD

On Wed, Nov 8, 2017 at 12:28 PM, Ramon Fontes < notifications@github.com> wrote:

Yes. You change it with setIP(), ip addr or even ifconfig.

Sent from my android

On 8 Nov 2017 05:41, "NadiaMOUAWAD" notifications@github.com wrote:

good morning, As we can see in the mobility.py code, the mobile stations already have an ip address. I am working on a handover problem in SDN, I am wondering if I can change the IP address of a station when it connects to a new AP. Thanks in advance

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342748513, or mute the thread https://github.com/notifications/unsubscribe-auth/ AEnmetuFZX9WJjwCrWcn2pGQMsOlMsiLks5s0WktgaJpZM4PQfdH .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342775738, or mute the thread https://github.com/notifications/unsubscribe-auth/ Afvoi8dgZoQxcYjFKY59uMSfCyguAVWZks5s0YJYgaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372269477, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmes9B- lVS2h8r5UPuO0rnjDSbviv-ks5tdlScgaJpZM4PQfdH

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372334096, or mute the thread https://github.com/notifications/unsubscribe- auth/Afvoi9nkP8oZqc5ua3_9C8A_NJZHfUnfks5tdom2gaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372581721, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmehwvliUPcRx4-_ VqaPvox6S-vjibks5td4A1gaJpZM4PQfdH

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372613069, or mute the thread https://github.com/notifications/unsubscribe-auth/ Afvoi4dH1CRSIUMqvNxBjS0Yd4c-ja7qks5td5rmgaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107#issuecomment-373278653, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmeuuJN__MYcCGu3_ifmoxHbwEsPaMks5teg9_gaJpZM4PQfdH .

NadiaMOUAWAD commented 6 years ago

Okay. Thank you so much for your help.

On Thu, Mar 15, 2018 at 12:27 PM, Ramon Fontes notifications@github.com wrote:

Did you use the cursor to draw your topology?

Sent from my android

On 15 Mar 2018 03:51, "NadiaMOUAWAD" notifications@github.com wrote:

Good morning,

I just want you to excuse me for bothering with my list of questions, but I have to start my simulations for my PhD thesis.

I reinstalled mininet-wifi with wmediumd. the code is running well this time, but when I start vanet.py for example, when the CLI strats after 30 second I have this error: Exception in thread vanet: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.target(*self.args, **self.__kwargs) File "/usr/local/lib/python2.7/dist-packages/mininet_wifi-2. 2.0d1-py2.7.egg/mininet/wifi/vanet.py", line 59, in start self.display_grid(aps, params['connections'], params['nroads']) File "/usr/local/lib/python2.7/dist-packages/mininet_wifi-2. 2.0d1-py2.7.egg/mininet/wifi/vanet.py", line 125, in display_grid self.points[n] = self.get_line(int(x1[0]), int(y1[0]), IndexError: list index out of range.

can u you please help me figuring out the problem?

Thanks in advance, Nadia

On Tue, Mar 13, 2018 at 12:09 PM, Ramon Fontes <notifications@github.com

wrote:

some missing source in /etc/apt/sources.list.

Sent from my android

On 13 Mar 2018 05:15, "NadiaMOUAWAD" notifications@github.com wrote:

I tried to install wmediumd by using the command: mininet@ubuntu:~/mininet-wifi$ sudo util/install.sh -l

I end up by this output.

Detected Linux distribution: Ubuntu 14.04 trusty i386 Ubuntu Installing wmediumd sources into /home/mininet/wmediumd Reading package lists... Done Building dependency tree Reading state information... Done libconfig-dev is already the newest version. make is already the newest version. libevent-dev is already the newest version. libnl-3-dev is already the newest version. libnl-genl-3-dev is already the newest version. The following extra packages will be installed: git-man Suggested packages: git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following packages will be upgraded: git git-man 2 upgraded, 0 newly installed, 0 to remove and 635 not upgraded. Need to get 6,437 kB of archives. After this operation, 2,326 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! git git-man E: There are problems and -y was used without --force-yes

Can you figure out what is the problem?

Thanks in advance, Nadia

On Mon, Mar 12, 2018 at 4:44 PM, Ramon Fontes < notifications@github.com> wrote:

Did you install wmediumd?

Sent from my android

On 12 Mar 2018 07:57, "NadiaMOUAWAD" notifications@github.com wrote:

Good morning, I just have a question about mininet-wifi.

I am trying to run vanet.py or sumo-experimental.py but i am having this kind of error:

Configuring Propagation Model Configuring wifi nodes Traceback (most recent call last): File "./vanet1.py", line 110, in topology() File "./vanet1.py", line 47, in topology net.configureWifiNodes() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/net.py", line 771, in configureWifiNodes self.stations, self.accessPoints = mininetWiFi.configureWifiNodes(**params) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 1039, in configureWifiNodes self.configureWmediumd(stations, accessPoints) File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/wifiNet.py", line 605, in configureWmediumd WmediumdStarter.start() File "/usr/local/lib/python2.7/dist-packages/mininet-2.1r6- py2.7.egg/mininet/ wmediumdConnector.py", line 447, in start stderr=subprocess.STDOUT, preexec_fn=os.setpgrp) File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Can you help me to run the code correctly?

Thanks in advance,

Nadia MOUAWAD

On Wed, Nov 8, 2017 at 12:28 PM, Ramon Fontes < notifications@github.com> wrote:

Yes. You change it with setIP(), ip addr or even ifconfig.

Sent from my android

On 8 Nov 2017 05:41, "NadiaMOUAWAD" notifications@github.com wrote:

good morning, As we can see in the mobility.py code, the mobile stations already have an ip address. I am working on a handover problem in SDN, I am wondering if I can change the IP address of a station when it connects to a new AP. Thanks in advance

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342748513, or mute the thread https://github.com/notifications/unsubscribe-auth/ AEnmetuFZX9WJjwCrWcn2pGQMsOlMsiLks5s0WktgaJpZM4PQfdH .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-342775738, or mute the thread https://github.com/notifications/unsubscribe-auth/ Afvoi8dgZoQxcYjFKY59uMSfCyguAVWZks5s0YJYgaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372269477, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmes9B- lVS2h8r5UPuO0rnjDSbviv-ks5tdlScgaJpZM4PQfdH

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372334096, or mute the thread https://github.com/notifications/unsubscribe- auth/Afvoi9nkP8oZqc5ua3_9C8A_NJZHfUnfks5tdom2gaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372581721, or mute the thread https://github.com/notifications/unsubscribe- auth/AEnmehwvliUPcRx4-_ VqaPvox6S-vjibks5td4A1gaJpZM4PQfdH

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-372613069, or mute the thread https://github.com/notifications/unsubscribe-auth/ Afvoi4dH1CRSIUMqvNxBjS0Yd4c-ja7qks5td5rmgaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-373278653, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmeuuJN__MYcCGu3_ ifmoxHbwEsPaMks5teg9_gaJpZM4PQfdH

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107#issuecomment-373329768, or mute the thread https://github.com/notifications/unsubscribe-auth/Afvoi46yetJhLKJtf6zbY9K8pOzaoAqtks5tekIBgaJpZM4PQfdH .

ramonfontes commented 6 years ago

This is not an issue at all. I will appreciate if you send such questions to the mailing list.

NadiaMOUAWAD commented 6 years ago

Good morning,

I just want to ask you about sumo-experimental.py When I run the code, i got this (sh: 1: sumo-gui: not found ) after the creation of nodes. I am running the code from ~/mininet-wifi/mininet/examples.

Thanks in advance.

ramonfontes commented 6 years ago

If it says: "sumo-gui: not found", you haven't installed sumo-gui.

NadiaMOUAWAD commented 6 years ago

Good morning,

I just want to ask you if I want to write the following steps in the code:

If he car is connected to a specific RSU: SetIP()

How can I transform the command in the if statement to a code line? To be more clear, I just want to make the car change its IP according to its point of attachement changes.

Thanks in advance,

Nadia

On Sun, Mar 18, 2018 at 1:45 PM, Ramon Fontes notifications@github.com wrote:

If it says: "sumo-gui: not found", you haven't installed sumo-gui.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107#issuecomment-373991771, or mute the thread https://github.com/notifications/unsubscribe-auth/Afvoi1yYdk_zINj_FynHJry1njQOqrBVks5tfkjHgaJpZM4PQfdH .

ramonfontes commented 6 years ago

This is not an issue. :( Please use the mailing list for such questions!

Sent from my android

On 20 Mar 2018 03:23, "NadiaMOUAWAD" notifications@github.com wrote:

Good morning,

I just want to ask you if I want to write the following steps in the code:

If he car is connected to a specific RSU: SetIP()

How can I transform the command in the if statement to a code line? To be more clear, I just want to make the car change its IP according to its point of attachement changes.

Thanks in advance,

Nadia

On Sun, Mar 18, 2018 at 1:45 PM, Ramon Fontes notifications@github.com wrote:

If it says: "sumo-gui: not found", you haven't installed sumo-gui.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/ 107#issuecomment-373991771, or mute the thread https://github.com/notifications/unsubscribe-auth/Afvoi1yYdk_zINj_ FynHJry1njQOqrBVks5tfkjHgaJpZM4PQfdH .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/107#issuecomment-374489207, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmehmiimPD4hskcEHPN_9rxQ2Dyp5Qks5tgKBogaJpZM4PQfdH .

Arupkarbabu commented 3 years ago

Sir i have doubt regarding mininet-wifi it is possible or not sir ? two AP AND multiple ADHOC network station connect with one controller used station---AP1---ovsSwitch---ryucontroller station---AP2---ovsSwitch---ryucontroller

Arupkarbabu commented 3 years ago

import sys from mn_wifi.net import Mininet_wifi from mn_wifi.cli import CLI from mininet.log import setLogLevel, info from mn_wifi.link import adhoc from mn_wifi.link import wmediumd from mininet.node import RemoteController from mn_wifi.wmediumdConnector import interference

def topology(): "Create a network." net = Mininet_wifi(controller=RemoteController ,link=wmediumd, wmediumd_mode=interference)

info("*** Creating nodes\n")
sta1 = net.addStation('sta1',mac='00:00:00:00:00:02', ip='10.0.0.2/8') 
sta2 = net.addStation('sta2',mac='00:00:00:00:00:03', ip='10.0.0.3/8')  
sta3 = net.addStation('sta3')
sta4 = net.addStation('sta4')
sta5 = net.addStation('sta5')
sta6 = net.addStation('sta6')

net.setPropagationModel(model="logDistance", exp=4)

ap1 = net.addAccessPoint('ap1', ssid="simplewifi",mode="g", channel="5")
ap2 = net.addAccessPoint('ap2', ssid="simplewifi2",mode="g", channel="5")

c0 = net.addController('c0', controller=RemoteController, ip='127.0.0.1',port=6633)

info("*** Configuring wifi nodes\n")
net.configureWifiNodes()
info("*** Associating...\n")
net.addLink(ap1, sta1)
net.addLink(ap1, sta2)
net.addLink(ap1, sta3)
net.addLink(sta1, intf='sta1-wlan0', cls=adhoc, ssid='adhocNet')
net.addLink(sta2, intf='sta2-wlan0', cls=adhoc, ssid='adhocNet')
net.addLink(sta3, intf='sta3-wlan0', cls=adhoc, ssid='adhocNet')
net.addLink(ap2, sta4)
net.addLink(ap2, sta5)
net.addLink(ap2, sta6)
net.addLink(sta4, intf='sta4-wlan0', cls=adhoc, ssid='adhocNet1')
net.addLink(sta5, intf='sta5-wlan0', cls=adhoc, ssid='adhocNet1')
net.addLink(sta6, intf='sta6-wlan0', cls=adhoc, ssid='adhocNet1')
net.addLink(ap1, ap2)

info("*** Starting network\n")
net.build()
c0.start()
ap1.start([c0])
ap2.start([c0])
info("*** Addressing...\n")
sta1.setIP('192.168.10.1/24', intf="sta1-wlan0")
sta2.setIP('192.168.10.2/24', intf="sta2-wlan0")
sta3.setIP('192.168.10.2/24', intf="sta3-wlan0")

sta4.setIP('192.168.20.1/24', intf="sta4-wlan0")
sta5.setIP('192.168.20.2/24', intf="sta5-wlan0")
sta6.setIP('192.168.20.3/24', intf="sta6-wlan0")

info("*** Running CLI\n")
CLI(net)

info("*** Stopping network\n")
net.stop()

if name == 'main': setLogLevel('info') topology()

Arupkarbabu commented 3 years ago

sta1 ping sta2

sta1 ping sta2 PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data. From 10.0.0.1 icmp_seq=1 Destination Host Unreachable From 10.0.0.1 icmp_seq=2 Destination Host Unreachable From 10.0.0.1 icmp_seq=3 Destination Host Unreachable From 10.0.0.1 icmp_seq=4 Destination Host Unreachable From 10.0.0.1 icmp_seq=5 Destination Host Unreachable From 10.0.0.1 icmp_seq=6 Destination Host Unreachable From 10.0.0.1 icmp_seq=7 Destination Host Unreachable From 10.0.0.1 icmp_seq=8 Destination Host Unreachable From 10.0.0.1 icmp_seq=9 Destination Host Unreachable From 10.0.0.1 icmp_seq=10 Destination Host Unreachable From 10.0.0.1 icmp_seq=11 Destination Host Unreachable From 10.0.0.1 icmp_seq=12 Destination Host Unreachable From 10.0.0.1 icmp_seq=13 Destination Host Unreachable From 10.0.0.1 icmp_seq=14 Destination Host Unreachable From 10.0.0.1 icmp_seq=15 Destination Host Unreachable From 10.0.0.1 icmp_seq=16 Destination Host Unreachable From 10.0.0.1 icmp_seq=17 Destination Host Unreachable From 10.0.0.1 icmp_seq=18 Destination Host Unreachable From 10.0.0.1 icmp_seq=19 Destination Host Unreachable From 10.0.0.1 icmp_seq=20 Destination Host Unreachable From 10.0.0.1 icmp_seq=21 Destination Host Unreachable From 10.0.0.1 icmp_seq=22 Destination Host Unreachable From 10.0.0.1 icmp_seq=23 Destination Host Unreachable From 10.0.0.1 icmp_seq=24 Destination Host Unreachable From 10.0.0.1 icmp_seq=25 Destination Host Unreachable From 10.0.0.1 icmp_seq=26 Destination Host Unreachable From 10.0.0.1 icmp_seq=27 Destination Host Unreachable

Arupkarbabu commented 3 years ago

have a example regarding this implementation part .two Ap and multiple adhoc network . help me ?