The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 06-02-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
Quote:
Originally Posted by pray44u
Firstly thanks for the reply.
I do have 2 different IP address i.e 2 different subnets.
So you mean to say that changing default Gateway is the only option ?


Let me try to explain it better:

If your NICs are connected to 2 different subnets and the server you are ftp'ing your data to is in the same subnet as the secondary NIC, you probably don't need to do anything. And I say probably, because I don't have specifics, i.e., don't know if the secondary NIC was properly routed from the get-go. Quickly looking at the output of netstat -rn will tell you

If your secondary NIC is NOT in the same subnet as the server you are ftp'g to, or both NICs are on the same subnet, then you need to use the route command to tell your box that all traffic to <ip you are ftp'g to> has to go through gateway <ip of your second NIC> , NOT THE DEFAULT gateway. You would be adding a new gateway, not changing the default gateway.