将虚拟接口的ip地址绑定到ftp客户端 [英] Binding ip address of virtual interface to ftp client

查看:462
本文介绍了将虚拟接口的ip地址绑定到ftp客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将eth0:1添加到我的debian框的接口文件中。
现在我想要我的ftp客户端是lftp使用新的IP地址连接。
使用特定接口进行通信的指令是什么?
感谢

解决方案

lftp 中设置 net:socket-bind-ipv4 选项到您希望客户端使用的本地IP地址:

  set net:socket-bind-ipv4 abcd 

您可以直接键入客户端,但如果您要定期执行此操作,则将其添加到 $ HOME / .lftprc $ HOME / .lftp / rc 文件。



如果您使用IPv6,那么还有一个 net:socket-bind- ipv6 选项。


I have added eth0:1 with one more ip to the interface file of my debian box. The thing is now i want my ftp client which is lftp to connect using the new ip address. What was the directive to use a specific interface to communicate? Thanks

解决方案

In lftp set the net:socket-bind-ipv4 option to the local IP address that you want the client to use:

    set net:socket-bind-ipv4 a.b.c.d

You can type that directly into the client but if you're going to do this regularly then it would make more sense to add it into your $HOME/.lftprc or $HOME/.lftp/rc file.

If you're using IPv6 then there's also a net:socket-bind-ipv6 option.

这篇关于将虚拟接口的ip地址绑定到ftp客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆