Re: [vserver] Network interface problem

From: Daniel Hokka Zakrisson <>
Date: Tue 22 Apr 2008 - 13:46:04 BST
Message-ID: <52996.>

Sam Przyswa wrote:
> Hi,
> I just installed a vserver kernel on Debian Etch (2.6.18-6-vserver-686)
> compiled by my hosting service Dedibox in France ( for
> there servers. The server have one network interface:
> eth0
> I got 2 more IP addresses from my hosting service, configured on the
> vserver machine as
> eth0:0
> eth0:1
> At this point when I ping these addresses I got echo.
> I created and started one virtual server,
> in /etc/vserver/<server_name>/interface I have:
> dev: eth0:0
> ip:
> prefix: 27

If you want to use an alias (which really isn't necessary, unless you
require that ifconfig shows it on the host...), set dev to eth0, and name
to 0.

> T start the vserver, I go to it with "enter" command it seems work fine,
> I can connect outside services as ssh or ftp but I can't connect the
> vserver's services from internet, as well from the host machine, the
> connection go to the eth0= (main interface) instead of the
> eth0:0= address.

I doubt that. You need to make sure that your host's services are only
listening on the host's IP address(es), by adding the appropriate
Listen(Address) directives in the configuration. For e.g. sshd, add
ListenAddress to /etc/ssh/sshd_config on the host, restart
sshd on the host, and restart sshd on the guest. You should now be able to
reach the appropriate server.

> What's wrong ?
> Thanks in advance for your help.
> Sam.

Daniel Hokka Zakrisson
Received on Wed Apr 23 15:34:19 2008
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 23 Apr 2008 - 15:34:22 BST by hypermail 2.1.8