From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <453E07D4.10309@stc.donpac.ru> Date: Tue, 24 Oct 2006 16:32:20 +0400 From: Eugene Prokopiev User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.7.2) Gecko/20040808 X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: Sysadmins@lists.altlinux.org Content-Type: text/plain; charset=KOI8-R; format=flowed X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue Oct 24 16:32:21 2006 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 89,453e07d5268941012677721 X-DSPAM-Factors: 27, 16436, 0.40000, 16436, 0.40000, LOOPBACK, 0.40000, LOOPBACK, 0.40000, private, 0.40000, private, 0.40000, vps+basic, 0.40000, lft, 0.40000, lft, 0.40000, void, 0.40000, void, 0.40000, Received*Postfix+with, 0.40000, venet0, 0.40000, venet0, 0.40000, принудительно+Однако, 0.40000, Received*Tue, 0.40000, scope, 0.40000, scope, 0.40000, маршруты, 0.40000, 0+2, 0.40000, 0+2, 0.40000, veth4+00, 0.40000, Performing+postcreate, 0.40000, Received*Sysadmins+lists.altlinux.org, 0.40000, Received*24+Oct, 0.40000, С, 0.40000, добавились+А, 0.40000 Content-Transfer-Encoding: quoted-printable Subject: [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: Tue, 24 Oct 2006 12:32:39 -0000 Archived-At: List-Archive: =FA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5! =F4=D2=C5=C2=D5=C5=D4=D3=D1 =D7 VE =D5=CB=C1=DA=C1=D4=D8 =D3=D7=CF=CA def= ault router =D0=D2=C9=CE=D5=C4=C9=D4=C5=CC=D8=CE=CF. =EF=C4=CE=C1=CB=CF: [root@m1 ~]# vzctl create 104 --ostemplate altlinux-sisyphus --config=20 vps.basic Creating VE private area: /var/lib/vz/private/104 Performing postcreate actions VE private area was created [root@m1 ~]# vzctl start 104 Starting VE ... VE is mounted Setting CPU units: 1000 VE start in progress... [root@m1 ~]# vzctl exec 104 ip a 1: lo: mtu 16436 qdisc noop link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 3: venet0: mtu 1500 qdisc noop link/void [root@m1 ~]# vzctl exec 104 ip r [root@m1 ~]# vzctl set 104 --veth_add=20 veth4,00:12:34:56:78:0A,eth0,00:12:34:56:78:0B --save Processing veth devices Saved parameters for VE 104 [root@m1 ~]# vzctl exec 104 ip a 1: lo: mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 3: venet0: mtu 1500 qdisc noqueue link/void inet 127.0.0.1/32 scope host venet0 5: eth0: mtu 1500 qdisc noop link/ether 00:12:34:56:78:0b brd ff:ff:ff:ff:ff:ff [root@m1 ~]# vzctl exec 104 ip r 192.0.2.0/24 dev venet0 scope host default via 192.0.2.1 dev venet0 =ED=CF=D6=CE=CF =CC=C9 =CB=C1=CB-=D4=CF =D0=CF=D0=D2=CF=D3=C9=D4=D8 OpenV= Z =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=C6=C5=CA=D3 =CE=C5 =D3=CF=DA=C4=C1=D7=C1=D4=D8? =ED= =CE=C5 =CF=CE =CE=C5=20 =CE=D5=D6=C5=CE, =C4=CF=D3=D4=C1=D4=CF=DE=CE=CF veth ... =F7 =D7=C5=D4=CB=C5 "=F3=C5=D4=D8 =D7 OpenVZ" =D5=D6=C5 =CF=C2=D3=D5=D6=C4= =C1=CC=CF=D3=D8, =CF=D4=DE=C5=C7=CF =DC=D4=C9 =CD=C1=D2=DB=D2=D5=D4=D9 =CE= =C5=20 =C4=CF=C2=C1=D7=C9=CC=C9=D3=D8. =E1 =CB=C1=CB =D0=D2=C1=D7=C9=CC=D8=CE=CF= =D3=C4=C5=CC=C1=D4=D8, =DE=D4=CF=C2=D9 =CF=CE=C9 =C9 =CE=C5 =C4=CF=C2=C1= =D7=CC=D1=CC=C9=D3=D8? --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =F0=D2=CF=CB=CF=D0=D8=C5=D7 =E5=D7=C7=C5= =CE=C9=CA