lkml.org 
[lkml]   [1997]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Virtual Web Hosting on 2.0.29
On Sat, 26 Jul 1997, Mark wrote:

> i'm trying to set up a machine to respond to two IP addresses so that i
> can run one machine hosting two hostnames. i found a HowTo which deals
> with virtual-hosting, but i can't get ifconfig to respond in the way the
> HowTo describes.
>
> ifconfig eth0 alias www.myNewHostName.com
>
> returns an error telling me that "alias" is an unknown host....

Ask on linux-net or linux-admin...this isn't a kernel issue.

The answer is, you can't use the above syntax without hacked ifconfig.
For everyone else, on linux, compile the kernel with CONFIG_NET_ALIAS and
CONFIG_IP_ALIAS, and then

ifconfig eth0:n alias-n.address.com up
route add -host alias-n.address.com dev eth0:n

repeat for n in 0-whatever number you like.

------------------------------------------------------------------
Jon Lewis <jlewis@fdt.net> | Unsolicited commercial e-mail will
Network Administrator | be proof-read for $199/message.
Florida Digital Turnpike |
________Finger jlewis@inorganic5.fdt.net for PGP public key_______


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.034 / U:3.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site