* [LARTC] routable subnet as aliased IP's?
@ 2005-02-04 9:20 3ds
2005-02-04 13:27 ` George Alexandru Dragoi
0 siblings, 1 reply; 2+ messages in thread
From: 3ds @ 2005-02-04 9:20 UTC (permalink / raw)
To: lartc
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@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [LARTC] routable subnet as aliased IP's?
2005-02-04 9:20 [LARTC] routable subnet as aliased IP's? 3ds
@ 2005-02-04 13:27 ` George Alexandru Dragoi
0 siblings, 0 replies; 2+ messages in thread
From: George Alexandru Dragoi @ 2005-02-04 13:27 UTC (permalink / raw)
To: lartc
I think you can just make aliases for all 8 ips (Yes i said 8)
ifconfig eth0:0 100.0.43.152 netmask 255.255.255.255 up
ifconfig eth0:1 100.0.43.153 netmask 255.255.255.255 up
ifconfig eth0:2 100.0.43.154 netmask 255.255.255.255 up
...
ifconfig eth0:7 100.0.43.159 netmask 255.255.255.255 up
On Fri, 4 Feb 2005 01:20:03 -0800, 3ds@norwesters.net
<3ds@norwesters.net> wrote:
> 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@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
--
Bla bla
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-04 13:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-04 9:20 [LARTC] routable subnet as aliased IP's? 3ds
2005-02-04 13:27 ` George Alexandru Dragoi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.