H3C常见视图及命令

H3C常见视图及命令

H3C Comware的视图模式

1.用户视图:查看系统的硬件和系统的信息

2.系统视图(类似于Cisco的配置模式)

3.路由协议视图

4.接口视图

5.用户界面视图

各种视图之间的关系

命令级别

H3C的Comware访问级别

1.访问级(0)

简单测试命令:ping debugging

2.监控级(1)

具有完整查看命令和测试命令

3.系统级(2)

修改网络设备的配置权限

4.管理级(3)

设备支撑业务的操作

命令行帮助特性

命令行历史记录功能

查看历史命令记录

display history-command

翻阅和调出历史记录中的某一条命令

用<↑>或<Ctrl+P>捷键调出上一条历史命令

    用<↓>或<CtrI+N>捷键调出下一条历史命令

命令行编辑功能

分页显示

常用设备管理命令

配置设备名称(Cisco:hostname)

[H3C]sysname?

TEXT Host name (1 to 30 characters)

配置系统时间(Cisco:clock set HH:MM:SS 日 月 年)

<H3C>clock datetime?

TIME Specify the time (HH:MM:SS)

显示系统时间(Cisco:show clock)

<H3C>display clock

配置欢迎I提示信息

[H3C]header?

incoming Specify the banner of the terminal user-interface

legal Specify the legal banner

login Specify the login authentication banner

motd Specify the banner of today

shell Specify the session banner

查看版本信息(Cisco:show version)

<H3C>display version

查看当前运行配置(Cisco:show run)

<H3C>display current-configuration

查看保存配置(Cisco:show startup-config)

<H3C>display saved-configuration

显示接口信息(Cisco:show interface 接口名)

<H3C>display interface

显示接口IP状态与配置信息(Cisco:show ip interface brief)

<H3C>display ip interface brief

显示系统运行统计信息(Cisco:show tech-support)

<H3C>display diagnostic-information

路由器Telnet服务配置命令

1.配置主机终端和路由器之间能够进行通信

interface Ethernet0/0

undo shutdown(开启接口)

port link-mode route

ip address ip地址 子网掩码

2.打开Telnet的服务

[R1]telnet server enable

3.进入用户界面视图,配置认证的方式

[R1]user-interface vty 0 4

[R1-ui-vty0-4]authentication-mode password

4.配置认证的密钥

[R1-ui-vty0-4]set authentication password 用户名 密码

posted @ 2017-09-23 10:33  混沌的光与影  阅读(9336)  评论(0编辑  收藏  举报