Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Establishing 2 simultaneous FTP sessions: (1 Item)
   
Establishing 2 simultaneous FTP sessions  
Hi,

I'm trying to establish 2 simultaneous FTP sessions but I'm facing some probelms mapping the interface with the IP 
address and declaring the route. The first session connects and I'm able to download but the second session fails to 
connect with the FTP server.  

I'm using the following commands:

For first session: 

ifconfig [interface1] [Gateway_IP_Address1]
route add [FTP_Server1_IP_Address] -interface [Gateway_IP_Address1]
setconf CS_RESOLVE nameserver_[DNS ADDRESS] 
ftp [FTP_Server1_IP_Address]

For second session: 

ifconfig [interface2] [Gateway_IP_Address2]
route add [FTP_Server2_IP_Address] -interface [Gateway_IP_Address2]
setconf CS_RESOLVE nameserver_[DNS ADDRESS] 
ftp [FTP_Server2_IP_Address]

I've seen that the if the two FTP servers (ex: 192.168.0.100 & 192.168.0.102) and Gateway_IP_Addresses (ex: 192.168.0.105 & 192.168.0.106)  are on the same subnet, adding the first route results in the following entry in the routing table:  (destination) 192.168.0.0/24 --> (gateway) 192.168.0.105

This I beleive might be the reason why the I am not able to connect to the second FTP server (correct?). Also since both
 the gateway IP address are of the same subnet, the network mask is also the same. 

How can this issue be resolved.

Thanks!