H3C telnet配置实验 配置R1 <H3C>system-view//进入系统视图 [H3C]sysname r1 //命令设备名称为r1 [r1]interfacegigabitethernet 0/1 //进入ge 0/1接口 [r1-GigabitEthernet0/1]ipaddress 192.168.1.1 24 //配置接口地址 [r1-GigabitEthernet0/1]quit [r1]telnet serverenable //开启telnet服务功能 [r1]local-user zurkj//创建本地用户(华为要先进入AAA视图后创建) [r1-luser-manage-zurkj]passwordsimple Aa123456789 //配置用户密码 [r1-luser-manage-zurkj]service-typetelnet //配置用户服务对象 [r1-luser-manage-zurkj]authorization-attributeuser-role level-15 /network-admin //在用户视图下配置用户的访问级别 level-15或者network-admin都是最高级 [r1-luser-manage-zurkj]quit [r1]user-interfacevty 0 4 /line vty 0 4 //虚拟用户线视图(华为user-interface) [r1-line-vty0-4]authentication-modescheme //配置身份认证模式为scheme计划(华为AAA) [r1-line-vty0-4]protocolinbound all //配置所在界面支持的协议(默认已开启)可选 [r1-line-vty0-4]user-rolelevel-15 //配置用户访问下的操作命令级别 level-15 可选 [r1-line-vty0-4]terminaltype vt100 //配置用户界面下终端显示类型VT100 可选 [r1-line-vty0-4]idle-timeout20 //配置用户连接超时20分钟 可选 [r1-line-vty0-4]history-commandmax-size 15 //配置大最历史命令查询量 可选 [r1-line-vty0-4]quit
使用PC登录测试 <H3C>telnet192.168.1.1 Trying 192.168.1.1... Press CTRL+K to abort Connected to192.168.1.1 ...
****************************************************************************** * Copyright (c)2004-2021 New H3C Technologies Co., Ltd. All rights reserved.* * Without the owner'sprior written consent, * * no decompiling orreverse-engineering shall be allowed. * ******************************************************************************
Login: zurkj Password: <r1>system-view
System View: returnto User View with Ctrl+Z.
|