[vserver] Have I created guest's lo correctly ?

From: Declan Mullen <declan_at_jadplace.com>
Date: Tue 19 Feb 2008 - 12:44:12 GMT
Message-ID: <47BACF1C.8090507@jadplace.com>

Hi

I'm running vserver 2.0 and I've attempted to create a new "127.0.0.1"
loopback "lo" interface for my guest. I've read that packets for this
interface should be redirected by the kernel to the guest's other
default interface, rather than going through the host's "127.0.0.1", and
that's very acceptable to me. However I suspect that what I've created
is instead a "127.0.0.1" interface for the guest that is the exact same
"127.0.0.1" interface for the host, ie the host and guest are now
sharing the one loopback interface, which is what I don't want. I
suspect this because when I run the "ip addr ls" command from the guest,
I get output which says the "lo" interface's scope is "host", eg

  # ip addr ls
  1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
  2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen
1000
      link/ether 00:60:b0:ce:75:4e brd ff:ff:ff:ff:ff:ff
      inet 192.168.1.132/24 brd 192.168.1.255 scope global secondary eth0

Have I created the loopback interface incorrectly as I suspect ?
If I have, can you please tell me how I should have created the guest's
loopback interface ?

My host is running Debian Etch with the default vserver (ie v2.0.2.2).
I've created the guest's "127.0.0.1" loopback interface by moving the
guest's existing "eth0" interface directory (ie
"/etc/vservers/<guest>/interfaces/0") to
"/etc/vservers/<guest>/interfaces/1", then creating a new
"/etc/vservers/<guest>/interfaces/0" directory, and under it creating
the "dev", "ip" and "prefix" files with the following contents:

   dev: lo
   ip: 127.0.0.1
   prefix: 8

Many thanks,
Declan
Received on Tue Feb 19 12:47:03 2008

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 19 Feb 2008 - 12:47:08 GMT by hypermail 2.1.8