R1:
*****************************************************************************************************
<H3C>sys
System View: return to User View with Ctrl+Z.进入视图模式
[H3C]sysname H3C-R1
更改计算机名
[H3C-R1]interface e0/0/0
进入接口模式
[H3C-R1-Ethernet0/0/0]ip add 1.1.1.1 255.255.255.0
配置IP地址及子网掩码
[H3C-R1-Ethernet0/0/0]undo sh
Interface Ethernet0/0/0 is not shut down开启接口
[H3C-R1-Ethernet0/0/0]quit
退出接口模式
[H3C-R1]ftp server enable
开启ftp服务
[H3C-R1]local-user ftp
New local user added.创建ftp用户
[H3C-R1-luser-ftp]password simple cisco
设置ftp密码
[H3C-R1-luser-ftp]service-type ftp
指定用户用于服务类型
[H3C-R1-luser-ftp]authorization-attribute level 3
开启ftp帐号的最高权限 否则只可以下载 不可以上传
[H3C-R1-luser-ftp]quit
退出用户设置模式
*****************************************************************************************************
R2:
*****************************************************************************************************
<H3C>sys
System View: return to User View with Ctrl+Z.进入视图模式
[H3C]sysname H3C-R2
更改计算机名
[H3C-R2]interface e0/0/0
进入接口模式
[H3C-R2-Ethernet0/0/0]ip add 1.1.1.2 255.255.255.0
设置ip地址
[H3C-R2-Ethernet0/0/0]undo sh
Interface Ethernet0/0/0 is not shut down开启接口
[H3C-R2-Ethernet0/0/0]ping 1.1.1.1
PING 1.1.1.1: 56 data bytes, press CTRL_C to break Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=255 time=20 ms Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=255 time=1 ms Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=255 time=4 ms Request time out Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=255 time=4 ms--- 1.1.1.1 ping statistics ---
5 packet(s) transmitted 4 packet(s) received 20.00% packet loss round-trip min/avg/max = 1/7/20 ms测试连通性
[H3C-R2-Ethernet0/0/0]return
回到用户模式
<H3C-R2>ftp 1.1.1.1
Trying 1.1.1.1 ... Press CTRL+K to abort Connected to 1.1.1.1. 220 FTP service ready. User(1.1.1.1:(none)):ftp 331 Password required for ftp. Password: 230 User logged in.登录用户
[ftp]dir
227 Entering Passive Mode (1,1,1,1,4,1). 125 ASCII mode data connection already open, transfer starting for /*. drwxrwxrwx 1 noone nogroup 0 Jun 04 15:16 logfile drwxrwxrwx 1 noone nogroup 0 Jun 05 13:54 diaglog -rwxrwxrwx 1 noone nogroup 1477 Jun 05 14:25 startup.cfg -rwxrwxrwx 1 noone nogroup 6419 Jun 05 14:05 system.xml -rwxrwxrwx 1 noone nogroup 8646 Jun 05 14:05 config.cwmp 226 Transfer complete. FTP: 331 byte(s) received in 0.160 second(s), 2.00K byte(s)/sec.查看内容