station can ping ap2 but cannot ping stations connected to ap2

205 views
Skip to first unread message

ANDRE MUNIZ DEMORI

unread,
Aug 19, 2022, 4:38:36 PM8/19/22
to mininet-wifi-discuss

I tried the following the book creating two wlans for a station, however sta1 can only talk to the stations connected to AP1, although iwconfig confirms that it is connected to both APs. sta1 can ping ap2 but cannot ping stations connected to ap2 (sta4 and sta5).

Any suggestions on how to solve this problem and make sta1 talk to sta4 and sta5 as well?


Captura de tela de 2022-08-19 17-18-58.png



Ramon Fontes

unread,
Aug 19, 2022, 4:49:22 PM8/19/22
to ANDRE MUNIZ DEMORI, mininet-wifi-discuss
How APs are connected with each other? Which data link layer protocol are you using?

Sent from my android

--
You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mininet-wifi-discuss/d60b0aaa-292b-4f79-bc09-0d226631f019n%40googlegroups.com.

ANDRE MUNIZ DEMORI

unread,
Aug 19, 2022, 4:54:15 PM8/19/22
to mininet-wifi-discuss
I don't want to connect ap1 with ap2. The goal is for sta2 and sta3 not to communicate with sta4 and sta5, but everyone can communicate with sta1. This is why sta1 is connected with both aps

But what is happening is that sta1 cannot communicate with sta4 and sta5.

ANDRE MUNIZ DEMORI

unread,
Aug 19, 2022, 4:56:33 PM8/19/22
to mininet-wifi-discuss
#!/usr/bin/python#!/usr/bin/python

'Setting position of the nodes'

import sys

from mininet.link import TCIntf
from mininet.log import setLogLevel, info
from mn_wifi.cli import CLI
from mn_wifi.net import Mininet_wifi

from mn_wifi.link import wmediumd, mesh
from mn_wifi.wmediumdConnector import interference


def topology(args):

net = Mininet_wifi()

info("*** Creating nodes\n")
ap1 = net.addAccessPoint('ap1', ssid='ssid-ap1', mode='g', channel='1',
failMode="standalone", mac='00:00:00:00:00:01',
position='347.414,572.84,0', range=150)
ap2 = net.addAccessPoint('ap2', ssid='ssid-ap2', mode='g', channel='1',
failMode="standalone", mac='00:00:00:00:00:02',
position='120.402,441.152,0', range=150)
net.addStation('sta1', mac='00:00:00:00:00:03', ip='10.0.0.1/8',
position='231.034,515.226,0', wlans=2)
net.addStation('sta2', mac='00:00:00:00:00:04', ip='10.0.0.2/8',
position='338.793,437.037,0')
net.addStation('sta3', mac='00:00:00:00:00:05', ip='10.0.0.3/8',
position='460.92,511.111,0')
net.addStation('sta4', mac='00:00:00:00:00:06', ip='10.0.0.4/8',
position='101.724,506.996,0')
net.addStation('sta5', mac='00:00:00:00:00:07', ip='10.0.0.5/8',
position='137.644,408.23,0')

c1 = net.addController('c1')


info("*** Configuring propagation model\n")
net.setPropagationModel(model="logDistance", exp=4.5)

info("*** Configuring wifi nodes\n")
net.configureWifiNodes()

info("*** Creating links\n")


if '-p' not in args:
net.plotGraph(max_x=800, max_y=800)

info("*** Starting network\n")
net.build()
c1.start()
ap1.start([c1])
ap2.start([c1])

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

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


if __name__ == '__main__':
setLogLevel('info')
topology(sys.argv)

Ramon Fontes

unread,
Aug 19, 2022, 5:04:07 PM8/19/22
to ANDRE MUNIZ DEMORI, mininet-wifi-discuss
Can you please confirm that sta1 is connected to both APs?
Also, can you please let us know about the ip configuration?

Sent from my android

ANDRE MUNIZ DEMORI

unread,
Aug 19, 2022, 5:09:13 PM8/19/22
to mininet-wifi-discuss
As you can see below, this is indeed connected to the two APs, one on each interface

mininet-wifi> sta1 iwconfig
lo        no wireless extensions.

sta1-wlan0  IEEE 802.11  ESSID:"ssid-ap1"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:00:00:00:00:01  
          Bit Rate:1 Mb/s   Tx-Power=14 dBm  
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-30 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

sta1-wlan1  IEEE 802.11  ESSID:"ssid-ap2"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:00:00:00:00:02  
          Bit Rate:1 Mb/s   Tx-Power=14 dBm  
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-30 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

IP config:

info("*** Creating nodes\n")
#APS
ap1 = net.addAccessPoint('ap1', ssid='ssid-ap1', mode='g', channel='1',failMode="standalone", mac='00:00:00:00:00:01',position='347.414,572.84,0', range=150)
ap2 = net.addAccessPoint('ap2', ssid='ssid-ap2', mode='g', channel='1', failMode="standalone", mac='00:00:00:00:00:02', position='120.402,441.152,0', range=150)

#STATIONS
net.addStation('sta1', mac='00:00:00:00:00:03', ip='10.0.0.1/8', position='231.034,515.226,0', wlans=2) # 2 wlans --> 1 to ap1 other to ap2

net.addStation('sta2', mac='00:00:00:00:00:04', ip='10.0.0.2/8', position='338.793,437.037,0') 
net.addStation('sta3', mac='00:00:00:00:00:05',  ip='10.0.0.3/8', position='460.92,511.111,0') 
net.addStation('sta4', mac='00:00:00:00:00:06', ip='10.0.0.4/8', position='101.724,506.996,0') 
net.addStation('sta5', mac='00:00:00:00:00:07', ip='10.0.0.5/8', position='137.644,408.23,0')

Ramon Fontes

unread,
Aug 19, 2022, 5:13:06 PM8/19/22
to ANDRE MUNIZ DEMORI, mininet-wifi-discuss
Dear,

This is a simple question: what is the ip addr of the 2nd interface of sta1?

Sent from my android

ANDRE MUNIZ DEMORI

unread,
Aug 19, 2022, 5:26:21 PM8/19/22
to mininet-wifi-discuss
I set the IP address on both interfaces and it keeps giving the same error. sta1 can ping ap2 but it cannot ping sta4 and sta5.

info("*** Addressing...\n")
sta1.setIP('10.0.0.1/8', intf="sta1-wlan0")
sta1.setIP('10.0.0.6/8', intf="sta1-wlan1")

So the ip adress on the second interface is 10.0.0.6, confirmed by iwconfig

Ramon Fontes

unread,
Aug 19, 2022, 5:29:12 PM8/19/22
to ANDRE MUNIZ DEMORI, mininet-wifi-discuss
Two network interfaces on the same subnet? Really? I think there are some computer networking basics missing here.

Sent from my android

ANDRE MUNIZ DEMORI

unread,
Aug 19, 2022, 5:31:03 PM8/19/22
to mininet-wifi-discuss
ifconfig*

ANDRE MUNIZ DEMORI

unread,
Aug 19, 2022, 7:20:23 PM8/19/22
to mininet-wifi-discuss
It worked. Thanks. I will review the missing concepts.
Reply all
Reply to author
Forward
0 new messages