Solved

binding Ports to ethx

Posted on 1998-05-22
7
200 Views
Last Modified: 2010-03-18
I currently have 2 network cards in my server, and would like to use both of them.  How do i tell an application or port to use a specific ethx device?
0
Comment
Question by:pointman
7 Comments
 
LVL 2

Expert Comment

by:jeffa072897
ID: 1584366
I'm not sure if this will help you, but a couple of hints/suggestions.
Does your application have to know the exact device it wants or is it intelligent to
know by a specific IP address which each card will have?
If your app is one you developed that you should be albe to reference eth0 and eth1 in the
app (sorry, I'm not a programmer). Which ethernet is which should be constant if you set the startup scripts up.
I've used two cards several times and when I want an app to go out a specific port I've
just specified the destination.

0
 

Author Comment

by:pointman
ID: 1584367
No, it doens't ask which eth device to goto, yes thw Eth device will have a seperate IP, not sure if the program can be told what IP to use(still trying to get that info from the Programmer.)  I'll keep looking into it..  thanks
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1584368
You don't need to tell an "application" which NIC to use.
The network drivers (TCP/IP, IPX/SPX, etc.) and related programs, deamons, services (or however it's called by the OS) will do it automatically (of cause depending on their configuration).
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:pointman
ID: 1584369
Ahoffmann:  that is a statement that i already know, what i am asking is How do (ask, tell, or get) a program to use a specific ethx device.  All daemons/servers are useing the default eth device (usually Eth0) i'm trying to do this without running a kernel level script.  
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1584370
Hmm, you want to know "who" sets up you ether device?
This is done by ifconfig, look at the boot scripts in /etc/rc.d/*, depending on your linux distribution it's more or less readable.
The second thing is route, which sets up the routing table and automatically detects the ethx device to be used according to the destination IP address. You may display this info with:
  netstat -rn

Is this what you want to know?
0
 
LVL 2

Accepted Solution

by:
alexbik earned 100 total points
ID: 1584371
Hi,

You can't tell an application to use one of your ehternet cards. The cards are (along with PPP connections and other network interfaces) handled by the kernel. An application oly 'sees' a network, not the devices used to connect to it. Ofcourse, you can tell (some) applications to only listen to one specific IP address, but you don't have any control over outgoing datagrams from your application. Which packets are routed to which NIC is determined only by the routing table.

Alex.
0
 

Author Comment

by:pointman
ID: 1584372
Thank you, Im the one who built the machine. I set up everything on it,  I just don't have the time to work the problem right now and i needed the answer so i don't fall behind deadline.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now