设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 技术文摘 查看内容

Linux操作系统搭建ipv6 ftp服务器

2012-10-23 16:37| 发布者: 红黑魂| 查看: 3595| 评论: 0|来自: 比特网

摘要: Linux搭建ipv6 ftp服务器  现在都流行ipv6,今天搭个ipv6ftp服务器玩玩。  很容易,一台win7主机,一个VMware CentOS 5.4,设置网络链接为bridged.  前提是你会配linuxipv4ftp服务器。  1,设置linux ipv6地址 ...

     Linux搭建ipv6 ftp服务器

  现在都流行ipv6,今天搭个ipv6 ftp服务器玩玩。

  很容易,一台win7主机,一个 VMware CentOS 5.4,设置网络链接为bridged.

  前提是你会配linux ipv4 ftp服务器。

  1,设置linux ipv6地址

  ip -f inet6 addr add 55:1:1:1::555/64 dev eth0

  2,设置win7 ipv6地址为55:1:1:1::165/64

  设置好后,直接ping 55:1:1:1::555即可,win7会自动识别v4或者v6地址。

  C:\Users\xxx>ping 55:1:1:1::555

  正在 Ping 55:1:1:1::555 具有 32 字节的数据:

  来自 55:1:1:1::555 的回复: 时间=1ms

  来自 55:1:1:1::555 的回复: 时间<1ms

  55:1:1:1::555 的 Ping 统计信息:

  数据包: 已发送 = 2,已接收 = 2,丢失 = 0 (0% 丢失),

  往返行程的估计时间(以毫秒为单位):

  最短 = 0ms,最长 = 1ms,平均 = 0ms

  3,linux中配置vsftped配置文件

  [root@xxx ~]# vim /etc/vsftpd/vsftpd.conf

  #listen=YES

  listen_ipv6=YES

  4,重启vsftpd服务

  [root@xxx ~]# service vsftpd restart

  关闭 vsftpd: [确定]

  为 vsftpd 启动 vsftpd: [确定]

  5, 从win7登陆,使用匿名anonymous登陆。

  C:\Users\xxx>ftp 55:1:1:1::555

  连接到 55:1:1:1::555.

  220 (vsFTPd 2.0.5)

  用户(55:1:1:1::555:(none)): anonymous

  331 Please specify the password.

  密码:

  230 Login successful.

  ftp> ls

  200 EPRT command successful. Consider using EPSV.

  150 Here comes the directory listing.

  pub

  226 Directory send OK.

  ftp: 收到 5 字节,用时 0.00秒 5.00千字节/秒。

  ftp> cd pub

  250 Directory successfully changed.

  ftp> ls

  200 EPRT command successful. Consider using EPSV.

  150 Here comes the directory listing.

  vpn.cfg

  x509.c

  226 Directory send OK.

  ftp: 收到 149 字节,用时 0.00秒 49.67千字节/秒。

  ftp>

  linux ipv6 ftp服务器测试登陆成功。

  6, 永久保存ipv6地址

  1) vim /etc/sysconfig/network中增加

  NETWORKING_IPV6=yes

  2)vim /etc/sysconfig/network-scripts/ifcfg-eth0

  IPV6INIT=yes

  IPV6ADDR=55:1:1:1::555/64


酷毙
2

雷人

鲜花

鸡蛋

漂亮

刚表态过的朋友 (2 人)

  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部