Home » International » Russian » Сеть между VE
Re: Сеть между VE [message #7306 is a reply to message #7301] |
Tue, 10 October 2006 17:40 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
enpx
Messages: 50 Registered: October 2006
|
Member |
|
|
А сейчас получается вот что:
[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)? Да, это один из адресов HN, ну и что?
[root@m1 ~]# ip address
2: 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
4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0c:29:e0:24:34 brd ff:ff:ff:ff:ff:ff
inet 192.168.46.201/24 brd 192.168.46.255 scope global eth0
inet6 fe80::20c:29ff:fee0:2434/64 scope link
valid_lft forever preferred_lft forever
8: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0c:29:e0:24:48 brd ff:ff:ff:ff:ff:ff
inet 192.168.200.1/24 brd 192.168.200.255 scope global eth2
inet6 fe80::20c:29ff:fee0:2448/64 scope link
valid_lft forever preferred_lft forever
10: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
13: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void
6: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 00:0c:29:e0:24:3e brd ff:ff:ff:ff:ff:ff
[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 видели друг друга напрямую?
|
|
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Сеть между VE
By: enpx on Tue, 10 October 2006 15:04
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
By: dim on Tue, 10 October 2006 15:20
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
By: enpx on Tue, 10 October 2006 16:27
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
By: enpx on Tue, 10 October 2006 17:40
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
By: dev on Wed, 11 October 2006 04:33
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
By: enpx on Wed, 11 October 2006 06:54
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
By: enpx on Wed, 11 October 2006 14:11
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
By: enpx on Wed, 11 October 2006 14:17
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
By: enpx on Wed, 11 October 2006 16:25
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
By: enpx on Tue, 24 October 2006 14:12
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
By: enpx on Wed, 25 October 2006 07:40
|
![Read Message Read Message](/theme/ovz3/images/read.png) |
|
Re: Сеть между VE
|
Goto Forum:
Current Time: Sat Aug 03 13:09:42 GMT 2024
Total time taken to generate the page: 0.02659 seconds
|