Force FTP on lan1 on specific interface (535 Views)
Reply
Regular Advisor
Mangalam
Posts: 197
Registered: ‎02-11-2008
Message 1 of 9 (535 Views)
Accepted Solution

Force FTP on lan1 on specific interface

Hi All,

 

I have this particular problem which I understand is possible in Linux using iptables.

I would like to know how to achieve this in HP-UX.

 

I have a HP-UX server with 2 NIC cards - lan0 and lan1 (both on same subnet)

 

This server keeps doing regular routine tasks and need to transfer files to different remote machines on frequent basis.

What I need is that all the file transfers (especially FTP or SFTP) should happen using lan1 rather than lan0 (which is default)

 

Your guidance will be really appreciated.

 

Thanks

Mangalam

 

hjjjjj
Acclaimed Contributor
Torsten.
Posts: 23,285
Registered: ‎10-02-2001
Message 2 of 9 (525 Views)

Re: Force FTP on lan1 on specific interface

> I have a HP-UX server with 2 NIC cards - lan0 and lan1 (both on same subnet)

Is this APA?
Multiple NICs in same subnet may cause a lot of trouble... you should avoid this.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Regular Advisor
Mangalam
Posts: 197
Registered: ‎02-11-2008
Message 3 of 9 (523 Views)

Re: Force FTP on lan1 on specific interface

Hi Torsten,

 

Even I heard that multiple NIC on same subnet might cause problems.  Why is that ? Any specific reason ?

 

Next, at the moment we dont have APA. In this case Is it possible to achieve the requirements I mentioned ? How ?

 

Is it possible using APA ? How ?

 

Thanks

Mangalam

hjjjjj
Acclaimed Contributor
Torsten.
Posts: 23,285
Registered: ‎10-02-2001
Message 4 of 9 (514 Views)

Re: Force FTP on lan1 on specific interface

Using APA you can "bond" the physical NICs together and create a single logical interface, maybe the better solution in this case.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Regular Advisor
Mangalam
Posts: 197
Registered: ‎02-11-2008
Message 5 of 9 (511 Views)

Re: Force FTP on lan1 on specific interface

Hi Torsten,

Why do multiple NIC with same subnet create problem ?

Using APA, I will surely be able to bond multiple NICs together and all traffic will be common to this logical interface but my requirement is a dedicated NIC only for FTP connections.
Is this possible with/without additional S/W?

Thanks
Mangalam
hjjjjj
Acclaimed Contributor
Torsten.
Posts: 23,285
Registered: ‎10-02-2001
Message 6 of 9 (507 Views)

Re: Force FTP on lan1 on specific interface

[ Edited ]

You will have problems if not using ip_strong_es_model.

Best description I can find for the moment
(maybe the best anyway):

http://www.mayoxide.com/presentations/Understanding_hpux_routing.pdf


Problem in very, very short:
application is sending data over NIC1 and waits for answer, but answer received to NIC0, so NIC1 will receive nothing.

 

 

See the related thread:

 

http://h30499.www3.hp.com/t5/Networking/Resolving-asymmetric-routing-with-ip-strong-es-model/td-p/51...


Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Regular Advisor
Mangalam
Posts: 197
Registered: ‎02-11-2008
Message 7 of 9 (497 Views)

Re: Force FTP on lan1 on specific interface

Thanks Torsten...
One last query - If I assign different subnet (say X) to one of the NIC and place the other machine where the files should be copied on same subnet X, in that case both subnets can be configured on NIC cards of HP-UX and FTP will happen dedicatedly on seperate interface.
Correct ?

Thanks
Mangalam
hjjjjj
Acclaimed Contributor
Torsten.
Posts: 23,285
Registered: ‎10-02-2001
Message 8 of 9 (496 Views)

Re: Force FTP on lan1 on specific interface

Yes, the system will route the traffic to the different subnet to the specific NIC.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Regular Advisor
Mangalam
Posts: 197
Registered: ‎02-11-2008
Message 9 of 9 (490 Views)

Re: Force FTP on lan1 on specific interface

Thanks Torsten for your super quick responses.
Appreciate all your time and support

Regards
Mangalam
hjjjjj
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.