OpenVZ Forum


Home » General » Support » *SOLVED* Routable IP's
*SOLVED* Routable IP's [message #4688] Fri, 21 July 2006 16:59 Go to next message
mavenman is currently offline  mavenman
Messages: 10
Registered: April 2006
Junior Member
From HOST I have added a routable IP by:

$vzctl set VEID --ipadd ###.###.###.### --save

Restarted VE

From inside VE the proper IP is there for venet0:0:
-bash-3.00# ifconfig
<---- snipped lo ---->
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

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

From HOST ifconfig venet0:
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:252 (252.0 b) TX bytes:252 (252.0 b)

Do I need to map the routable IP to eth0 or manually add another venet interface for the routable IP that is set for the VE?

The symptom is I am unable to reach the VE outside of the HOST. I can trace to the box but then it dies without a response from the box. If I map to eth0:1 it pings/traces but does not route the traffic to the VE it is set to.

Thanks for any help on clearing this up.

[Updated on: Sat, 22 July 2006 04:45] by Moderator

Report message to a moderator

Re: Routable IP's [message #4691 is a reply to message #4688] Fri, 21 July 2006 19:36 Go to previous messageGo to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
What template you use?

And, it would be better if you show your ifconfig without ### and route -n after adding ip by vzctl.
Re: Routable IP's [message #4693 is a reply to message #4691] Fri, 21 July 2006 19:52 Go to previous messageGo to next message
mavenman is currently offline  mavenman
Messages: 10
Registered: April 2006
Junior Member
Template - centos-4-i386-minimal

# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
72.18.###.### 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
72.18.###.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 72.18.###.1 0.0.0.0 UG 0 0 0 eth0

This being a very new install, I prefer not publishing my IP

I can confirm that venet0 matched the IP I have in the VEID.conf. If it is needed, then I would prefer PMing when needed.
Re: Routable IP's [message #4694 is a reply to message #4688] Fri, 21 July 2006 20:02 Go to previous messageGo to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
cat /etc/sysctl.conf | grep net ?
iptables -nL ?
Re: Routable IP's [message #4695 is a reply to message #4694] Fri, 21 July 2006 20:10 Go to previous messageGo to next message
mavenman is currently offline  mavenman
Messages: 10
Registered: April 2006
Junior Member
# cat /etc/sysctl.conf | grep net
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0

# 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
Re: Routable IP's [message #4697 is a reply to message #4695] Fri, 21 July 2006 20:16 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Must be so:
net.ipv4.ip_forward = 1
Re: Routable IP's [message #4699 is a reply to message #4695] Fri, 21 July 2006 20:27 Go to previous messageGo to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
http://wiki.openvz.org/Quick_installation#sysctl

And whats all Smile
Re: Routable IP's [message #4700 is a reply to message #4697] Fri, 21 July 2006 20:31 Go to previous message
mavenman is currently offline  mavenman
Messages: 10
Registered: April 2006
Junior Member
DUH!

Cleared stated in the documentation.

Thanks ALL
Previous Topic: Where is yum?
Next Topic: More vzyum problems
Goto Forum:
  


Current Time: Fri Jul 19 05:07:08 GMT 2024

Total time taken to generate the page: 0.02505 seconds