loopback 127.0.0.1 missing in container

bread-baker

Member
Mar 6, 2010
432
0
16
loopback 127.0.0.1 missing in container *solved*

I'm missing 127.0.0.1 in a ct . it uses bridged networking. I tried using veth and 127.0.0.1 is still missing. any clue on how I can get 127.0.0.1 to work?
Code:
 ]1: lo:  mtu 16436 qdisc noop state DOWN      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: venet0: 
 mtu 1500 qdisc noop state DOWN      link/void  3: eth0: 
 mtu 1500 qdisc noqueue state UNKNOWN      link/ether 00:18:51:a7:4c:42 brd ff:ff:ff:ff:ff:ff     inet 10.100.100.220/16 scope global eth0     inet6 fe80::218:51ff:fea7:4c42/64 scope link         valid_lft forever preferred_lft forever 4: eth1: 
 mtu 1500 qdisc noqueue state UNKNOWN      link/ether 00:18:51:9c:57:96 brd ff:ff:ff:ff:ff:ff     inet 10.100.99.25/24 scope global eth1     inet6 fe80::218:51ff:fe9c:5796/64 scope link         valid_lft forever preferred_lft forever
try veth network:
Code:
 1: lo:  mtu 16436 qdisc noop state DOWN      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: venet0: 
 mtu 1500 qdisc noqueue state UNKNOWN      link/void      inet 127.0.0.2/32 scope host venet0     inet 10.100.99.220/32 scope global venet0
that is a ubuntu 11.10 container pveversion -v
Code:
 pve-manager: 1.9-26 (pve-manager/1.9/6567) running kernel: 2.6.32-6-pve proxmox-ve-2.6.32: 1.9-50 pve-kernel-2.6.32-4-pve: 2.6.32-33 pve-kernel-2.6.18-4-pve: 2.6.18-10 pve-kernel-2.6.32-6-pve: 2.6.32-50 qemu-server: 1.1-32 pve-firmware: 1.0-14 libpve-storage-perl: 1.0-19 vncterm: 0.9-2 vzctl: 3.0.29-3pve1 vzdump: 1.2-16 vzprocps: 2.0.11-2 vzquota: 3.0.11-1 pve-qemu-kvm: 0.15.0-1 ksm-control-daemon: 1.0-6
 
Last edited:
Code:
auto lo
iface lo inet loopback

auto          eth0
iface eth0 inet static
        address 10.100.100.220
        netmask 255.255.0.0
        network 10.100.100.0
        gateway 10.100.100.2

auto          eth1
iface eth1 inet static
        address 10.100.99.25
        netmask 255.255.255.0
        network 10.100.99.0
 
this system was created using ubuntu-11.04-standard_11.04-1_amd64 ,then upgraded to 11.10

I just made a test system using ubuntu-11.04-standard_11.04-1_amd64 , and t 127.0.0.1 exits:
Code:
root@fbc250test:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/void 
    inet 127.0.0.2/32 scope host venet0
    inet 10.100.100.253/32 scope global venet0:0

so this has something to do with the upgrade or something different in ubuntu oneiric ?
 
the solution was to setup lo in interfaces with
Code:
auto lo
iface lo inet loopback
 address 127.0.0.1
 netmask 255.255.255.249
which in my limited network experience was never run into before. that was always somehow auto set to 127.0.0.1/8 without the need to specify address and netmask.
 
Last edited: