How to FORCE FTP FROM a specific network card on AIX

Posted on 2013-10-16
Medium Priority
Last Modified: 2013-10-16
I have a Power7 running AIX 7.1 with 2-10/100/1000 network cards running 100_Full_Duplex currently plugged into the same 10/100 switch.

I need to temporarily reconfigure one of the network cards to 1000_Full_Duplex and connect it to a gigabit switch so I can FTP data to a local Windows 2003 Server that has a gigabit NIC and will be connected to the same gigabit switch.
After I change the AIX side to 1000_Full_Duplex, is it possible to start the FTP on the AIX side and FORCE it to use the network card set to 1000_Full_Duplex?

Dan Kaib
Question by:scodhk
  • 3
  • 3
LVL 57

Expert Comment

ID: 39577428
It should choose the NIC based on the destination IP address and the routing table.

So just make sure that the route table uses that NIC for the IP address of the server you are going to.

Author Comment

ID: 39577528
Thank you giltjr for your quick reply.

I have never had to add a route after the initial installation in AIX.
Below is the netstat -rn from the system:
Routing tables
Destination        Gateway           Flags   Refs     Use  If   Exp  Groups

Route Tree for Protocol Family 2 (Internet):
default       UG        0     11561 en0      -      -     UHSb      0         0 en0      -      ->     UHSb      0         0 en1      -      ->
10.82.100/24     U        12    440561 en0      -      ->
10.82.100/24     U         8    315221 en1      -      -         UGHS      2       238 lo0      -      -         UGHS      0        74 lo0      -      -     UHSb      2       277 en0      -      ->     UHSb      1       108 en1      -      -
127/8             U         4     33077 lo0      -      -

Route Tree for Protocol Family 24 (Internet v6):
::1%1              ::1%1             UH        1       160 lo0      -      -

I need to go from AIX IP address (en1) to Windows IP address

Below is the add route screen:
  Destination TYPE                                    net                    +
* DESTINATION Address                                []
* Default GATEWAY Address                            []
  COST                                               [0]                
  Network MASK (hexadecimal or dotted decimal)       []
  Network Interface                                  []                      +
  (interface to associate route with)
  Enable Active Dead Gateway Detection?               no                     +
  Is this a Local (Interface) Route?                  no                     +
  Policy (for Multipath Routing Only)                 Default (Global)       +
  Weight (for Weighted Multipath Routing Policy)     [1]                      #
  Apply change to DATABASE only                       no                     +

I was going to answer the questions as follows:
  Destination TYPE                                    host                   +
* DESTINATION Address                                []
* Default GATEWAY Address                          [] should this be
  Network Interface                                  [en1]                      +

Unfortunately this is a live system that I don't feel comfortable adding a route on the fly.
Any help you could provide in completing this screen would be appreciated.

LVL 57

Accepted Solution

giltjr earned 2000 total points
ID: 39577577
Um, do you know if you actually use en1 at all?

Both adapters are on the same subnet.   Typically when that occurs all traffic initiated from this host would flow out the first adapter, in your case en0.

I'm not sure if you set a route for via it would work.

I believe that you may want to change " Is this a Local (Interface) Route? " from no to yes.

If you were doing command line instead of SMIT you would do:

route add -host  -interface

Then when you are done it would be:

route delete -host  -interface
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

ID: 39577756
Thanks giltjr for the quick reply.

I don't know if both are being used.  The system came in with the OS installed and IBM did the setup.

There are probably 30 users connecting to the AIX system using thin client.

Is there a way to tell if both en0 and en1 are in use?

LVL 57

Expert Comment

ID: 39577769
Looking at some other doc, it looks like if AIX sees two interfaces in the same subnet by default it will use them both in round robin fashion.

If you setup the static route to use a specific interface it should use that interface for all traffic to that host/network.

Author Comment

ID: 39578427
Thank you giltjr for your help.
I will be adding the route tomorrow for testing.


Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question