- 用户视图下命令:<Huawei>
- 查看端口IP简要状态信息:display ip interface brief
- 查看当前配置信息:display current-configuration
- 系统视图下命令:[Huawei]
- 进入系统视图 :system-view
- 进入端口:interface e0/0/0 interface g0/0/0
-
- 配置IP地址:ip address 12.0.0.1 255.255.255.0 或 ip address 12.0.0.1 24
- eNSP中AR201的端口默认是二层接口模式,不能直接使用ip address配置,会报错。可以使用端口由默认的二层接口模式转换成三层接口模式。在Ethernet0/0/0接口模式下执行undo portswitch指令,将其端口由默认的二层接口模式转换成三层接口模式。再在Ethernet0/0/0接口下执行ip address 10.1.1.1 24指令可正常配置IP地址。参考:华为AR201路由器的Ethernet0/0/0接口配置IP地址
- 配置IP地址:ip address 12.0.0.1 255.255.255.0 或 ip address 12.0.0.1 24
-
- 删除ip地址配置:undo ip address 12.0.0.1 255.255.255.0
- 查看当前端口的配置:display this
-
- 设置console口登录密码:
- 两种模式:一是登录密码模式,另一个是3A模式。
- password模式:
- 进入console口0:[AR1]user-interface console 0
- 选择password模式:[AR1-ui-console0]authentication-mode password
- 设置console口登录密码:
-
-
-
- 出现设置密码位数,设置为6位:

- 设置密码口令为 1234hw:[AR1-ui-console0]set authentication password cipher 1234hw
- 出现设置密码位数,设置为6位:
-
-
-
-
-
- 命令行默认10分钟没动作就会退出,这个默认时间也可以设置修改:[AR1-ui-console0]idle-timeout 30 30
- 一直退出到用户视图后再退出一次登录就需要密码了:

-
-
-
-
- 3A模式:
- 进入console口0:[AR1]user-interface console 0
- authentication-mode使用aaa而不是password:[AR1-ui-console0]authentication-mode aaa
- 3A模式:
-
-
-
-
- 退出到系统视图下输入aaa后设置用户名faker和密码456后就新建了一个用户:[AR1-aaa]local-user faker password cipher 456
- 另外还可以配置该用户的服务模式,terminal代表使用console口登录
-
-
-
-
-
- 配置权限级别,其中3-15都是一样的,代表所有权限
- 配置权限级别,其中3-15都是一样的,代表所有权限
-
-
- 退出视图
- 逐级退出:quit
- 返回到用户视图:return
https://www.yuque.com/docs/share/a29b4d92-2492-4784-9894-d07db8397549?# 《00、eNSP命令》
本文介绍了如何在华为eNSP中进行基本配置,包括用户视图和系统视图下的命令,如查看端口IP状态、配置IP地址、删除IP地址以及设置Console口登录密码。对于AR201路由器,详细讲解了如何将端口从二层模式切换到三层模式以便配置IP,并提供了3A模式和password模式下设置Console口密码的方法。



5317

被折叠的 条评论
为什么被折叠?



