LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Multiple IPs on one NIC - How to use them all? (https://www.linuxquestions.org/questions/linux-networking-3/multiple-ips-on-one-nic-how-to-use-them-all-368965/)

MG-Cloud 10-02-2005 05:15 AM

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

acid_kewpie 10-02-2005 05:24 AM

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?

MG-Cloud 10-02-2005 02:09 PM

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

sal_paradise42 10-02-2005 04:42 PM

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

acid_kewpie 10-03-2005 02:28 AM

yeha, that was all i was gonna suggest, arbitrary but easy i gues,,,


All times are GMT -5. The time now is 03:37 AM.