[Sysadmins] ovz : сеть между VE

Eugene Prokopiev =?iso-8859-1?q?prokopiev_=CE=C1_stc=2Edonpac=2Eru?=
Вт Окт 10 21:12:23 MSD 2006


> 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 видели друг друга напрямую?

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



Подробная информация о списке рассылки Sysadmins