The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
command for selecting specific lines from a script gardasgangadhar UNIX for Dummies Questions & Answers 1 05-13-2008 05:29 AM
is there any direct command to find PSID ? Vijay06 Shell Programming and Scripting 2 01-07-2008 06:56 PM
Extracting specific info from finger command franny UNIX for Dummies Questions & Answers 1 12-05-2007 01:13 PM
How to direct awk output to expr? jvander Shell Programming and Scripting 4 04-21-2005 09:09 PM
direct transmission of files via TCP/IP darkspace High Level Programming 5 08-26-2002 02:00 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-01-2006
pray44u pray44u is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 6
How to direct FTP command to use a specific IP add or NIC ?

Hi,

My requirement is to transfer huge amount of data using FTP from one unix box to another.
And our server has 2 NIC cards ( 100Mbps/Full duplex ) one is considered as primary and other is used for only backups.

When I plna to transfer the files, how can I tell ftp to use only the backup NIC for data transfer ( I dont want to use the primary NIC card as it will be busy during the business hours ) .

thanks in advance.
  #2 (permalink)  
Old 06-01-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
Are both NICs on the same network? If not, it'd route on its own. Otherwise, you'll need to make the secondary NIC the gateway to wherever box you want to put your files to with the route command.
  #3 (permalink)  
Old 06-01-2006
pray44u pray44u is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 6
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 ?
  #4 (permalink)  
Old 06-01-2006
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
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 ?
If you have 2 different IP addresses, cannot you just use the IP you want? [I must be missing something obvious here]
  #5 (permalink)  
Old 06-01-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,206
Quote:
Originally Posted by vgersh99
If you have 2 different IP addresses, cannot you just use the IP you want? [I must be missing something obvious here]

No, you're not. If the backup IPs are on the same subnet then traffic will go directly via the interfaces that a local to each other, ie backup NIC to backup NIC. Nothing needs to be done.
  #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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0