Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-02-2005, 05:15 AM
|
#1
|
Member
Registered: Nov 2003
Distribution: Gentoo
Posts: 30
Rep:
|
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
|
|
|
10-02-2005, 05:24 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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?
|
|
|
10-02-2005, 02:09 PM
|
#3
|
Member
Registered: Nov 2003
Distribution: Gentoo
Posts: 30
Original Poster
Rep:
|
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
|
|
|
10-02-2005, 04:42 PM
|
#4
|
Member
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150
Rep:
|
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
|
|
|
10-03-2005, 02:28 AM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
yeha, that was all i was gonna suggest, arbitrary but easy i gues,,,
|
|
|
All times are GMT -5. The time now is 09:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|