Routing Multiple Inbound IP Addresses -- How?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm not 100% sure what you're asking here.  If you just want the ips  
to come into your box, all you need do is have your dns server tie  
all your ips to your box.  If you do not run your own dns server,  
then this is still doable, but it becomes slightly more difficult.   
On the other hand, if you're just asking for multi-ip access via  
apache, or sendmail, this can be done in their configurations.

However, I don't think this is what you're asking.  I think what  
you're asking, is how to make your machine see itself as multiple  
ips.  (192.168.1.1 refer to yoour machine, and 192.168.1.2, and so on).
This is easily done using a modified netconfig script.  When you boot  
your machine, netconfig runs a script that puts eth0 (in most cases  
it's eth0) into your routing table, and sets it up with a particular  
address.
To make it see multiple ips, you need only copy the netconfig script  
(it's in /etc/rc.d/rc.inet2) I think at least on slackware, your  
mileage will vary depending on your version of linux.
In any case, you'll need to change the hardware each ip address  
refers to.  Your first one can remain eth0, but all others will need  
to refer to eth0:1 eth0:2 eth0:3 eth0:4 and so on until all ips are  
mapped to your ethernet port.  Of course, you would replace eth0 with  
whatever interface you're using for your internet connection.
I used to do this for softcon when I had 8 routable ips, and wasn't  
using them all.  The provider used to check, and they had a habbit of  
taking back those ips not specifically being used for things, so I  
simply multicasted them all to the same box while they weren't being  
used for other servers.
I have scripts somewhere, but I believe you should have little or no  
trouble figuring it out from this message, though I can offer  
additional assistance if you run into problems getting it to work.

On Nov 28, 2005, at 11:13 PM, Sina Bahram wrote:

> Hi Janina,
>
> Can you provide a little more information.
>
> When you say over your dsl, do you mean that your dsl modem is  
> going to be
> assigning more than one IP address to you? If so, then you're wanting
> something like multihoming, although if you want to pass those IP's  
> along,
> as you said, they are routable ... Then that's a different situation.
>
> Could you explain the specifics in greater detail please?
>
> Take care,
> Sina
>
> -----Original Message-----
> From: speakup-bounces at braille.uwo.ca [mailto:speakup- 
> bounces at braille.uwo.ca]
> On Behalf Of Janina Sajka
> Sent: Monday, November 28, 2005 10:12 PM
> To: speakup at braille.uwo.ca; ma-linux at tux.org; blinux-list- 
> bounces at redhat.com
> Subject: Routing Multiple Inbound IP Addresses -- How?
>
> This is fairly basic, I'm sure. But, for the life of me, I can't find
> documentation on it.
>
> So, here's the situation ...
>
> I have several routable IP addresses. All of them need to come  
> through the
> same interface, over my DSL to be specific. So, how can I route  
> based on IP
> alone? I know how to route by port, but how do I do it by IP address?
>
> All examples/help much appreciated.
>
>
> -- 
>
> Janina Sajka                Phone: +1.240.715.1272
> Partner, Capital Accessibility LLC    http:// 
> www.CapitalAccessibility.Com
>
> Marketing the Owasys 22C talking screenless cell phone in the U.S. and
> Canada--Go to http://www.ScreenlessPhone.Com to learn more.
>
> Chair, Accessibility Workgroup        Free Standards Group (FSG)
> janina at freestandards.org        http://a11y.org
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>





[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux