ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] ovz : сеть между VE
@ 2006-10-10 15:05 Eugene Prokopiev
  2006-10-10 15:14 ` Slava Dubrovskiy
  2006-10-11 14:17 ` [Sysadmins] ovz : сеть между VE Eugene Prokopiev
  0 siblings, 2 replies; 23+ messages in thread
From: Eugene Prokopiev @ 2006-10-10 15:05 UTC (permalink / raw)
  To: Sysadmins

Здравствуйте!

Требуется создать несколько VE, которые видели бы друг друга (HN <-> VE 
не обязательно). Делаю так:

[root@m1 ~]# vzctl create 101 --ostemplate altlinux-20060928 --config 
vps.basic
Creating VE private area: /var/lib/vz/private/101
Performing postcreate actions
VE private area was created
[root@m1 ~]# vzctl create 102 --ostemplate altlinux-20060928 --config 
vps.basic
Creating VE private area: /var/lib/vz/private/102
Performing postcreate actions
VE private area was created

[root@m1 ~]# vzctl set 101 --ipadd 192.168.47.1 --save
Saved parameters for VE 101
[root@m1 ~]# vzctl set 102 --ipadd 192.168.47.2 --save
Saved parameters for VE 102

[root@m1 ~]# vzctl start 101
Starting VE ...
VE is mounted
Adding IP address(es): 192.168.47.1
Setting CPU units: 1000
VE start in progress...
[root@m1 ~]# vzctl start 102
Starting VE ...
VE is mounted
Adding IP address(es): 192.168.47.2
Setting CPU units: 1000
VE start in progress...

[root@m1 ~]# vzctl exec 101 ping 192.168.47.2
... тут просто висим ...
[root@m1 ~]# vzctl exec 102 ping 192.168.47.1
connect: Network is unreachable

Смотрю, что же там внутри настроено:

root@m1 ~]# vzctl exec 101 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.1/32 scope global venet0:1
[root@m1 ~]# vzctl exec 102 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.2/32 scope global venet0:1
[root@m1 ~]# vzctl exec 101 ip route
192.0.2.0/24 dev venet0  scope host
default via 192.0.2.1 dev venet0
[root@m1 ~]# vzctl exec 102 ip route
192.0.2.0/24 dev venet0  scope host
default via 192.0.2.1 dev venet0

Непорядок, от 192.168.47.2/32 действительно толку мало, а 127.0.0.1/32 
вообще не нужен. Пвытаюсь сделать так:

[root@m1 ~]# vzctl set 101 --ipadd 192.168.47.1/24 --save
Bad parameter for --ipadd: 192.168.47.1/24

Что делаю неправильно?

-- 
С уважением, Прокопьев Евгений



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2006-10-15 14:17 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10 15:05 [Sysadmins] ovz : сеть между VE 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
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

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