hi, I have 5 guests on the server, each guest has own localhost IP, like 127.0.0.5, 127.0.0.6 etc. (guests /etc/hosts has record like "127.0.0.5 localhost") it seemed the only option available. can someone tell me is it good approach? is there anything else beside this? The reason why I want to have a local IP inside a guest - to be able to bind services to a local interface that are not accessible from outside, for example:
one can access IMAP (over ssl) using guest real IP webmail app can access IMAP service bound to local IP thanks --Alex On 6/7/06, Andreas John <[EMAIL PROTECTED]> wrote:
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
_______________________________________________ Vserver mailing list [email protected] http://list.linux-vserver.org/mailman/listinfo/vserver
