From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Virus-Scanned: amavisd-new at localhost Message-ID: <468A1807.7010309@solin.spb.ru> Date: Tue, 03 Jul 2007 13:33:59 +0400 From: Aleksey Avdeev User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050815) X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: ALT Linux sysadmin discuss References: <200707032201.48322.alexey.borovskoy@gmail.com> In-Reply-To: <200707032201.48322.alexey.borovskoy@gmail.com> X-Enigmail-Version: 0.93.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9C1FE4FA179802FF7E1F8DC0" Subject: Re: [Sysadmins] ovz+veth+bridge X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2007 09:34:31 -0000 Archived-At: List-Archive: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9C1FE4FA179802FF7E1F8DC0 Content-Type: multipart/mixed; boundary="------------060703020203020406090104" This is a multi-part message in MIME format. --------------060703020203020406090104 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Alexey Borovskoy =D0=C9=DB=C5=D4: > =E4=CF=C2=D2=D9=CA =C4=C5=CE=D8. >=20 > =EE=C1=C4=CF =D0=D2=C9 =D3=D4=C1=D2=D4=C5 =CB=CF=CE=D4=C5=CA=CE=C5=D2=C1= ovz =C4=CF=C2=C1=D7=CC=D1=D4=D8 veth =D7 =C2=D2=C9=C4=D6. >=20 > =F7=CF=D0=D2=CF=D3 =DE=D4=CF =C9 =CB=D5=C4=C1 =D0=D2=CF=D0=C9=D3=C1=D4=D8= ? =EE=C5 =C4=C1=CA=D4=C5 =C4=CF=CA=D4=C9 =C4=CF =D0=D2=C1=D7=CB=C9 =D3=CB= =D2=C9=D0=D4=CF=D7,=20 > =C9=C2=CF =CE=C5 =CB=CF=DB=C5=D2=CE=CF =DC=D4=CF. =EB=C1=CB =C2=C5=DA =D0=D2=C1=D7=CB=C9 =D3=CB=D2=C9=D0=D4=CF=D7 -- =CE=C5= =DA=CE=C1=C0. :-( =F0=D2=C1=D7=C9=CC: 1. etcnet, setup-bri =C4=CC=D1 =D7=CF=DA=CD=CF=D6=CE=CF=D3=D4=C9 =DA=C1=D0= =D5=D3=CB=C1 setup-bri =C9=DA =CB=CF=CD=C1=CE=C4=CE=CF=CA =D3=D4=D2=CF=CB=C9 (=D3=CD. ). 2. =F3=CB=D2=C9=D0=D4=D9 ovz (=CB =D0=C9=D3=D8=CD=D5 =D0=D2=C9=CC=C1=C7=C1= =C0) --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD. =E1=CC=C5=CB=D3=C5=CA. --------------060703020203020406090104 Content-Type: application/x-shellscript; name="vz_update_bri.sh" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="vz_update_bri.sh" IyEgL2Jpbi9zaAoKaWYgWyAteCAvc2Jpbi9icmN0bCBdOyB0aGVuCgkvc2Jpbi9icmN0bCBz aG93IHwgXAoJCXNlZCAnMWQ7L15bWzpzcGFjZTpdXS9kO3MvXlwoW15bOnNwYWNlOl1dXCtc KVtbOnNwYWNlOl1dLiokL1wxLycgfCBcCgkJeGFyZ3MgLWkgL2V0Yy9uZXQvc2NyaXB0cy9z ZXR1cC1icmkge30KZmkK --------------060703020203020406090104 Content-Type: text/plain; name="vznet.conf" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vznet.conf" #! /bin/sh EXTERNAL_SCRIPT= POST_EXTERNAL_SCRIPT=/etc/vz/vz_update_bri.sh --------------060703020203020406090104 Content-Type: text/plain; name="vznetcfg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vznetcfg" #!/bin/sh # Copyright (C) 2000-2007 SWsoft. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # VZNETCFG=/etc/vz/vznet.conf [ -f ${VZNETCFG} ] && source ${VZNETCFG} usage() { echo "vznetcfg init veth " } init_veth() { local dev="$1" ip link set "$dev" up } # Call the external script if defined if [ -n "${EXTERNAL_SCRIPT}" -a -x "${EXTERNAL_SCRIPT}" ]; then export VEID exec "${EXTERNAL_SCRIPT}" $@ : fi if test $# -le 2; then usage exit 0 fi CMD=$1 case "${CMD}$2" in initveth) if test $# -ne 3; then usage exit 1 fi init_veth $3 ;; *) exit 1 ;; esac # Call the post external script if defined if [ -n "${POST_EXTERNAL_SCRIPT}" -a -x "${POST_EXTERNAL_SCRIPT}" ]; then exec "${POST_EXTERNAL_SCRIPT}" $@ : fi exit 0 --------------060703020203020406090104-- --------------enig9C1FE4FA179802FF7E1F8DC0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iQEVAwUBRooYET0KZX1FX4J6AQJqSAf/RMW9+BK6c0Sta6BorGvvZA8aQ5hM9ZU9 d2dnX9htg+sxzEwMUAR5bcbL13kVGJXIc9c/kC0Drf+8G6hb40xbZonoP7fI7vga 86f1YDkGIWtLVK+ea3M2F+Ll9spe/VQD2sm/nWaBmhublQpL0yy74nczUA2EDgFF mnbMuYnnl0IXbH1HDca/UhY4XFSGe0OlJPr/x/w4DQbO/M7kK6d71eYEVT6YNKmj 7jOsGLnV1vajyExGVw4L/j+xKTGfITKAxGUvimKeZcMMHCXcD2t7NCr7OgnOwsL1 mz/SgRsy7Y0sXvEsDKFbOomaSn4eIaE5TECU6CAwArR1Mqjdo8F/9w== =YZh9 -----END PGP SIGNATURE----- --------------enig9C1FE4FA179802FF7E1F8DC0--