OpenVZ Forum


Home » General » Support » problem network, cannot find solution??????
problem network, cannot find solution?????? [message #40989] Mon, 01 November 2010 11:41 Go to next message
Beter Green is currently offline  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 .





Re: problem network, cannot find solution?????? [message #40993 is a reply to message #40989] Mon, 01 November 2010 18:53 Go to previous message
Beter Green is currently offline  Beter Green
Messages: 3
Registered: November 2010
Location: HCMC
Junior Member
sorry about this topic.
i have fix it. just because my ip is inactive.
after i active ip, it work ok.
Very Happy
Razz
Previous Topic: Error install kernel 2.6.32
Next Topic: Suse or Open Suse?
Goto Forum:
  


Current Time: Tue Jul 22 07:19:41 GMT 2025

Total time taken to generate the page: 0.19973 seconds