[Sussex] Routing

Simon Huggins huggie at earth.li
Wed May 25 10:17:02 UTC 2005


On Wed, May 25, 2005 at 10:24:53AM +0100, Colin Tuckley wrote:
> Simon Huggins wrote:
> > But that doesn't mean you can't virtual host many SSL sites from one
> > apache instance.
> > I have:
> > Port 80
> > NameVirtualHost 10.0.0.3
> > NameVirtualHost 10.0.0.4
> > NameVirtualHost 10.0.0.5
> > NameVirtualHost 10.0.0.6
> <snipped>

> The above would seem to imply that you have a way of routing http
> requests for several local (non-routable) IP addresses to one box
> running apache.

> Now, I know it's possible to have one nic respond on more than one IP
> address, but how do you route to multiple local IPs - or is this all
> for LAN access only?

Well those are private IP addresses in 10/8 but basically adding IP
aliases like that with real public IPs is trivial too.

You do stuff like:
ifconfig eth0:1 10.0.0.4 up
And you gain an alias on that interface.
You can use ip instead from iproute2 to do it too.

Most distros have ways of expressing this in their network startup
scripts nicely.

I'm not sure about your LAN question.  Basically when we as a colo
provider provide people with IPs either we route a netblock to an IP on
one of our colo LANs or we just allocate them more IPs from our shared
colo LAN range.

It doesn't make a lot of difference practically but having their own
netblock is better when they have a large number of IPs from an admin
point of view.

-- 
Simon Huggins  \ <sl> benj: mais il y a des thumbnails en 1600x1200 ;)
                \
http://www.earth.li/~huggie/                                htag.pl 0.0.22




More information about the Sussex mailing list