Binding ip address of virtual interface to ftp client

旧时模样 提交于 2019-12-11 04:56:52

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/11233764/binding-ip-address-of-virtual-interface-to-ftp-client

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!