NetSim allows users to interact with the simulation (via networking commands) at run-time via a socket or through a file. User Interactions make simulation more realistic by allowing command execution to view/modify certain device parameters during run-time.
Let us create a create a basic network scenario and analyze in NetSim. Let us consider Internetworks. To create a new scenario, go to New a Internetworks Click & drop Wired Nodes and Router onto the Simulation Environment and link them as shown below.
Click the Application icon present on ribbon and set the Application type as CBR. The Source_Id is 1 and Destination_Id is 2.
Click on run simulation and set Simulation Time as 1000 sec. In the Run time Interaction tab set Interactive Simulation as True.
Then Accept simulation (NetSimCore.exe) will start running, now it is waiting for first client to connect
Now go to network scenario right click on Router_3 and select NetSim Console
Now Client (NetSimCLI.exe) will start running and it will try to establish connection after connection established it will show like this
Commands used:
To Configure Routes:
- In order to view the entire contents of the IP routing table, use route print command
- In order to delete route in the IP routing table (particular route), use route delete command
For Example to delete route 11.2.0.0 use command as route delete 11.2.0.0
To check whether route has been deleted or not check again using route print command
To Configure ACL:
To Enable ACL: ACL enable
To Config: aclconfig
To View ACL Command Structure: acl print
Related articles:
How-to-add-custom-commands-to-netsim-sdn-interactive-simulation-module-
How-to-pass-parameters-from-netsim-code-to-python-code-during-simulation-