Experiment 1
Experiment 1
1.Experimental purpose
The purpose of this experiment is to master the basic operation of network router on Huawei eNSP
simulator platform. The main experimental contents include:
2.Experimental devices
3.Experimental procedure
In the router's operating system, there are two different operating modes: user view and system view.
They are the same as user mode and privilege mode in CISCO router. It is in user view after the CLI starts,
then the system-view command is executed to enter the system view.
<HUAWEI>system-view
[HUAWEI]
Simulation:
At this point, the prompt becomes "[ ]" to indicate that the user is already in the system view. Executing
quit or return commands can switch from system view to user view.
Note:The quit command is used to enable users to retreat from the current view to the previous
view. Executing the quit command in user view terminates your connection to the device. The
return command is used to return directly from the current view (non-user view) back to the user
view. The combination key < Ctrl + Z > has the same effect as the return command.
[HUAWEI]quit
<HUAWEI>
Simulation:
To display all commands available in a view, enter a question mark (?) at the view prompt.
Explanation:
View is an important concept of HUAWEI network device operating system. The following commands have
their corresponding view mode. Don't ignore it.
Enter a space and a question mark after a command keyword to display all available keywords and
arguments at the position.
Explanation:
When using router commands, by using “?” , you can quickly master commands and parameters;
Command abbreviation allows you to quickly complete the use of commands; Using the Tab key allows
you to quickly get complete commands and parameters.
Simulation:
(3) Change System Name
Use the sysname command to change the system name.
[HUAWEI]sysname Yourname
[Yourname]
Simulation:
For example:
You can see that the system name displayed at this time has changed from the original HUAWEI to
Yourname. Here yourname is a parameter that you can modify at will.
Simulation:
With the spacebar, you can continue to turn pages, and the Enter key can turn pages, and the
combination key Ctrl+C can be used to end the display.
Use the display saved-configuration command to display the saved configuration in FLASH of the current
system.
<Yourname>display saved-configuration
The result shows that the configuration file does not exist, but why is the configuration content displayed
when display current-configuration is used? Because the running configuration is actually stored in RAM
memory, not in the fixed storage device FLASH, the saved configuration file cannot be displayed.
Therefore, configuration files need to be saved correctly before they can be displayed. By saving the file
operation, the configuration file is stored on FLASH, so that the save settings of the current system can be
displayed through this command.
<Yourname>save
Choose "Y" during the storage process to determine that the current operating configuration is written
into the device storage medium.
The current configuration will be written to the device. Are you sure? [Y/N]:y
The system prompts you to enter the file name to save the configuration file. Once the file has been saved
successfully, you can use display saved-configuration again to view the saved configuration file.
When you need to delete the configuration of a command, you can use the undo command to delete one
by one. For example, after the undo sysname command is executed, the device name is restored to
HUAWEI, but it is still possible to modify the user name after reusing sysname.
[shu]sysname Yourname
[Yourname]undo sysname
[HUAWEI]
The undo command is not used to delete the command from the system, but to temporarily delete the
configuration based on the command, and then you can continue to use the command for the
corresponding settings