|
Re: veth-призрак [message #33324 is a reply to message #33321] |
Tue, 07 October 2008 18:39 |
Bobele
Messages: 37 Registered: March 2006
|
Member |
|
|
Может обновить vzctl до версии 3.0.22 ?
Я вот так делал, не знаю, правильно-ли... но работает.
vzctl set 301 --netif_add eth0 --save
cat /etc/vz/conf/301.conf |grep veth
NETIF=" ifname=eth0,mac=00:18:51:C9:D1:4F,host_ifname=veth301.0,host _mac=00:18:51:94:EE:C9 "
brctl addbr br0
brctl addif br0 eth1
ifconfig eth1 0
ifconfig br0 xxx.xxx.xxx.107
ip route add default via xxx.xxx.xxx.97 dev br0
vzctl start 301
brctl addif br0 veth301.0
brctl show
vzctl exec 301 ifconfig eth0 xxx.xxx.xxx.106/28
vzctl exec 301 ifconfig venet0 down
vzctl exec 301 ip route del default via 192.0.2.1 dev venet0
vzctl exec 301 ip route add default via xxx.xxx.xxx.97 dev eth0
[Updated on: Tue, 07 October 2008 18:58] Report message to a moderator
|
|
|
|
Re: veth-призрак [message #33328 is a reply to message #33327] |
Tue, 07 October 2008 20:02 |
Bobele
Messages: 37 Registered: March 2006
|
Member |
|
|
Сам Bridge не теряется, теряется interface veth и теряются настройки IP в VPS
ovz-1:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.00185194eec9 no eth1
veth301.0
ovz-1:~# vzctl restart 301
Restarting VE
Stopping VE ...
VE was stopped
VE is unmounted
Starting VE ...
VE is mounted
Setting CPU units: 1000
Configure meminfo: 232771
Set hostname: www.xxx.xx
File resolv.conf was modified
Configure veth devices: veth301.0
VE start in progress...
ovz-1:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.00304890bf9b no eth1
ovz-1:~# vzctl exec 301 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:37 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20477 (19.9 KiB) TX bytes:20477 (19.9 KiB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
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)
[Updated on: Tue, 07 October 2008 20:10] Report message to a moderator
|
|
|
|