routable subnet as aliased IP's?

Linux Advanced Routing and Traffic Control

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

 



Greetings all!
I just got a colocated server space and the ISP has given me an IP address and a
routable /29 subnet.  Here's a partial snippet of the info they gave me (with
the real addressess changed for privacy)

==== WAN Address
  Customer IP Address     : 100.0.33.14 
  Netmask                 : 255.255.255.248 
  Broadcast Address       : 100.0.33.15 
  Default Gateway         : 100.0.33.9 
==== Routed Network
  IP Address Type         : 100.0.43.152/29 Class-C Subnet 
  Number of IP Addrs      : 6 
  Domain Name             : example.net 
  Customer IP Addresses   : 100.0.43.{153 thru 158} 
  Netmask                 : 255.255.255.248 
  Broadcast Address       : 100.0.43.159 

And they provided this chart:
                                                - 
                                                | 
                                                |      +----------+ 
                                                |      | Customer | 
                                                |------| Host #1  | 
                                                | .154 |          | 
                                                |      +----------+ 
            - WAN -                 - Subnet -  | 
+------+   Net/Mask   +----------+   Net/Mask   |      +----------+ 
|  ISP |  100.0.33.8  | Customer | 100.0.43.152 |      | Customer | 
|Router|---- /29 -----|Colocation|---- /248 ----|------| Host #2  | 
|      | .9       .14 |  Router  | .153         | .155 |          | 
+------+              +----------+              |      +----------+ 
                     ** REQUIRED **             | 
                     **  DEVICE  **             |      +----------+ 
                                                |      | Customer | 
                                                |------| Host #n  | 
                                                | .156 |          | 
                                                |      +----------+ 
                                                | 
                                                - 

I have a single server with Fedora Core3 (x86-64 2.6.10-1 kernel) installed, and
my intent is to use the iproute2 tools to set up aliases for .154, .155, .156,
etc. and then use IP Virtual Hosts in Apache.

So, to my question. I could get a router for routing the /29 subnet as the ISP
suggests, but can I use my Linux machine to do this?  Can I mount eth0 as
100.0.33.14 and then setup the 100.0.43.152-158 as aliases and write the routing
so that everything works?  I have read chapters 3 and 4 of the LARTC, and I
think it may be possible, but it's just not clicking yet as to how I might be
able to do this.

And to add one last twist to this...  let's say that I can do the above, what if
I wanted to take one of those IP's from the /29 subnet and route it on to
another system plugged into my eth1 while maintaining all of the other IP's as
aliases?

Am I dreaming?  Can you help me?

Thanks!
  Ray

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux