[vserver] remove loopback

From: Evgeny Chukreev <evgeny.chukreev_at_gmail.com>
Date: Thu 21 Jan 2010 - 08:52:07 GMT
Message-ID: <984c04a41001210052h6ca92580m41b8d9076c609352@mail.gmail.com>


It seems that I have a problem that is opposite to what people usually
need here. I want to remove lo interface from my guest completely (or
at least unlink it from the host's lo). Is it possible?

Linux fw 2.6.32-trunk-vserver-amd64 #1 SMP Sun Jan 10 23:45:41 UTC
2010 x86_64 GNU/Linux (debian sid)

tap1 in /etc/vservers/serv1/interfaces/0/dev in /etc/vservers/serv1/interfaces/0/ip
[nothing] in /etc/vservers/serv1/interfaces/0/name
28 in /etc/vservers/serv1/interfaces/0/prefix

0 is the only entry in the interfaces directory

root@fw:/# vserver serv1 enter
serv1:/# ifconfig -a
lo Link encap:Local Loopback
          inet addr: Mask:
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:4100 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4100 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:295738 (288.8 KiB) TX bytes:295738 (288.8 KiB)

tap1 Link encap:Ethernet HWaddr f2:2e:81:ec:5b:48
          inet addr: Bcast: Mask:
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:6 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 tap1 * U 0 0 0 * * U 0 0 0 *
xx.yyy.zzzz.aaa * U 0 0 0 *
default * UG 0 0 0 *

tap1 is created on the host by using (in /etc/network/interfaces):
auto tap1
iface tap1 inet static
    pre-up tunctl -t tap1

What have I done wrong?

Received on Thu Jan 21 08:52:35 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 21 Jan 2010 - 08:52:37 GMT by hypermail 2.1.8