Closed ry4nzhu closed 3 years ago
Yes. The plot()
attribute has been removed from the Host
object. However, you can implement your own plot()
attribute in node.py
.
Ok, if I comment out the h1.plot(position='35,90,0')
and s3.plot(position='35,80,0')
in the script, I cannot ping from sta1 to h1. Do you know how to make a station be able to ping the host connected to an AP?
Did you check the association between station and ap, and the flow table in s3
?
mininet-wifi> sta1 iwconfig
sta1-wlan0 IEEE 802.11 ESSID:"new-ssid1"
Mode:Managed Frequency:2.412 GHz Access Point: 02:00:00:00:01:00
Bit Rate:1 Mb/s Tx-Power=14 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=70/70 Signal level=-36 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
lo no wireless extensions.
mininet-wifi> sta1 ping h1
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
^C
--- 10.0.0.2 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2052ms
mininet-wifi> sta1 iwconfig
sta1-wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
lo no wireless extensions.
It looks like the station is associated with ap1 first, but when I tried to ping h1, it is not associated anymore. And when I tried sh ovs-ofctl dump-flows s3
, there is no output.
Unfortunately, I'm unable to reproduce the issue. Please make sure that Network Manager is not running.
Ok it looks like the network manager somehow got active again. Close this.
I was trying to execute the following script:
but I got AttributeError: 'Host' object has no attribute 'plot'. Is this method removed? Can anyone help me on how to set a position for the host and switch object in mininet?