![]() ![]() ![]() |
SSH Protocol Support
The Network Simulator supports SSH protocol for the CLI devices
in the device tree of the network simulator. You can also create
your own CLI devices with SSH support. The ssh devices can be
created with both IPv4 and Ipv6 addresses. It enables execution
of ssh commands on the simulated devices, from command line. To
communicate with the simulated devices through ssh, you must log
in to ssh by entering a valid user name and password (root,
public are username, password used by default).
Create a new network using the Linux template devices. To create a new network, refer to Network Simulator Guide -> Creating a New Network. (or) Define your own CLI devices in the device tree. Create a new network using the template devices. To create a new network, refer to Network Simulator Guide -> Creating a New Network.The Network Simulator supports dynamic configuration of virtual ip addresses in Windows XP/Vista and Linux OS. The IPv6 addresses can be configured dynamically in Windows XP+SP2/Vista and Linux OS.
Right-click on the device
in the network area and select the option SSH -> Start. This will automatically start the agent
with the given IPv4/IPv6 address and at default port 2222.
To establish a SSH connection with the agent, go to command prompt and type: c:\> ssh -p <port number> -l <user name> <ip address>. Type the user name and password as root and public respectively.
password |
This is called User Exec Mode.
The prompt cisco760066>
displays the name of the device starte.
Type ? to list the commands that can be executed in
this mode.
cisco760066> ?
enable
Turn on Privileged commands
exit
Exit from the exec mode
help
Help command
logout
Exit from exec mode
show
Show Command
2. To set up Passwords
for your Router you need to first enter what is called: Privileged Exec Mode.
To enter Privileged Exec Mode type in the word enable at
the prompt.
cisco7600>enable |
3. Specify the password. The default
password is test. This
changes the prompt from Cisco760066> to Cisco760066#
, as shown below:
cisco760066>enable Password :
****
cisco760066# |
The # means that
you have entered Privileged Exec
Mode, also called "Enable Mode" for short. If you want to
go back to being a plain User, just type disable . Type ? to list the commands that
can be executed in this mode.
4. To get from Enable Mode to Configuration Mode, type the
word configure terminal
as shown below:
|
5. The prompt will appear as
shown below, which means that you are in the Router (Configure)
mode. Now and only now can you start the process of configuring
the router. Configure is a Global Command. Type ? to list the commands that
can be executed in this mode.
cisco760066(config)# |
For example, you can configure your own hostname by specifying the
following command. Note that the prompt changes to
Router(config)#
router(config)# |
6. To get from Configuration Mode to configif mode (interface
mode), type the word interface
as shown below, specify the interface name and number.
|
7. The prompt will
appear as shown below, which means that you are in the Router
(config-if) mode. Now you can start the process of configuring the
router interface commands. Type ? to list the commands that can be
executed in this mode, as shown below. Type exit to go back to the
previous mode.
router(config-if)#? cdp To enable CDP exit To Exit from this mode help ip To configure IP MTU value no To disable CDP
|
Commands
Supported
Refer to the topic,
IOS Commnands Supported, to learn about the suppported IOS commnads
in CLI devices.
![]() ![]() ![]() |