一、基础配置
<Huawei>system-view //进入系统视图
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable //关闭接口提示
Info: Information center is disabled.
[Huawei]sysname AR1 //配置设备名为 R1
[AR1]interface GigabitEthernet 0/0/0 //进入G0/0/0接口
[AR1-GigabitEthernet0/0/0]ip address 10.1.1.1 24 //配置接口地址掩码
[AR1-GigabitEthernet0/0/0]quit //退回到上一个试图模式
[AR1]quit //退回到上一个试图模式
<AR1>save //保存当前配置
二、Console配置
[AR1]user-interface console 0 //进入console接口
[AR1-ui-console0]idle-timeout 10 //配置用户连接的超时间为10分钟
[AR1-ui-console0]user privilege level 15 //配置console用户界面的用户级别为15
[AR1-ui-console0]authentication-mode password //配置用户认证方式为密码认证
Please configure the login password (maximum length 16):huawei //设置console密码为huawei
[AR1-ui-console0]aaa //进入AAA模式
[AR1-aaa]local-user admin password cipher huawei //设置本地用户账号
结果验证
三、Telnet配置
[AR1]telnet server enable //开启telnet功能
Error: TELNET server has been enabled //模拟实验默认是开启telnet功能
[AR1]user-interface vty 0 4 //进入VTY 0~VTY 4用户界面视图,同时支持0到4,5个用户在线操作。
[AR1-ui-vty0-4]user privilege level 15 //配置VTY 0~VTY 4的用户级别为15级。
[AR1-ui-vty0-4]authentication-mode aaa
[AR1]aaa
[AR1-aaa]local-user admin privilege level 15 //配置VTY 0~VTY 4的用户认证方式为AAA认证。
[AR1-aaa]local-user admin service-type telnet //配置接入类型为telnet
[AR1-aaa]quit
结果验证
四、实验配置
<AR1>display cur
<AR1>display current-configuration
[V200R003C00]
#
sysname AR1
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
drop illegal-mac alarm
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$~IDx@M,gq3D'V{GLRRH7OZK(%$%$
local-user admin privilege level 15
local-user admin service-type telnet
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
authentication-mode password
set authentication password cipher %$%$+~`F"`FasU]Yh|M^38e$,%-FVt6iIbzl4KWdV'#b
:oT'%-I,%$%$
idle-timeout 20 0
user-interface vty 0 4
authentication-mode aaa
user privilege level 15
user-interface vty 16 20
#
wlan ac
#
return