From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Virus-Scanned: amavisd-new at localhost Message-ID: <453F01AE.3050207@elan.com.ua> Date: Wed, 25 Oct 2006 09:18:22 +0300 From: Slava Dubrovskiy User-Agent: Thunderbird 1.5.0.5 (X11/20060822) MIME-Version: 1.0 To: ALT Linux sysadmin discuss References: <453E07D4.10309@stc.donpac.ru> <20061024211129.GA10788@lks.home> In-Reply-To: <20061024211129.GA10788@lks.home> X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms080106030800050308000305" Subject: Re: [Sysadmins] OpenVZ : VE default route 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: Wed, 25 Oct 2006 06:18:47 -0000 Archived-At: List-Archive: This is a cryptographically signed message in MIME format. --------------ms080106030800050308000305 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Konstantin A. Lepikhov =D0=C9=DB=C5=D4: >> =F4=D2=C5=C2=D5=C5=D4=D3=D1 =D7 VE =D5=CB=C1=DA=C1=D4=D8 =D3=D7=CF=CA = default router =D0=D2=C9=CE=D5=C4=C9=D4=C5=CC=D8=CE=CF. =EF=C4=CE=C1=CB=CF= : >> >> =ED=CF=D6=CE=CF =CC=C9 =CB=C1=CB-=D4=CF =D0=CF=D0=D2=CF=D3=C9=D4=D8 Op= enVZ =CE=C5 =D0=CF=D2=D4=C9=D4=D8 =D4=C1=C2=CC=C9=C3=D5 =CD=C1=D2=DB=D2=D5= =D4=C9=DA=C1=C3=C9=C9? =ED=CF=D6=C5=D4=20 >> =C5=C7=CF =CD=CF=D6=CE=CF =CB=C1=CB-=D4=CF =D0=CF=D0=D2=CF=D3=C9=D4=D8= =C9 venet-=C9=CE=D4=C5=D2=C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=C7=CF =C9 =D6=C9=D4=D8 =CE=C5 =CD=C5=DB=C1=C0=D4. =F7 =CE=C1=DB=D5 =C2=C1=C7=DA=C9=CC=D5 =D0=CF=D7=C5=D3=C9=CC FR. =E4=CC=D1= =D3=C5=C2=D1 =D7 etcnet-add_ip.sh =D0=D2=CF=D3=D4=CF =D7=D3=D4=C1=D7=C9=CC =D0=D2=CF=D7=C5=D2=CB=D5, =DE=D4=CF =C5=D3=CC=C9 =CE=C5=D4 $IP_ADDR" =D4=CF= venet =D7=CF=CF=C2=DD=C5 =CE=C5 =D3=CF=DA=C4=C1=D7=C1=D4=D8: add_ip() { local i ip if [ -n "$IP_ADDR" ]; then if [ "$VE_STATE" =3D "starting" ]; then setup_network fi backup_configs "$IPDELALL" i=3D0 for ip in ${IP_ADDR}; do i=3D"$(find_unused_alias "$((i+1))")" create_alias "$ip" "$i" done move_configs if [ "$VE_STATE" =3D "running" ]; then # synchronyze config files & interfaces ifdown "$VENET_DEV" ifup "$VENET_DEV" fi fi } --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =E4=D5=C2=D2=CF=D7=D3=CB=C9=CA =F7=D1=DE=C5=D3=CC=C1=D7. --------------ms080106030800050308000305 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJAzCC AtwwggJFoAMCAQICECdSRt23LraQhv7oAUYOG0cwDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UE BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA2MDIwOTA3NTczMFoX DTA3MDIwOTA3NTczMFowQzEfMB0GA1UEAxMWV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