LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-02-2005, 05:15 AM   #1
MG-Cloud
Member
 
Registered: Nov 2003
Distribution: Gentoo
Posts: 30

Rep: Reputation: 15
Multiple IPs on one NIC - How to use them all?


Hey all,

Through the use of virtual interfaces on eth0 (eg . eth0:1, eth0:2, etc) I am able to obtain the maximum amount of IP's alloted to my ISP account on one network card. My question is .. how can I use all those IP's? Is there a command I can run like the following:

<command> <ip to use> <command to run> ? (eg. use_ip IP_ADDRESS firefox)

Or, is there a way I can configure applications to use a particular virtual interface?

Thanks
 
Old 10-02-2005, 05:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, that's down to your routing tables, it'll not be application specific save for heavy network apps like ethereal. why would you want to do this?
 
Old 10-02-2005, 02:09 PM   #3
MG-Cloud
Member
 
Registered: Nov 2003
Distribution: Gentoo
Posts: 30

Original Poster
Rep: Reputation: 15
Hi, thanks for the reply !

Well, to be completely honest, each IP gets its own allocation of bandwidth. I don't know why they cap that way, but they do. Just wanted to use my account to its full potential, and short of buying another computer to use that IP.

What did you mean by routing tables? I'm not an expert on networking but I'm willing to learn.

Thanks again
 
Old 10-02-2005, 04:42 PM   #4
sal_paradise42
Member
 
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150

Rep: Reputation: 16
Routing tables forward traffic to the assigned interface, based on the destination network, example:
Code:
[root@c-x-x-x-x root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
67.x.x.0           0.0.0.0         255.255.248.0   U     0      0        0 eth1
0.0.0.0            67.x.x.x              0.0.0.0         UG    0      0       0 eth1
if I ping something in the 192.168.1/24 network I will go through eth0
if I ping something anywhere else, because my GW is going out of eth1, it will go out that interface
 
Old 10-03-2005, 02:28 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeha, that was all i was gonna suggest, arbitrary but easy i gues,,,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple IPs, one NIC, different networks branden_burger Linux - Networking 3 03-15-2005 07:24 AM
multiple IPs, one nic v4lu3s Linux - Networking 4 02-07-2004 10:52 AM
binding multiple IPs to single NIC? lok1 Linux - Networking 2 11-16-2003 02:58 PM
Adding multiple static IPs to one NIC digihlp Linux - Networking 2 06-26-2003 07:13 PM
Multiple NIC cards - public and private IPs harryinjapan Linux - Networking 2 12-02-2001 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration