-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi there,
it seems like many people have the same question over and over again.
yes, you can have localhost
vi /etc/hosts
xx.xx.xx.xx localhost
where xx.xx.xx.xx your guest IP
you can give 127.0.0.1 to a guest, but then your server shares it with
the guest.
you can give 127.0.0.x to guests, but they will be able to ping each
other anyway. (and I recall that somebody told me this is not a very
good approach)
let me rephrase you question - do you want an isolated localhost IP
address for each guest? Why would you need this?
I'm sure it's been discussed many times already, perhaps it will be a
part of linux-vserver net-ng, what's the status?
my answers on your questions (correct me if I'm wrong):
1) yes, it's possible, see scenario described above
2) yes, pings come from the host server
ping 127.0.0.x (x any number)
you will receive responses
best,
- --alex
Alejandro Cabrera Obed wrote:
> Dear all, I'm new at vservers so I was looking for some information
> about the localhost interface problem. I mean that if I want to run a
> service on localhost I have to bind localhost to the guest IP or to a
> non-routable IP in the case I need a closed-service.
>
> Otherwhise I have localhost mapped to 127.0.0.1 in /etc/hosts and I've
> built the following interface under /etc/vservers/mine/0:
>
> nodev --- (empty)
> ip ------ 127.0.0.1
> mask ---- 255.0.0.0
> prefix -- 8
> name ---- localhost
>
> and when I ping this interface from my vserver's shell I get responses.
>
> So I have these two short questions:
>
> 1) Nowadays is it impossible to have a localhost/127.0.0.1 in the
> vservers ???
>
> 2) In accordance with the ping to the localhost interface I built, the
> localhost that responds is the one from the base host ???
>
> Thanks a lot, greetings
>
> Alejandro
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
iD8DBQFFL8bsARj22aXJfY0RAiJPAJ9jUVgZixMFQdgmCVf5GYdDxg7/YQCdGXug
F66lUFPetzvcumRQy/6VT/0=
=QWcF
-----END PGP SIGNATURE-----
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Oct 13 18:07:00 2006