From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4526638C.2060109@stc.donpac.ru> Date: Fri, 06 Oct 2006 18:09:16 +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: ALT Linux sysadmin discuss References: <451BE4FD.6020203@stc.donpac.ru> <20060928155045.GB24803@lks.home> In-Reply-To: <20060928155045.GB24803@lks.home> Content-Type: text/plain; charset=KOI8-R; format=flowed X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Fri Oct 6 18:05:47 2006 X-DSPAM-Confidence: 0.9899 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 105,452662bb259081788284719 X-DSPAM-Factors: 27, Received*Postfix+with, 0.01000, σ, 0.01000, To*ALT+Linux, 0.01000, Content-Type*text+plain, 0.01000, User-Agent*ru-RU+rv, 0.01000, Received*ESMTP, 0.01000, Content-Transfer-Encoding*8bit, 0.01000, Received*for+sysadmins, 0.01000, User-Agent*X11+U, 0.01000, Subject*Sysadmins, 0.01000, To*sysadmins+lists.altlinux.org, 0.01000, ήΤΟ, 0.01000, ήΤΟ, 0.01000, User-Agent*U, 0.01000, εΧΗΕΞΙΚ, 0.01000, Content-Type*plain, 0.01000, References*stc.donpac.ru, 0.01000, Received*lists.altlinux.org, 0.01000, To*Linux+sysadmin, 0.01000, User-Agent*1.7.2, 0.01000, Content-Type*plain+charset, 0.01000, From*Prokopiev, 0.01000, χ, 0.01000, χ, 0.01000, Received*by+ats-manager.stc.donpac.ru, 0.01000, Received*with, 0.01000, From*Eugene+Prokopiev, 0.01000 Content-Transfer-Encoding: quoted-printable Subject: Re: [Sysadmins] =?koi8-r?b?8NLPwtLP0yDGydrJ3sXTy8/HzyBldGgwINfO1dTS?= =?koi8-r?b?2CBWRQ==?= 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: Fri, 06 Oct 2006 14:05:48 -0000 Archived-At: List-Archive: > =C1 =D7=D9 =D0=D2=CF=C2=CF=D7=C1=CC=C9 =D0=CF=C8=CF=C4=C9=D4=D8 =D0=CF = wiki.openvz.org? :) =D0=D2=CF=DE=C5=CC http://wiki.openvz.org/Virtual_Ethernet_device =C9=20 http://www.freesource.info/wiki/AltLinux/Dokumentacija/OpenVZ =F0=D9=D4=C1=C0=D3=D8 =D3=C4=C5=CC=C1=D4=D8 ... =F7=CF=D4 =D5=D3=D4=D2=CF=CA=D3=D4=D7=CF =CE=C1 HN, =CB=CF=D4=CF=D2=CF=C5= =D4=D2=C5=C2=D5=C5=D4=D3=D1 =D0=D2=CF=C2=D2=CF=D3=C9=D4=D8 =D7 VE: [root@m0 ~]# ip a show dev eth2 10: eth2: mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:13:46:e7:d2:1d brd ff:ff:ff:ff:ff:ff inet6 fe80::213:46ff:fee7:d21d/64 scope link valid_lft forever preferred_lft forever =F0=D2=CF=D7=C5=D2=D1=C0, =DE=D4=CF =CF=CE=CF =C4=C5=CA=D3=D4=D7=C9=D4=C5= =CC=D8=CE=CF =D2=C1=C2=CF=D4=C1=C5=D4: [root@m0 ~]# ip addr add 192.168.15.111/24 dev eth2 [root@m0 ~]# ip route add 192.168.15.11 dev eth2 [root@m0 ~]# ping -c 1 192.168.15.11 PING 192.168.15.11 (192.168.15.11) 56(84) bytes of data. 64 bytes from 192.168.15.11: icmp_seq=3D1 ttl=3D64 time=3D2.88 ms --- 192.168.15.11 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev =3D 2.889/2.889/2.889/0.000 ms =F7=CF=DA=D7=D2=C1=DD=C1=C0 =CE=C1=D3=D4=D2=CF=CA=CB=C9 =CF=C2=D2=C1=D4=CE= =CF: [root@m0 ~]# ip route del 192.168.15.11 dev eth2 [root@m0 ~]# ip addr del 192.168.15.111/24 dev eth2 =F3=CF=DA=C4=C1=C0 =D3=CF=CF=D4=D7=C5=D4=D3=D4=D7=D5=C0=DD=C5=C5 =C5=CD=D5= veth-=D5=D3=D4=D2=CF=CA=D3=D4=D7=CF: # vzctl set 101 --veth_add=20 veth0,00:13:46:e7:d2:1d,eth0,00:12:34:56:78:9A --save Processing veth devices Saved parameters for VE 101 =EB=CF=CE=C6=C9=C7=D5=D2=C9=D2=D5=C0 =CF=C2=C1: [root@m0 ~]# ifconfig eth2 0 [root@m0 ~]# ifconfig veth0 0 [root@m0 ~]# echo 1 > /proc/sys/net/ipv4/conf/eth2/proxy_arp [root@m0 ~]# echo 1 > /proc/sys/net/ipv4/conf/veth0/proxy_arp [root@m0 ~]# echo 1 > /proc/sys/net/ipv4/conf/eth2/forwarding [root@m0 ~]# echo 1 > /proc/sys/net/ipv4/conf/veth0/forwarding =F4=C5=D0=C5=D2=D8 =C9=C4=D5 =D7=CE=D5=D4=D2=D8 VE =C9 =CB=CF=CE=C6=C9=C7= =D5=D2=C9=D2=D5=C0 eth0 =D4=C1=CD: [root@m0 ~]# vzctl enter 101 entered into VE 101 [root@localhost /]# ip addr show dev eth0 13: eth0: mtu 1500 qdisc noop link/ether 00:12:34:56:78:9a brd ff:ff:ff:ff:ff:ff [root@localhost /]# ip link set eth0 up [root@localhost /]# ip addr add 192.168.15.111/32 dev eth0 [root@localhost /]# ip route add 192.168.15.11 dev eth0 =E9 =D7=C9=D6=D5, =DE=D4=CF =CE=C9=DE=C5=C7=CF =CE=C5 =D2=C1=C2=CF=D4=C1=C5= =D4: [root@localhost /]# ping 192.168.15.11 PING 192.168.15.11 (192.168.15.11) 56(84) bytes of data. --- 192.168.15.11 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms =FE=D4=CF =D1 =C4=C5=CC=C1=C0 =CE=C5=D0=D2=C1=D7=C9=CC=D8=CE=CF? =F0=D2=C1=D7=C9=CC=D8=CE=CF =CC=C9 =D1 =D7=CF=CF=C2=DD=C5 =D0=CF=CE=C9=CD= =C1=C0 =CC=CF=C7=C9=CB=D5: 1. =F7 HN =D3=CF=DA=C4=C1=D4=D8 veth-=D5=D3=D4=D2=CF=CA=D3=D4=D7=CF, =D3=D7= =D1=DA=C1=D4=D8 =C5=C7=CF =D3 =C6=C9=DA=C9=DE=C5=D3=CB=C9=CD=20 eth-=D5=D3=D4=D2=CF=CA=D3=D4=D7=CF=CD, =C4=CC=D1 =CF=C2=C5=C9=C8 =D7=CB=CC= =C0=DE=C9=D4=D8 proxy_arp =C9 forwarding 2. =F7 VE =C9=CC=C9 =D7 HN =CE=C1=D3=D4=D2=CF=C9=D4=D8 =D7=CE=D5=D4=D2=C5= =CE=CE=C5=C5 eth-=D5=D3=D4=D2=CF=CA=D3=D4=D7=CF =ED=CF=D6=C5=D4 =CE=C1=C4=CF =C4=C5=CC=C1=D4=D8 =C9=CE=C1=DE=C5? --=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