华为交换机连接登录管理配置教程

1.设备登录管理
带内管理(console 本地登录) ①配置成仅用密码登录 console //刚开始进入的是一般配置模式 system-view //在一般模式下输入 system-view 进入配置模式 Enter system view, return user view with Ctrl+Z.
[Huawei]user-interface console 0 //对 console 接口的配置
[Huawei-ui-console0]authentication-mode password //验证模式为仅密码 Please configure the login password (maximum length 16):123456 //如果是路由器,则 //要求立即输入密码,交换机则没有这一步
[Huawei-ui-console0]user privilege level 15 //设置 console 登录的权限级别 //15 为管理员级别 [Huawei-ui-console0]set authentication password cipher 12pass6 //如果是交换机则要配这条 //表示密码为 12pass6
[Huawei-ui-console0] ②使用 用户名和密码登录 [Huawei]user-interface console 0
[Huawei-ui-console0]authentication-mode aaa //使用 aaa 认证登录,需要配置 aaa
[Huawei-ui-console0] 带外管理(远程登录) ①Telnet 仅密码登录
[Huawei]telnet server enable //开启 telnet 服务 Error: TELNET server has been enabled [Huawei]user-interface vty 0 4 //进入 vty 接口配置
[Huawei-ui-vty0-4]authentication-mode password //验证模式为仅密码 Please configure the login password (maximum length 16):12xx56 //如果是路由器,则 //要求立即输入密码,交换机则没有这一步
[Huawei-ui-vty0-4]user privilege level 15 [Huawei-ui-vty0-4]set authentication password cipher 12xx56 //如果是交换机要配这条
[Huawei-ui-vty0-4] ②Telnet 用户名和密码登录 [Huawei-ui-vty0-4]user-interface vty 0 4 [Huawei-ui-vty0-4]authentication-mode aaa [Huawei-ui-vty0-4]protocol inbound telnet //允许 telnet 登录 [Huawei-ui-vty0-4] ③SSH 用户名和密码登录 [Huawei]rsa local-key-pair create //创建 rsa 密钥 The key name will be: Host % RSA keys defined Confirm to replace them? (y/n)[n]:y //输入 y 确定 The range of public key size is (512 ~ 2048). NOTES: If the key modulus is greater than 512, It will take a few minutes. Input the bits in the modulus[default = 512]:2048 //推荐用 2048 位的密钥 Generating keys… …+++ …+++ …++++++++ …++++++++ [Huawei]user-interface vty 0 4 [Huawei-ui-vty0-4]authentication-mode aaa [Huawei-ui-vty0-4]protocol inbound ssh //允许 ssh 登录如果要允许 telnet 和 ssh 都能 //登录,则只能设置为 protocol inbound all [Huawei-ui-vty0-4]quit [Huawei]ssh user admin authentication-type password //指定 ssh 用户,但该用户还未创建 Error: Username does not exist [Huawei]ssh user admin authentication-type password //指定 ssh 登录用户为 admin Authentication type setted, and will be in effect next time [Huawei]stelnet server enable //开启 ssh 服务 Info: Succeeded in starting the STELNET server. [Huawei]2.保存配置 [Huawei] [Huawei]quit save //配置完毕一定要记得保存配置,在一般模式下保存 The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y //输入 y 确定 It will take several minutes to save configuration file, please wait… Configuration file had been saved successfully Note: The configuration file will take effect after being activated

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值