Networking? (NAT) [message #23280] |
Thu, 15 November 2007 08:22  |
RobinVossen
Messages: 36 Registered: November 2007
|
Member |
|
|
Well, I tryed everything.
But I cant get networking of the OpenVZ nodes up.
They have a IP.
I think I did it correct with the networking.
I did do this:
iptables -t nat -A POSTROUTING -s 192.168.#NodeNumber#.0 -o eth0 -j SNAT --to 192.168.42.112
192.168.42.112 is the IP I got within this network.
So, what do I do wrong?
Cheers,
Robin
oh and the Nodes IP is:
192.168.#Node Group Number#.#Node Number in Group#
[Updated on: Thu, 15 November 2007 08:26] Report message to a moderator
|
|
|
|
|
|
|
Re: Networking? (NAT) [message #23333 is a reply to message #23331] |
Thu, 15 November 2007 15:06   |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Most probably you just haven't set up a dns server inside a VE.
Try to ping google.com via IP (i.e. ping 64.233.167.99) from inside VE. i think it should work.
if it works, just edit /etc/resolve.conf inside a VE (you can take settings from HN).
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|
Re: Networking? (NAT) [message #23334 is a reply to message #23333] |
Thu, 15 November 2007 15:08   |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Btw, what is the gefault gateway on your Hardware Node? i suspect that it's also 192.168.1.1 (you can check with 'ip r l' command).
In this case it's better to use another IP for the VE.
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|
|
|
|