kir wrote on Thu, 21 July 2011 19:091. Do other CTs work fine (wrt networking) on the same system?
Yes. CentosOS, Slackware, Mandriva
Quote:
2. What is the output of the following commands (inside your failing CT)?
/sbin/ip r
/sbin/ip a
ifconfig -a
ls -l /etc/sysconfig/network-scripts/
[root@home /]# ip r
[root@home /]# ip a
1: lo: <LOOPBACK> mtu 16436 qdisc noop
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: venet0: <BROADCAST,POINTOPOINT,NOARP> mtu 1500 qdisc noop
link/void
3: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether EE:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
[root@home /]# ifconfig -a
eth0 Link encap:Ethernet HWaddr EE:FF:FF:FF:FF:FF
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
LOOPBACK 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
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)
[root@home /]# ls -l /etc/sysconfig/network-scripts/
total 236
-rw-r--r-- 1 root root 254 Oct 13 2010 ifcfg-lo
-rw-r--r-- 1 root root 116 Jul 20 17:42 ifcfg-venet0
-rw-r--r-- 1 root root 71 Jul 20 17:50 ifcfg-venet0:0
lrwxrwxrwx 1 root root 20 Jul 11 10:16 ifdown -> ../../../sbin/ifdown
-rwxr-xr-x 1 root root 625 Oct 13 2010 ifdown-bnep
-rwxr-xr-x 1 root root 4573 Oct 13 2010 ifdown-eth
-rwxr-xr-x 1 root root 827 Oct 13 2010 ifdown-ippp
-rwxr-xr-x 1 root root 2149 Oct 13 2010 ifdown-ipsec
-rwxr-xr-x 1 root root 4473 Oct 13 2010 ifdown-ipv6
lrwxrwxrwx 1 root root 11 Jul 11 10:16 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x 1 root root 1481 Oct 13 2010 ifdown-post
-rwxr-xr-x 1 root root 1084 Oct 13 2010 ifdown-ppp
-rwxr-xr-x 1 root root 637 Oct 13 2010 ifdown-routes
-rwxr-xr-x 1 root root 1593 Oct 13 2010 ifdown-sit
-rwxr-xr-x 1 root root 913 Oct 13 2010 ifdown-sl
-rwxr-xr-x 1 root root 1074 Oct 13 2010 ifdown-tunnel
lrwxrwxrwx 1 root root 18 Jul 11 10:16 ifup -> ../../../sbin/ifup
-rwxr-xr-x 1 root root 13427 Oct 13 2010 ifup-aliases
-rwxr-xr-x 1 root root 859 Oct 13 2010 ifup-bnep
-rwxr-xr-x 1 root root 10798 Oct 13 2010 ifup-eth
-rwxr-xr-x 1 root root 12033 Oct 13 2010 ifup-ippp
-rwxr-xr-x 1 root root 8078 Oct 13 2010 ifup-ipsec
-rwxr-xr-x 1 root root 10853 Oct 13 2010 ifup-ipv6
-rwxr-xr-x 1 root root 823 Oct 13 2010 ifup-ipx
lrwxrwxrwx 1 root root 9 Jul 11 10:16 ifup-isdn -> ifup-ippp
-rwxr-xr-x 1 root root 727 Oct 13 2010 ifup-plip
-rwxr-xr-x 1 root root 954 Oct 13 2010 ifup-plusb
-rwxr-xr-x 1 root root 2369 Oct 13 2010 ifup-post
-rwxr-xr-x 1 root root 4298 Oct 13 2010 ifup-ppp
-rwxr-xr-x 1 root root 1707 Oct 13 2010 ifup-routes
-rwxr-xr-x 1 root root 3662 Oct 13 2010 ifup-sit
-rwxr-xr-x 1 root root 1675 Oct 13 2010 ifup-sl
-rwxr-xr-x 1 root root 2078 Oct 13 2010 ifup-tunnel
-rwxr-xr-x 1 root root 3325 Oct 13 2010 ifup-wireless
-rwxr-xr-x 1 root root 5433 Oct 13 2010 init.ipv6-global
-rwxr-xr-x 1 root root 1154 Oct 13 2010 net.hotplug
-rw-r--r-- 1 root root 10363 Oct 13 2010 network-functions
-rw-r--r-- 1 root root 39833 Oct 13 2010 network-functions-ipv6
Quote:
3. Please show the contents of CT config file (i.e. /etc/vz/conf/${CTID}.conf)
NUMPROC="6134:6134"
AVNUMPROC="3067:3067"
NUMTCPSOCK="6134:6134"
NUMOTHERSOCK="6134:6134"
VMGUARPAGES="500199:9223372036854775807"
# Secondary parameters
KMEMSIZE="251297300:276427030"
TCPSNDBUF="58640902:83765766"
TCPRCVBUF="58640902:83765766"
OTHERSOCKBUF="29320451:54445315"
DGRAMRCVBUF="29320451:29320451"
OOMGUARPAGES="500199:9223372036854775807"
PRIVVMPAGES="1840556:2024611"
# Auxiliary parameters
LOCKEDPAGES="12270:12270"
SHMPAGES="184055:184055"
PHYSPAGES="0:9223372036854775807"
NUMFILE="98144:98144"
NUMFLOCK="1000:1100"
NUMPTY="512:512"
NUMSIGINFO="1024:1024"
DCACHESIZE="54884411:56530944"
NUMIPTENT="200:200"
DISKSPACE="67580512:67680512"
DISKINODES="3265243:3591768"
CPUUNITS="6000"
OSTEMPLATE="centos"
HOSTNAME="home"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
NAMESERVER="XX.YY.XX.YY"
NETIF="ifname=eth0,bridge=mybr0,mac=EE:FF:FF:FF:FF:FF,host_ifname=veth101.0,host_mac=EE:FF:EE:FF:EE:FF"
ORIGIN_SAMPLE="basic"
IP_ADDRESS="XX.XX.XX.XX"
Note: IP and MAC are changed in the message