--永恒的烦恼

华为ensp中路由的简单配置总结

本文于 2026-03-14 11:41 更新,部分内容具有时效性,如有失效,请留言

登录配置

console配置

[R1]user-interface console 0       //进入console 0口
[R1-ui-console0]user privilege level 15       # 配置所有用户认证用户界面的用户界面为15,这里可以忽略,不同等级之间的权限不一致。
[R1-ui-console0]authentication-mode password   # 方式 A:使用密码认证,没有用户。
[R1-ui-console0]set authentication password cipher Huawei@123  # 方式A的配置密码,如果使用下面的aaa认证,这里配置的密码在验证时候不再验证。
[R1-ui-console0]authentication-mode aaa      #方式B:AAA 认证(更灵活,可分配不同权限)

telnet配置

[R1]user-interface vty 0 4      //进入vty 0 至 4线 程
[R1-ui-vty0-4]user privilege level 15       # 配置所有用户认证用户界面的用户界面为15,这里可以忽略,不同等级之间的权限不一致。
[R1-ui-vty0-4]authentication-mode password   # 方式 A:使用密码认证,没有用户。
[R1-ui-vty0-4]set authentication password cipher Huawei@123  # 方式A的配置密码,如果使用下面的aaa认证,这里配置的密码在验证时候不再验证。
[R1-ui-vty0-4]authentication-mode aaa      #方式B:AAA 认证(更灵活,可分配不同权限)

总结:进入接口,选择密码的认证模式,选择密码模式就还需要配置密码,选择aaa则还需要配置aaa。权限问题,密码认证则在该视图配置,aaa则另外配置。

AAA配置

[R1]aaa      # 进入AAA接口 
[R1-aaa]local-user admin password cipher Huawei@123    # 配置admin用户密码类型为cipher 密码为 Huawei@123
[R1-aaa]local-user admin service-type terminal   # 配置admin用户 允许使用服务的类型
[R1-aaa]local-user admin privilege level 15    # 配置admin用户 权限等级 15级
赞(1)
转载请带上源站链接:玖伴一鹏 » 华为ensp中路由的简单配置总结