In WSN I want to set up static routing instead of doing it via inbuilt routing protocols. Do I need to change the config file? Or should I modify the code?
As of NetSim v10.2, Static routes for sensors cannot be configured through the GUI.
You can perform static routing using text files and modifications to the configuration file:
Static routing file format:
route ADD MASK METRIC IF
Eg:
route ADD 10.0.0.0 MASK 255.255.0.0 10.0.0.2 METRIC 1 IF 1
A separate Static routing file is required for each device. Save each file with the file-name containing the device name. For example the static routing file for Sensor A can be saved as SENSOR_A_STATIC_IP_ROUTE.txt.