problem network, cannot find solution?????? [message #40989] |
Mon, 01 November 2010 11:41  |
Beter Green
Messages: 3 Registered: November 2010 Location: HCMC
|
Junior Member |
|
|
hi all,
i am a new bie in openVZ.
i have install as web guide, step by step. but when i assign IP to VPS, VPS cannot connect to net work. i have read many topic fron this forum and the net, but i cannot get it work.
please help me to have a look.
---------
first i add ip to VPS with command :
vzctl set 200 --ipadd x.x.x.x --save
vzctl restart 200
----------------
second:
i run route command in VPS:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.2.0 * 255.255.255.0 U 0 0 0 venet0
169.254.0.0 * 255.255.0.0 U 0 0 0 venet0
default 192.0.2.1 0.0.0.0 UG 0 0 0 venet0
in VPS i can ping server host:
[root@appl /]# ping a.b.c.d
PING a.b.c.d (a.b.c.d) 56(84) bytes of data.
64 bytes from a.b.c.d: icmp_seq=1 ttl=64 time=0.143 ms
64 bytes from a.b.c.d: icmp_seq=2 ttl=64 time=0.072 ms
---------------------
in server host:
i ping x.x.x.x(ip of VPS)
PING x.x.x.x (x.x.x.x) 56(84) bytes of data.
64 bytes from x.x.x.x: icmp_seq=1 ttl=64 time=0.090 ms
64 bytes from x.x.x.x: icmp_seq=2 ttl=64 time=0.070 ms
which route in host server:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
x.x.x.x * 255.255.255.255 UH 0 0 0 venet0
tomcat10.zartan * 255.255.255.255 UH 0 0 0 venet0
64.34.171.160 * 255.255.255.224 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 64.34.171.161 0.0.0.0 UG 0 0 0 eth0
i have configure host as:
vi /etc/sysctl.conf
# On Hardware Node we generally need
# packet forwarding enabled and proxy arp disabled
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0
# Enables source route verification
net.ipv4.conf.all.rp_filter = 1
# Enables the magic-sysrq key
kernel.sysrq = 1
# We do not want all our interfaces to send redirects
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
and :SELINUX=disabled
please suggest to get it work ?
thanks so much .
|
|
|
|