一、VRP简介
![](https://i-blog.csdnimg.cn/blog_migrate/d9ae9ed3bc700136922f9451971029e0.png)
二、网络设备的管理
(1)console口:
(2)telnet:
(3)SSH:安全的远程登录
(4)通过WEB页面登录
三、命令行常见操作
<Huawei>用户模式,只能做一些查看的操作
<Huawei>system-view 进入系统模式
[Huawei] 系统模式
基本命令操作
[Huawei]sysname R1 修改设备名称
[R1]interface GigabitEthernet 0/0/0 进入接口模式,配置IP地址
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24 配置IP地址
quit:返回上一个模式
<R1>save 保存当前配置
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
<R1>reset saved-configuration 清楚设备当前配置
Are you sure? (y/n)[n]:y
Clear the configuration in the device successfully.
<R1>reboot 重启设备
Info: The system is comparing the configuration, please wait.
Warning: All the configuration will be saved to the next startup configuration.
Continue ? [y/n]:n
System will reboot! Continue ? [y/n]:y
[telnet server-GigabitEthernet0/0/0]ip add 192.168.2 24
^ 错误提示符
Error: Wrong parameter found at '^' position.
Tab:自动补全命令
?:命令提示
常见的查看操作
<Huawei>display version 查看版本信息
<Huawei>display current-configuration 查看本设备当前的配置
<Huawei>dis mac-address 查看MAC地址表
四、实践
1、Telnet协议
telnet原理:利用TCP连接,创造一条客户端和对端设备之间的通道,以便于登录到对端设备,telnet是一个C/S模式,默认端
口号:23
telnet功能:
提供虚拟终端功能;
协商选项机制;
telnet实验基础配置
aaa模式:
AAA
是认证
(Authentication)
、授权
(Authorization)
和计费
(Accounting)
[telnet server-aaa]local-user wangdaye privilege level 15 password cipher wdy12345 创建用户
名和密码,并赋予用户一定的权限
[telnet server]user-interface vty 0 4 提供虚拟终端功能,设置能登录的用户数量
[telnet server-ui-vty0-4]authentication-mode aaa 设备用户的人认证模式
[telnet server-aaa]local-user wangdaye service-type telnet 开启用户的远程登录服务