How to direct FTP command to use a specific IP add or NIC ?


 
Thread Tools Search this Thread
Operating Systems Solaris How to direct FTP command to use a specific IP add or NIC ?
# 1  
Old 06-01-2006
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  
Old 06-01-2006
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  
Old 06-01-2006
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  
Old 06-01-2006
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  
Old 06-01-2006
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  
Old 06-02-2006
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Add two different subnet public IPs to single NIC or two different NIC on same box

Hello Admins, My ask is how can I add two different subnet IPs to same box with two different gateways? The issue is I can connect to the box when I am on ethernet LAN, but I am not able to connect to the same IP when I am on wifi. The server is RHEL 7 VM on vmware. How can I get connected... (4 Replies)
Discussion started by: snchaudhari2
4 Replies

2. UNIX for Dummies Questions & Answers

Output of ssh command from localhost - direct to local file.

Hi, i'm trying to gather details from remote hosts and want them to be written to my local linux machine from where i'm using SSH. My command looks some thing like this ssh -q remotehost 'bash -s' <command.txt where command.txt is a file in my local machine containing ps -ef |grep httpd |... (1 Reply)
Discussion started by: poga
1 Replies

3. Shell Programming and Scripting

Manipulating sed Direct Input to Direct Output

Hi guys, been scratching round the forums and my mountain of resources. Maybe I havn't read deep enough My question is not how sed edits a stream and outputs it to a file, rather something like this below: I have a .txt with some text in it :rolleyes: abc:123:xyz 123:abc:987... (7 Replies)
Discussion started by: the0nion
7 Replies

4. Red Hat

I want to tune NIC's rps, rfs and xps value. which NIC device should I modify.

Dear All I want tune my NIC's rps, rfs and xps value. In my system I have two NIC (eth0, eth1) and I have a bond0 ( eth0, eth1). Here is the question? Which device should I modify ? eth0 and eth1? or just modify bond0 or modify all device (eth0, eth1, bond0) Any advice is welcome.... (0 Replies)
Discussion started by: nnnnnnine
0 Replies

5. IP Networking

squid proxy: one NIC for inbound & one NIC for outbound?

I am new in squid proxy. My question is how to (and if it's necessary) to set one NIC for inbound traffic (http requests) and one NIC for outbound traffic (http answers)? Thank you in advance! (4 Replies)
Discussion started by: aixlover
4 Replies

6. Solaris

x86 Solaris 10 nic driver added but not attached. NIC is not detected.

I couldn't install my nic in solaris 10. I compiled and added the driver but failed to attach the driver and ifconfig output shows only loopback dev. Please see the following output and tell me whether my nic has been detected and why the driver failed to attach? My nic is detected in linux... (0 Replies)
Discussion started by: vectrum
0 Replies

7. UNIX for Advanced & Expert Users

Question on NIC and ndd command

I have a T2000 server which has 4 e1000g NIC cards How do I configure each of it for 1Gbit full duplex and turnoff autonegotiation. Please assist Thanks (4 Replies)
Discussion started by: Tirmazi
4 Replies

8. Shell Programming and Scripting

is there any direct command to find PSID ?

Is there any direct command to find PSID ? Thanks, Vijay (2 Replies)
Discussion started by: Vijay06
2 Replies

9. IP Networking

not able to add nic in solaris 8

Hi Folks, I've just installed solaris 8, but i cannot add my network card. i've reboot the box, got into the configmode, and try'd to add a network card. but it doesn't work. I can't add a ip address to the card, an error occurs. Who do i add it. Kind Regards (3 Replies)
Discussion started by: noripsni
3 Replies
Login or Register to Ask a Question