1、配置思路1、通过Console口登录设备。2、对设备进行基本配置。
2、# 设置系统的日期、时间和时区<Huawei> clock timezone BJ add 08:00:00<Huawei> clock datetime 20:10:00 2015-03-26
3、# 设置设备名称和管理IP地址<Huawei> system-view[Huawei] sysname Server[Server] interface gigabitethernet 0/0/0[Server-GigabitEthernet0/0/0] ip address 10.137.217.177 24[Server-GigabitEthernet0/0/0] quit
4、# 设置设备名称和管理IP地址<Huawei> system-view[Huawei] sysname Server[Server] interface gigabitethernet 0/0/0[Server-GigabitEthernet0/0/0] ip address 10.137.217.177 24[Server-GigabitEthernet0/0/0] quit
5、# 设置Telnet用户的级别和认证方式[Server] telnet 衡痕贤伎server enable[Server] user-inter熠硒勘唏face vty 0 4[Server-ui-vty0-4] user privilege level 15[Server-ui-vty0-4] authentication-mode aaa[Server-ui-vty0-4] quit[Server] aaa[Server-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789[Server-aaa] local-user admin1234 privilege level 15[Server-aaa] local-user admin1234 service-type telnet[Server-aaa] quit
6、验证配置结果# 完成以上配置后,可以从PC2以Telnet方式远程登录设备。# 进入Windows系统的命令行提示符,并执行相关命令,通过Telnet方式登录设备。C:\Documents and Settings\Administrator> telnet 10.137.217.177# 回车后,在登录窗口输入用户名和密码,验证通过后,出现用户视图的命令行提示符。(以下显示信息仅为示意)Username:admin1234Password: <Server>
7、全部配置文件如下:拭貉强跳# sysname Server# clock timezone BJ add 08:00:00# aaa local-user admin12泌驾台佐34 password irreversible-cipher %^%#*~Br";[g6Pv5Zf>$~{hY+N!`{$<[Y{;l02P)B,EBz\1FN!c+%^%# local-user admin1234 privilege level 15 local-user admin1234 service-type telnet# interface GigabitEthernet0/0/0 ip address 10.137.217.177 255.255.255.0# telnet server enable# user-interface vty 0 4 authentication-mode aaa user privilege level 15 # return