华为鲲鹏 DAY 2

本文介绍了如何配置远程登录路由器,包括设置控制台口令、配置IP地址、使用AAA进行用户名和密码认证,以及修改设备名称。详细步骤涵盖了从密码登录到使用AAA服务的用户权限设置,确保远程访问的安全性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

远程登录

设置console

<Huawei>sys
[Huawei]user-interface console 0
[Huawei-ui-console0]set authentication password cipher 123
[Huawei-ui-console0]authentication-mode password
[Huawei-ui-console0]display this (显示当前配置)
[Huawei-ui-console0]q
ctrl + ]


远程登录的方式

  • 仅凭密码
  • 用户和密码
  • 加密
    在这里插入图片描述


配置路由器的ip地址

配置登录方:

<Huawei>sys
[Huawei]interface Ethernet 0/0/0
[Huawei-Ethernet0/0/0]ip address 10.0.0.1 24

配置被登录方:

system-view
interface Ethernet 0/0/0
ip address 10.0.0.1 24

改名:

sysname R1

仅凭密码登录

被登录方:

user-interface vty 0 4 (创建了5个虚拟接口)
authentication-mode password (设置为密码登录模式)
set authentication password cipher 123 (设置密码为123,测试路由的设置方法)
user privilege level 3 (设置权限等级,数字越大权限越大)

检验

登录方:

ctrl + z (进入用户模式)
telnet 【被登录方ip】


用户名和密码

被登录方:


[R2]aaa (进入三a视图,存储用户名和密码的工具)
[R2-aaa]local-user 123 password cipher 123 (创建一个用户)
[R2-aaa]local-user 123 privilege level 3 (设置用户等级)
[R2-aaa]q
[R2]user-interface vty 0 4
[R2-ui-vty0-4]authentication-mode aaa (调用三a视图)

验证

登录方:


<R1>telnet 10.0.1.2
[R2]sysname 888 (R2名字被改为888)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值