From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] ovz : сеть между VE
Date: Tue, 10 Oct 2006 21:12:23 +0400
Message-ID: <452BD477.5040000@stc.donpac.ru> (raw)
In-Reply-To: <452BB8C1.3090300@elan.com.ua>
> vzctl create 101 --ostemplate altlinux-3.0 --config vps.basic
вот так действительно получилось:
[root@m1 ~]# vzctl create 104 --ostemplate altlinux-3.0 --config vps.basic
Creating VE private area: /var/lib/vz/private/104
Performing postcreate actions
VE private area was created
[root@m1 ~]# vzctl create 105 --ostemplate altlinux-3.0 --config vps.basic
Creating VE private area: /var/lib/vz/private/105
Performing postcreate actions
VE private area was created
[root@m1 ~]# vzctl set 104 --ipadd 192.168.47.4 --save
Saved parameters for VE 104
[root@m1 ~]# vzctl set 105 --ipadd 192.168.47.5 --save
Saved parameters for VE 105
[root@m1 ~]# vzctl start 104
Starting VE ...
VE is mounted
Adding IP address(es): 192.168.47.4
Setting CPU units: 1000
VE start in progress...
[root@m1 ~]# vzctl start 105
Starting VE ...
VE is mounted
Adding IP address(es): 192.168.47.5
Setting CPU units: 1000
VE start in progress...
[root@m1 ~]# vzctl exec 104 ping 192.168.47.5
PING 192.168.47.5 (192.168.47.5) 56(84) bytes of data.
From 192.168.200.1: icmp_seq=1 Redirect Host(New nexthop: 192.168.47.5)
64 bytes from 192.168.47.5: icmp_seq=1 ttl=64 time=0.293 ms
From 192.168.200.1: icmp_seq=2 Redirect Host(New nexthop: 192.168.47.5)
64 bytes from 192.168.47.5: icmp_seq=2 ttl=64 time=0.238 ms
From 192.168.200.1: icmp_seq=3 Redirect Host(New nexthop: 192.168.47.5)
64 bytes from 192.168.47.5: icmp_seq=3 ttl=64 time=0.213 ms
[root@m1 ~]# vzctl exec 105 ping 192.168.47.4
PING 192.168.47.4 (192.168.47.4) 56(84) bytes of data.
From 192.168.200.1: icmp_seq=1 Redirect Host(New nexthop: 192.168.47.4)
64 bytes from 192.168.47.4: icmp_seq=1 ttl=64 time=0.306 ms
From 192.168.200.1: icmp_seq=2 Redirect Host(New nexthop: 192.168.47.4)
64 bytes from 192.168.47.4: icmp_seq=2 ttl=64 time=0.238 ms
Но причем тут From 192.168.200.1: icmp_seq=2 Redirect Host(New nexthop:
192.168.47.4)?
[root@m1 ~]# vzctl exec 104 ip address
1: lo: <LOOPBACK,UP> 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: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void
inet 127.0.0.1/32 scope host venet0
inet 192.168.47.4/32 scope global venet0:1
[root@m1 ~]# vzctl exec 104 ip route
192.0.2.0/24 dev venet0 scope host
default via 192.0.2.1 dev venet0
[root@m1 ~]# vzctl exec 105 ip address
1: lo: <LOOPBACK,UP> 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: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void
inet 127.0.0.1/32 scope host venet0
inet 192.168.47.5/32 scope global venet0:1
[root@m1 ~]# vzctl exec 105 ip route
192.0.2.0/24 dev venet0 scope host
default via 192.0.2.1 dev venet0
Никак нельзя, чтобы VE видели друг друга напрямую?
--
С уважением, Прокопьев Евгений
next prev parent reply other threads:[~2006-10-10 17:12 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-10 15:05 Eugene Prokopiev
2006-10-10 15:14 ` Slava Dubrovskiy
2006-10-10 16:40 ` Eugene Prokopiev
2006-10-10 17:04 ` Eugene Prokopiev
2006-10-10 17:12 ` Eugene Prokopiev [this message]
2006-10-10 17:36 ` Eugene Prokopiev
2006-10-11 6:09 ` Slava Dubrovskiy
2006-10-11 7:03 ` Eugene Prokopiev
2006-10-11 7:15 ` Slava Dubrovskiy
2006-10-11 7:33 ` Eugene Prokopiev
2006-10-11 7:34 ` Slava Dubrovskiy
2006-10-11 7:40 ` Alexey I. Froloff
2006-10-11 7:57 ` Slava Dubrovskiy
2006-10-11 8:08 ` Alexey I. Froloff
2006-10-11 8:28 ` Slava Dubrovskiy
2006-10-15 14:17 ` [Sysadmins] altlinux-3.0 и странная сеть Michael Shigorin
2006-10-11 14:17 ` [Sysadmins] ovz : сеть между VE Eugene Prokopiev
2006-10-11 14:26 ` Eugene Prokopiev
2006-10-11 14:33 ` Slava Dubrovskiy
2006-10-11 16:17 ` Eugene Prokopiev
2006-10-11 17:21 ` Eugene Prokopiev
2006-10-11 18:39 ` Konstantin A. Lepikhov
2006-10-11 14:36 ` Eugene Prokopiev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=452BD477.5040000@stc.donpac.ru \
--to=prokopiev@stc.donpac.ru \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git