OpenVZ Forum


Home » International » Russian » Настройка OpenVZ в HyperVM (как настроить IP)
Настройка OpenVZ в HyperVM [message #44562] Wed, 14 December 2011 13:51 Go to previous message
alex_fear is currently offline  alex_fear
Messages: 3
Registered: December 2011
Junior Member
Добрый день! Есть такой вопрос.
Установил hyperVm. Назначил ip 192.168.0.101 виртуальной машине на openVZ.
В нутри физической машины идет пинг на вируальную машину и наоборот. А вот внутри сити нет пинга и виртуальная машина не выходит в интернет!
В чем проблем?

ifconfig внутри VPS

[root@test1 /]# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:504 (504.0 b)  TX bytes:504 (504.0 b)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1300 (1.2 KiB)  TX bytes:3158 (3.0 KiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.0.101  P-t-P:192.168.0.101  Bcast:192.168.0.101  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1



ifconfig внутри физического сервера

[root@localhost ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:19:B9:F1:4D:3B
          inet addr:159.224.253.187  Bcast:159.224.253.255  Mask:255.255.255.0
          inet6 addr: fe80::219:b9ff:fef1:4d3b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:709463 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48900 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:74496624 (71.0 MiB)  TX bytes:15240578 (14.5 MiB)
          Interrupt:169 Memory:f8000000-f8012800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:94662 errors:0 dropped:0 overruns:0 frame:0
          TX packets:94662 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:25455776 (24.2 MiB)  TX bytes:25455776 (24.2 MiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet6 addr: fe80::1/128 Scope:Link
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:151 errors:0 dropped:0 overruns:0 frame:0
          TX packets:62 errors:0 dropped:14 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:26232 (25.6 KiB)  TX bytes:7245 (7.0 KiB)



route в нутри VPS
[root@test1 /]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
169.254.0.0     *               255.255.0.0     U     0      0        0 venet0
default         *               0.0.0.0         U     0      0        0 venet0



route в нутри физического серврера
[root@localhost ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.103   *               255.255.255.255 UH    0      0        0 venet0
192.168.0.101   *               255.255.255.255 UH    0      0        0 venet0
159.224.253.0   *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         254.253.224.159 0.0.0.0         UG    0      0        0 eth0



iptables -nL на VPS

[root@test1 /]# iptables -nL
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination



iptables -nL на физической
[root@localhost ~]# iptables -nL
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
           all  --  192.168.0.101        0.0.0.0/0
           all  --  0.0.0.0/0            192.168.0.101

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination



Помогите разобратся!!
 
Read Message
Read Message
Previous Topic: 2.6.32-042stab039.3 + Centos 6 x64 + iptables
Next Topic: OpenVZ fault tolerance
Goto Forum:
  


Current Time: Mon Aug 26 07:56:49 GMT 2024

Total time taken to generate the page: 0.03311 seconds