Messages in this thread | | | Date | Sat, 26 Jul 1997 17:13:19 -0400 (EDT) | From | Jon Lewis <> | Subject | Re: 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_______
| |