华为路由器配置WEB及Telnet登录

[复制链接]
发表于 2024-7-18 04:29:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
一、配置路由器登录方式
1、配置路由器管理IP
  1. <Huawei> system-view
  2. [Huawei] interface gigabitethernet 0/0/0
  3. [Huawei-GigabitEthernet0/0/0]  ip address 192.168.1.1 24
  4. [Huawei-GigabitEthernet0/0/0] quit
复制代码
2、启用http
  1. [Huawei] http secure-server enable
复制代码
3、配置Web用户和用户级别
以用户名admin ,密码123为例
  1. [Huawei] aaa
  2. [Huawei-aaa] local-user admin password cipher 123
  3. [Huawei-aaa] local-user admin privilege level 15
  4. [Huawei-aaa] local-user admin service-type http
  5. [Huawei-aaa] return
  6. <Huawei> save
复制代码
二、配置Telnet登录
华为Telnet登录验证方式:
AAA方式:使用用户名+密码方式登录。
Password方式:使用用户名+密码方式登录。
(一)AAA方式:
  1. <Huawei> <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b133554971183102">system-view</strong>
  2. [Huawei] <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b2023643366183102">user-interface vty 0</strong>
  3. [Huawei-ui-vty0] <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b1312720785183102">protocol inbound telnet</strong>
  4. [Huawei-ui-vty0] <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b253369028183102">authentication-mode aaa</strong>
  5. [Huawei-ui-vty0] <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b200503141183102">quit</strong>
  6. [Huawei] <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b1123204042183102">aaa</strong>
  7. [Huawei-aaa] <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b1087747902183102">local-user admin123 password irreversible-cipher YsHsjx_202206</strong>
  8. [Huawei-aaa] <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b1609373592183102">local-user admin123 service-type telnet</strong>
  9. [Huawei-aaa] <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b1232525826183102">local-user admin123 privilege level 15</strong>
  10. [Huawei-aaa] <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b767020967183102">return</strong>
  11. <Huawei> <strong id="ZH-CN_CONCEPT_0177894723__zh-cn_concept_0177865936_b45052119183102">save</strong>
复制代码
(二)Password方式
  1. <Huawei> <strong id="ZH-CN_CONCEPT_0177894723__b186278638183411">system-view</strong>
  2. [Huawei] <strong id="ZH-CN_CONCEPT_0177894723__b764851055183411">user-interface vty 0 4</strong>
  3. [Huawei-ui-vty0-4] <strong id="ZH-CN_CONCEPT_0177894723__b1297365949183411">authentication-mode password</strong>
  4. [Huawei-ui-vty0-4] <strong id="ZH-CN_CONCEPT_0177894723__b1205483986183411">set authentication password cipher YsHsjx_202207</strong>
  5. [Huawei-ui-vty0-4] <strong id="ZH-CN_CONCEPT_0177894723__b2074104296183411">return</strong>
复制代码
参考:
路由器启用web登录:https://support.huawei.com/enterprise/zh/doc/EDOC1000079624/3fec391b
路由器启用Telnet登录:https://support.huawei.com/enterprise/zh/doc/DOC1000079675/2404efd8
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表