将虚拟接口的ip地址绑定到ftp客户端 [英] Binding ip address of virtual interface to ftp client
问题描述
现在我想要我的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屋!