OpenVZ container Debian7: no network IP veth

cmonty14

Renowned Member
Mar 4, 2014
344
6
83
Hello!

I have created a container using template "debian-7.0-minimal_7.0-2_amd64.tar.gz".
I have configured a bridged network, but face a serious issue:
No IP resulting in no network connection.

I modified
Code:
root@debian7-x64:/# cat /etc/network/interfaces 

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
and
Code:
root@debian7-x64:/# cat /etc/resolv.conf        
search local.de
nameserver 192.168.100.1
where is the IP 192.168.100.1 of local DNS server.

The network configuration shows only this:
Code:
root@debian7-x64:/# ifconfig -a                                                 
eth0      Link encap:Ethernet  HWaddr 46:68:ac:68:83:c5  
          BROADCAST MULTICAST  MTU:1500  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:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          BROADCAST POINTOPOINT NOARP  MTU:1500  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:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

What is causing this error?

THX
 
Last edited: