零基础华为认证HCNA配置命令.docx

上传人:b****2 文档编号:396511 上传时间:2022-10-09 格式:DOCX 页数:22 大小:34.45KB
下载 相关 举报
零基础华为认证HCNA配置命令.docx_第1页
第1页 / 共22页
零基础华为认证HCNA配置命令.docx_第2页
第2页 / 共22页
零基础华为认证HCNA配置命令.docx_第3页
第3页 / 共22页
零基础华为认证HCNA配置命令.docx_第4页
第4页 / 共22页
零基础华为认证HCNA配置命令.docx_第5页
第5页 / 共22页
点击查看更多>>
下载资源
资源描述

零基础华为认证HCNA配置命令.docx

《零基础华为认证HCNA配置命令.docx》由会员分享,可在线阅读,更多相关《零基础华为认证HCNA配置命令.docx(22页珍藏版)》请在冰豆网上搜索。

零基础华为认证HCNA配置命令.docx

用户视图

显示VRP版本

displayversion

系统视图

system-view

[Huawei]

更改路由器名称

[Huawei]sysnameR1

退出系统视图

[Huawei]quit

ctr+Z

查看命令后面的参数

clock?

显示时间

displayclock

设置时区

clocktimezoneBJadd08:

00

设置时间

clockdatetime11:

20:

102017-12-09

配置路由器接口

[R1]interfaceVlanif1

[R1-Vlanif1]ipaddress192.168.80.254255.255.255.0

添加多个地址

[R1-Vlanif1]ipaddress192.168.8.25224sub

查看接口配置

[R1-Vlanif1]displaythis

删除接口所有地址

[R1-Vlanif1]undoipaddress

删除特定地址

[R1-Vlanif1]undoipaddress192.168.8.25224sub

关闭端口

[R1-Vlanif1]shutdown

启用接口

[R1-Vlanif1]undoshutdown

登录路由器的提示语

[R1]headerlogininformation"ThisisofficelRouter"

进去路由器的提示语

[R1]headershellinformation"WelcometoHuaweirouterVRPlab"

配置Console口登录认证方式

[R1]user-interfaceconsole?

[R1]user-interfaceconsole0

[R1-ui-console0]authentication-modepassword

Pleaseconfiguretheloginpassword(maximumlength6):

huawei

重设密码

[R1-ui-console0]setauthenticationpasswordcipher91xueit

设置登录超时的时间

[R1-ui-console0]idle-timeout20

[R1-ui-console0]displaythis

设置用户级别为3

[R1-ui-console0]userprivilegelevel3

配置路由器允许telnet远程管理

[R1]user-interfacevty0?

[R1]user-interfacevty04

[R1-ui-vty0-4]authentication-modepassword

Pleaseconfiguretheloginpassword(maximumlength16):

51cto

[R1-ui-vty0-4]idle-timeout10

设置telnet用户级别为2

[R1-ui-vty0-4]userprivilegelevel2

查看连接过来的用户

[R1]displayusers

查看全部用户接口

[R1]displayuser-interface

命令分级

0级网络诊断命令pingtracerttelnet等

1级系统维护命令displaycurrent-configuration

2级配置命令sysnameR1

3级设计系统基本运行的命令文件系统FTP配置文件切换用户管理命令

连接到路由器的用户分级

0-15级

0级别用户执行0级别命令

1级别用户执行0、1级别命令

2级别用户执行0、1、2级别命令

3-15级别用户执行0、1、2、3级别的命令

通过console口用户级别是3级

通过telnet接口用户级别是0级

恢复telnet默认用户级别

[R11-ui-vty0-4]undouserprivilegelevel

使用用户名和密码验证用户AAA身份验证

AAA是验证、授权和记账(Authentication、Authorization、Accounting)三个英文单词

han用户级别1

admin用户级别3

创建用户的命令

[R11]aaa

[R11-aaa]local-useradminpasswordcipherprivilegelevel3

[R11-aaa]local-useradminservice-typetelnet

创建一个用户级别是1的用户

[R11-aaa]local-userhanpasswordcipher

[R11-aaa]local-userhanprivilegelevel1

[R11-aaa]local-userhanservice-typetelnet

创建一个用户允许console连接

[R11-aaa]local-useradmin1passwordcipher91xueit@comprivilegelevel3

[R11-aaa]local-useradminservice-typeterminal

显示创建的用户

[R11-aaa]displaylocal-user

显示aaa的配置

[R11-aaa]displaythis

更改telnet接口身份验证模式为aaa

[R11]user-interfacevty04

[R11-ui-vty0-4]authentication-modeaaa

查看连接过来的用户

设置

文件管理

列出当前目录中的文件和文件夹

dir

创建文件夹

dirflash:

/backup/

拷贝文件到backup目录

copyvrpcfg.zipflash:

/backup/vrpcfgbackup.zip

将vrp1.zip移动到backup目录

movevrp1.zipflash:

/backup/vrp1.zip

切换到backup目录

cdbackup/

查看所在的目录

pwd

flash:

/backup

使用move在同一个目录下相当于重命名

movevrp1.zipvrp2.zip

重命名的命令

renamevrp2.zipvrp3.zip

删除文件,实质上放到回收站

deletevrp2.zip

还可以加参数看到删除的文件,带中括号的就是删除的文件

dir/all

Directoryofflash:

/backup/

IdxAttrSize(Byte)DateTime(LMT)FileName

0-rw-787Jan09201823:

01:

21vrpcfgbackup.zip

1-rw-783Jan09201823:

14:

32[vrp2.zip]

恢复删除的文件

undeletevrp2.zip

彻底删除且不带提示不能恢复了

delete/unreserved/forcevrp2.zip

清空回收站

resetrecycle-bin

把flash中的文件备份到计算机TFTP服务

UDP69端口不可靠传输

把flash中的文件上传到TFTP

tftp192.168.80.1putflash:

/vrpcfg.zipvrpcfg.zip

把TFTP服务器上的文件下载到flash的backup目录

tftp192.168.80.1getvrpcfg2.zipflash:

/backup/vrpcfg2.zip

把flash中的文件拷贝到FTP

TCP的21端口

支持身份验证可靠传输TCP

ftp192.168.80.1

User(192.168.80.1:

(none)):

hanlg

从FTP下载

[RA-ftp]getworklog.txtflash:

/backup/worklog2.txt

上传到FTP

[RA-ftp]putvrpcfg.zipvrpcfg.zip

设置系统启动文件

设置系统启动文件

startupsystem-softwaredivicesoft.cc

指定保存配置的文件

startupsaved-configurationvrpcfg1.zip

查看下次启动使用的系统文件和配置文件以及当前使用的系统文件和配置文件

displaystartup

重启路由器

reboot

实验1:

静态路由

displayiprouting-table

[AR2]iproute-static192.168.1.024172.16.1.2

跟踪数据包路径

tracert192.168.1.2

显示全部路由

[AR2]displayiprouting-table

只显示静态路由

[AR2]displayiprouting-tableprotocolstatic

添加路由下一跳可以写到达目标网络的沿途中的地址

删除路由

[AR1]undoiproute-static192.168.1.024

[AR1]undoiproute-static192.168.1.024172.16.1.1

[AR1]iproute-static192.168.1.024172.16.1.2

点到点链路静态路由下一跳可以写出口

AR1]iproute-static192.168.1.024Serial2/0/0

路由器上两张表

路由表和转发表

显示转发表

[AR1]displayfib

添加到某个主机的静态路由

[AR1]iproute-static192.168.1.332Serial2/0/0

网络规划和路由汇总

CIDR可以汇总2个4个8个连续的子网

全球最大的网段

0.0.0.00.0.0.0

0.0.0.0/0

默认路由

[R1]iproute-static0.0.0.00.0.0.010.0.0.2

[R1]iproute-static0.0.0.0010.0.0.2

添加静态路由

[AR1]iproute-static172.16.1.024172.16.0.2

[AR1]iproute-static172.16.1.0255.255.255.0172.16.0.2

显示全部路由

[AR1]displayiprouting-table

只显示静态路由

[AR1]displayiprouting-tableprotocolstatic

删除静态路由

[AR1]undoiproute-static172.1

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 考试认证 > IT认证

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1