Hello,

usually you set in you /etc/hosts file the host 'localhost' to the
public IP of the guest. There is no real need to have a 127.0.0.1
accessible. If you e.g. ping 127.0.0.1 from within a guest, it get
automatically mapped to the public IP of the guest.

If you need a 127-x address within your guest, you may add a 127.0.0.2
etc. to each guest.

HTH,
derjohn


Albert Shih wrote:
> Hi all
> 
> I've a vserver running two guests. 
> 
> On one guest everything work fine. But on second I cannot have the name
> resolution for localhost. Hi don't know localhost is 127.0.0.1, for example
> I cannot make ping localhost.
> 
> And I don't have /etc/hosts file on booth guest.
> 
> How can I fix this.
> 
> Regards.
> 
> --
> Albert SHIH
> Universite de Paris 7 (Denis DIDEROT)
> U.F.R. de Mathematiques.
> 7 ième étage, plateau D, bureau 10
> Heure local/Local time:
> Wed Jun 7 22:23:23 CEST 2006
> _______________________________________________
> Vserver mailing list
> [email protected]
> http://list.linux-vserver.org/mailman/listinfo/vserver
> 


-- 
Andreas John
net-lab GmbH
Luisenstrasse 30b
63067 Offenbach
Tel: +49 69 85700331

http://www.net-lab.net
_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to