一、Telnet配置
1、密码登录设置
sys (配置模式)
[Huawei]int g0/0/0 (进入端口模式)
[Huawei-g0/0/0]ip add 192.168.10.10 24 (配置端口IP地址)
[Huawei]user-interface console 0 //进入管理控制口
[Huawei-ui-console0]authentication-mode password 配置用户终端接口以密码认证方式
[Huawei-ui-console0]user privilege level ? //设置特权等级
[Huawei-ui-console0]idle-timeout 20 //设置登录超时时间为20分钟,默认为10分钟
2、用户和密码登录
[Huawei]user-interface console 0 //进入管理控制口
[Huawei-ui-console0]authentication-mode aaa 配置用户终端接口认证方式 aaa验证
[Huawei-ui-console0]quit
[Huawei]aaa
[Huawei-aaa]local-user huawei password cipher 自定义密码
[Huawei-aaa]local-user huawei service-type terminal //从终端登录
3、PC通过以太网口远程登录配置
#AAA模式远程登录
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa
[R1]aaa //进入认证、授权、计费模式(简称AAA模式)
[R1-aaa]local-user admin password cipher 自定义密码 //配置本地用户和密码
[R1-aaa]local-user admin service-type telnet //授权用户telnet服务类型
[R1-aaa]local-user admin privilege level 3 //设置用户优先级
#仅密码远程登录
[R2]user-interface vty 0 4 //虚拟用户终端接口
[R2-ui-vty0-4]authentication-mode password //配置用户终端的认证模式
[R2-ui-vty0-4]set authentication password simple 自定义密码 //设置登录用户密码
[R2-ui-vty0-4]user privilege level 3 //设置用户权限
[R2-ui-vty0-4]user network-admin //设置登录用户的参数
4、设置超级密码
[Huawei]super password level 3 cipher 自定义密码
二、FTP配置
1、路由器作为FTP服务器配置
[R1]ftp server enable 开启ftp功能
[R1]aaa
[R1-aaa]local-user winda password cipher自定义(字母数字组合)
[R1-aaa]local-user winda privilege level 3
[R1-aaa]local-user winda service-type ftp
[R1-aaa]local-user winda ftp-directory flash: //指定目录
2、登录FTP服务器,并传送文件
[R1]ftp 192.168.10.22
[R1-ftp]put portalpage.zip //上传文件
[R1-ftp]get portalpage.zip portal.zip //下载文件并修改名字
delete /unreserved portal.zip //彻底删除该文件