目录
VRP 介绍
交换网络基础
文件系统基础
VRP 系统管理
1VRP 介绍
VRP 版本 | 版本特点 |
---|---|
VRP 1 | 集中式设计、性能比较低、适用中低端设备 |
VRP 2 | 分布式设计 |
VRP 3 | 分布式平台、支持众多特性、支持核心路由器 |
VRP 5 | 组件化设计、应用于华为多个产品、高性能 |
VRP 8 | 组件化设计、多进程、支持多 CPU、多框 |
2 交换网络基础
2.1 命令视图
视图模式 | 视图符号 |
---|---|
用户视图 | <huawei> |
系统视图 | [huawei] |
接口视图 | [Huawei-Vlanif1] or [Huawei-GigabitEthernet0/0/1] ... [Huawei - 接口名称] |
协议视图 | [Huawei-rip-1] or [Huawei-ospf-1] ... [Huawei - 协议名称] |
2.2 命令在线帮助
帮助模式 | 举例说明 | 描述 |
---|---|---|
部分帮助 | [Huawei]inter? | 对单词拼写的帮助 |
全部帮助 | [Huawei]interface ? | 对可选参数的帮助 |
2.3 基础配置
2.3.1 等级权限
用户等级 | 命令等级 | 描述 |
---|---|---|
0 | 0 | 访问级 |
1 | 0 and 1 | 监控级 |
2 | 0,1 and 2 | 配置级 |
3-15 | 0,1,2 and 3 | 管理级 |
自定义 | 自定义 | 自定义个别命令 |
2.3.2 配置时钟
- <Huawei>clock timezone BJ add 08:00:00(设置所在时区)
- <Huawei>clock datetime 17:00:00 2018-03-30(设置当前时间和日期)
- <Huawei>clock daylight-saving-time(设置采用夏时制)
2.3.3 配置标题消息
- [Huawei]header login(配置在用户登陆前显示的标题消息)
- [Huawei]header shell(配置在用户登录后显示的标题消息)
2.3.4 配置用户界面命令
- idle-timeout(设置超时时间)
- screen-length(设置制定终端屏幕的临时显示行数)
- history-command max-size(设置历史命令缓冲区的大小)
2.3.5 配置登陆权限
- [Huawei]user-interface vty 0 4
- [Huawei-ui-vty0-4]user privilege level 15(此处配置最高权限, 具体权限分配请看 2.3.1)
- [Huawei-ui-vty0-4]set authentication password cipher xxxx
- [Huawei-ui-vty0-4]set authentication password simple xxxx
- (密码认证模式只能选择一个进行配置)
2.3.6 创建 VLAN
方法一:
如何单独创建一个 VLAN:
- [Huawei]vlan 10(创建 vlan 10)
- [Huawei-vlan10]description This is Vlan 10(对 VLAN 10 进行描述, 好记性不如烂笔头)
方法二:
如何批量创建连续的 VLAN, 例如 2,3,4,5,6,7,8,9,10
- <Huawei>system-view
- [Huawei]vlan batch 1 to 10
方法三:
如何批量创建不连续的 VLAN, 例如 2,4,6,8,10
- <Huawei>system-view
- [Huawei]vlan 2 4 6 8 10(中间用空格隔开)
2.3.7 接口配置
接口模式
Access 模式
- <Huawei>system-view
- [Huawei]interface Ethernet0/0/0
- [Huawei-Ethernet0/0/0]port link-type access
Trunk 模式
- <Huawei>system-view
- [Huawei]interface Ethernet0/0/0
- [Huawei-Ethernet0/0/0]port link-type trunk
- [Huawei-Ethernet0/0/0]port trunk allow-pass vlan all
Hybrid 模式
- [Huawei-Ethernet0/0/0]port hybrid pvid vlan 10
- [Huawei-Ethernet0/0/0]port hybrid tagged vlan 2
- [Huawei-Ethernet0/0/0]port hybrid untagged vlan 10
接口速率
- 100M ---> Ethernet0/0/0
- 1000M ---> GigabitEthernet0/0/0
来源: http://www.bubuko.com/infodetail-2543581.html