Mininet-WiFi CLI Commands and Attributes¶
A list of commands and attributes you may use include:
- help¶
Help command
- link node1 node2 up/down¶
Link Up/Down: For fault tolerance testing, it can be helpful to bring links up and down
- node.setAssociation(ap1, intf='node-wlan0')¶
Forcing Association
- node.setRange(10, intf='node-wlan0') or net.addStation(... range=10)¶
Setting Signal Range
- node.wintfs[0].range¶
Getting Signal Range
- node.setAntennaGain(10, intf='node-wlan0') or net.addStation(... antennaGain=10)¶
Setting the Antenna Gain
- node.wintfs[0].antennaGain¶
Getting the Antenna Range
- node.setTxPower(10, intf='node-wlan0') or net.addStation(... txpower=10)¶
Setting the Transmission Power
- node.wintfs[0].power¶
Getting the Transmission Power
- node.setChannel(1, intf='node-wlan0')¶
Setting the Channel
- node.wintfs[0].channel¶
Getting the Channel
- node.setIntfName('newName', 0)¶
Setting a new interface name: you can replace newName by any name and 0 by the id of the interface. For example: if the original interface is node-wlan0 the id should by 0 while node-wlan1 should be 1 and so on.
- node.show()¶
Showing Nodes
- node.hide()¶
Hiding Nodes
- node.set_circle_color('r') # for red color¶
Setting Circle Color
- node.setMasterMode(intf='node-wlan0', ssid='new-ssid', channel='1', mode='g')¶
Setting Master Mode
- node.setManagedMode(intf='node-wlan0')¶
Setting Managed Mode
- node.setAdhocMode(intf='node-wlan0')¶
Setting Adhoc Mode
- node.setMeshMode(intf='node-wlan0')¶
Setting Mesh Mode
- node.setPosition('10,10,0') # x=10, y=10, z=0¶
Setting Node Position
- node.position¶
Getting Node Position
- node.stop_()¶
Shutting AP down
- node.start_()¶
Bringing AP up
- stop¶
Pause the simulation
- start¶
Continue the simulation