OpenVZ Forum


Home » General » Support » emergecy issue " IP lost " (ip lost after reboot container)
emergecy issue " IP lost " [message #53233] Thu, 19 July 2018 01:49 Go to next message
simonq is currently offline  simonq
Messages: 3
Registered: July 2018
Junior Member
From: 124.239.139*
i have a ubuntu 16 container on my host

i restart it sometimes

then i found it didn't have an ip address, the ip lost.
i input 'ifconfig ' in container, just shows 'lo interface ', no ' venet0' and venet0:0 output.
i opened 'etc/network/interfaces' the config is still there


root@localhost:/# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@localhost:/#




interfaces:
auto lo
iface lo inet loopback

# Auto generated venet0 interfaces
auto venet0
iface venet0 inet static
        address 127.0.0.1
        netmask 255.255.255.255
        broadcast 0.0.0.0
        up route add default dev venet0

iface venet0 inet6 static
        address ::2
        netmask 128
        up ip -6 r a default dev venet0
auto venet0:0
iface venet0:0 inet static
        address 192.168.7.13
        netmask 255.255.255.0

Re: emergecy issue " IP lost " [message #53246 is a reply to message #53233] Fri, 27 July 2018 02:48 Go to previous message
websavers is currently offline  websavers
Messages: 5
Registered: March 2018
Location: Halifax, NS
Junior Member
From: 170.10.225*
With OpenVZ, the IPs are typically assigned by the node on-demand, rather then pre-configured in the container's interfaces config.

I'd check the vzctl log on the node to see if it had any issues assigning an IP. I'd also suggest ensuring you're on the latest release kernel on the node to ensure this isn't a problem with the latest iproute packages (kernel updates have fixed this).
Previous Topic: New installation SSH access maxes out at 10mbps
Next Topic: Looking to move from VMWare
Goto Forum:
  


Current Time: Sun Aug 19 23:13:15 GMT 2018