When the Java Firewall Simulator CLI starts a new console window is created. A brief welcome message is displayed with a note to call the help command if needed. From the console window nodes and links can be created. In the console window we can also display all of the information relating to the current simulation.
Creating New Simulation
To create a new simulation the user must type ‘newsim' into the terminal. This will create a new simulation within the terminal.
A Message is displayed asking for the confirmation of the new simulation creation.
Please note: Typing ‘y' will override the current terminal. Typing ‘n' will leave the current simulation as is.
Adding a PC
To add a PC the user must type one of the following two options:
As a result of one of these options a message will appear confirming the creation of a PC.
Adding a Hub
To add a Hub the user must type one of the following two options:
As a result of one of these options a message will appear confirming the creation of a Hub.
Adding a Router
To add a Router the user must type one of the following two options:
As a result of one of these options a message will appear confirming the creation of a Router.
Adding a Link
To add a Link user must type one of the following two options:
As a result of Link being created a message is displayed confirming that the link was successful.
To delete a PC the user must type one of the following two options:
This will delete a PC from the terminal.
To delete a Hub the user must type one of the following two options:
This will delete a Hub from the terminal.
To delete a Router the user must type one of the following two options:
This will delete a Router from the terminal.
To delete a Link the user must type one of the following two options:
This will delete a Link between two nodes from the terminal.
To display a list of nodes the user must type one of the following two options:
This will display a list of all nodes which link it is connected to.
To display a list of links the user must type one of the following two options:
This will display a list of all links and their connections.
To display a list of layer information the user must type one of the following two options:
When a ping packet is sent it generates a complete list of processes that happen to achieve the ping. This is displays that information.
To display the default gateway of a particular node the user must type one of the following two options:
This will display the default gateway of a particular node if it is set.
To display the subnet mask of a particular node the user must type one of the following two options:
This will display the current subnet mask of particular node.
To set the IP address of a particular node the user must type one of the following two options:
This will set the IP address of a particular node.
To set the default gateway of a particular node the user must type one of the following two options:
This will set the default gateway of a particular node.
To set the subnet mask of a particular node the user must type one of the following two options:
This will set the subnet mask of a particular node.
To send a ping packet between two PC's the user must type:
This will send a ping packet between the two PC's, testing to see if they are connected to the network.
To load a simulation the user must type:
This will load a simulation.
Please note: A simulation must have previously been saved in order to load it.
To set the IP address of a particular node the user must type one of the following four options:
This will save the particular simulation.
Please note: The ‘save' and ‘sv' function requires a ‘simulationName' if the ‘saveas', ‘sva' functions have not previously been used.
For a detailed list of all the commands and how to use them the user must type one of the following eight options:
This will display the help screen for all the commands, or just the help for the particular command entered.
To invoke one of the pre-saved test simulations the user must type one of the following eight options:
This will invoke one of the pre-saved test simulations.
To quit the simulation the user must type one of the following two options:
This will quit the current simulation.