OpenVZ Forum


Home » General » Support » Problem with starting Debian* and Ubuntu* network => vzctl 3.0.26
Re: Problem with starting Debian 6 (2011-02-18) [message #42103 is a reply to message #42101] Mon, 28 February 2011 21:52 Go to previous messageGo to previous message
hack is currently offline  hack
Messages: 6
Registered: February 2011
Location: hjfg
Junior Member
[root@vps ~]# vzctl enter 144
entered into CT 144
root@1:/# ping google.com
ping: unknown host google.com


root@1:/# 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:16436  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
       [b]inet6 addr: 2001:41d0:2:865c::9b23:ae15/0 Scope:Global[/b]
          UP BROADCAST POINTOPOINT RUNNING 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)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:178.33.130.-  P-t-P:178.33.130.-  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1


root@1:/# /etc/init.d/networking start
Configuring network interfaces...SIOCSIFADDR: File exists
Failed to bring up venet0.
done.


root@1:/# ping google.com
PING google.com (74.125.230.81) 56(84) bytes of data.
64 bytes from 74.125.230.81: icmp_req=1 ttl=55 time=6.30 ms
64 bytes from 74.125.230.81: icmp_req=2 ttl=55 time=5.53 ms
64 bytes from 74.125.230.81: icmp_req=3 ttl=55 time=4.75 ms
64 bytes from 74.125.230.81: icmp_req=4 ttl=55 time=4.97 ms
64 bytes from 74.125.230.81: icmp_req=5 ttl=55 time=4.60 ms

--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 4.602/5.233/6.303/0.621 ms



root@1:/# 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:16436  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
       [b]inet6 addr: 2001:41d0:2:865c::d5f6:d3f/0 Scope:Global
          inet6 addr: 2001:41d0:2:865c::5d86:3576/0 Scope:Global
          inet6 addr: 2001:41d0:2:865c::cbf4:fb92/0 Scope:Global
          inet6 addr: 2001:41d0:2:865c::9b23:ae15/0 Scope:Global
          inet6 addr: 2001:41d0:2:865c::d24f:cdfe/0 Scope:Global
          inet6 addr: 2001:41d0:2:865c::68ea:a63/0 Scope:Global
          inet6 addr: 2001:41d0:2:865c::3857:d93b/0 Scope:Global
          inet6 addr: 2001:41d0:2:865c::9829:1d5f/0 Scope:Global[/b]
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1216 (1.1 KiB)  TX bytes:836 (836.0 B)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:178.33.130.-  P-t-P:178.33.130.-  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1


After start networking is ok, but after reboot container problem is back. SolusVM template is adding 8 ipv6 addresses for each container, but u can see on first 'ifconfig' is only 1 IPv6 added, and after start networking all 8.

* test the ping via IPv4, IPv6 or both ? - no replay
* can you ping the ct from hostnode IPv4 / IPv6 ? - no replay
* any ip(6)tables rules active ? - no additional rules


Before fix (start networking):

root@1:/# ping google.com
ping: unknown host google.com

root@1:/# ip -4 a l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    inet 127.0.0.1/8 scope host lo
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    inet 178.33.130.226/32 scope global venet0:0
root@1:/# ip -4 r l
root@1:/# ip -6 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
root@1:/# ip -6 r l



root@1:/# cat /etc/network/interfaces
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
# Please create/edit /etc/network/interfaces.head and /etc/network/interfaces.tail instead,
# their contents will be inserted at the beginning and at the end
# of this file, respectively.
#
# NOTE: it is NOT guaranteed that the contents of /etc/network/interfaces.tail
# will be at the very end of this file.

# Auto generated lo interface
auto lo
iface lo inet loopback

# Auto generated venet0 interface
auto venet0
iface venet0 inet manual
        up ifconfig venet0 up
        up route add default dev venet0
        down route del default dev venet0
        down ifconfig venet0 down


iface venet0 inet6 manual
        up ifconfig venet0 add 2001:41d0:2:865c::3857:d93b/0
        down ifconfig venet0 del 2001:41d0:2:865c::3857:d93b/0
        up ifconfig venet0 add 2001:41d0:2:865c::cbf4:fb92/0
        down ifconfig venet0 del 2001:41d0:2:865c::cbf4:fb92/0
        up ifconfig venet0 add 2001:41d0:2:865c::d5f6:d3f/0
        down ifconfig venet0 del 2001:41d0:2:865c::d5f6:d3f/0
        up ifconfig venet0 add 2001:41d0:2:865c::68ea:a63/0
        down ifconfig venet0 del 2001:41d0:2:865c::68ea:a63/0
        up ifconfig venet0 add 2001:41d0:2:865c::d24f:cdfe/0
        down ifconfig venet0 del 2001:41d0:2:865c::d24f:cdfe/0
        up ifconfig venet0 add 2001:41d0:2:865c::9829:1d5f/0
        down ifconfig venet0 del 2001:41d0:2:865c::9829:1d5f/0
        up ifconfig venet0 add 2001:41d0:2:865c::5d86:3576/0
        down ifconfig venet0 del 2001:41d0:2:865c::5d86:3576/0
        up ifconfig venet0 add 2001:41d0:2:865c::9b23:ae15/0
        down ifconfig venet0 del 2001:41d0:2:865c::9b23:ae15/0

auto venet0:0
iface venet0:0 inet static
        address 178.33.130.226
        netmask 255.255.255.255

root@1:/#

[Updated on: Mon, 28 February 2011 22:10]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to mount second drive
Next Topic: network troubles
Goto Forum:
  


Current Time: Sun Jul 14 14:17:14 GMT 2024

Total time taken to generate the page: 0.02335 seconds