ftp-telnet模拟用户场景实验

ftp-telnet模拟用户场景实验

需求

1、在路由器R2上实现ftp服务器和telnet服务器,保存路由器备份数据(save命令)
2、在server1上模拟FTP服务器;
3、在client1上模拟FTP客户端,访问路由器FTP服务和server1上FTP服务器;
4、在client1上FTP登录到路由器FTP服务,获取备份文件;然后从client1上传备份文件到server1上。

网络拓扑图

在这里插入图片描述

配置

路由器R2的配置:

sysname ftp-server
ftp server enable
header shell information “lgb after”
header login information “lgb before”

aaa
authentication-scheme test1
authorization-scheme test2
domain ftp
authentication-scheme test1
authorization-scheme test2
local-user test1@ftp password cipher 123456
local-user test1@ftp privilege level 3
local-user test1@ftp ftp-directory flash:
local-user test1@ftp service-type ftp

ip route-static 0.0.0.0 0.0.0.0 200.1.1.1

user-interface vty 0 4
authentication-mode password
set authentication password cipher 123456

路由器R1的配置:

sysname R1

clock timezone BJ add 08:00:00
clock datetime add 11:32:30 2021-07-09

interface GigabitEthernet0/0/0
ip address 200.1.1.1 255.255.255.0

interface GigabitEthernet0/0/1
ip address 172.16.1.254 255.255.255.0

interface GigabitEthernet0/0/2
ip address 10.0.1.254 255.255.255.0

server1和client1的配置

在这里插入图片描述

在这里插入图片描述

おすすめ

転載: blog.csdn.net/qq_40168905/article/details/118604968