LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Routing between host and vmware host-only network (https://www.linuxquestions.org/questions/linux-networking-3/routing-between-host-and-vmware-host-only-network-608234/)

astbis 12-20-2007 06:37 PM

Routing between host and vmware host-only network
 
Hi

I'm trying to get a more complex network to work on my new hosted root server.

The setup:
  • Host machine directly connected to the internet
  • Host runs opensuse 10.3 and vmware server 1.0.3
  • Two virtual machines (server1 and server2)
  • Virtual machines are set up as a host-only network
  • Bridged networking isn't possible. My assigned ip subnet is routed directly to the host's ip
  • I've configured server1 and server2 IP's on the host
  • Host and vServers are connected (pingable)

I've tried to find a how to for setting up routing but couldn't find any suitable solution.

How can i get both virtual machines connected to the internet as if they were normal server's.

ExtServer1ip -> IntServerver1ip
ExtServer2ip -> IntServerver2ip


Regards,

astbis

acid_kewpie 12-22-2007 06:52 AM

should be a case of just using NAT on the host...

[root@host-server]# iptables -t nat -A PREROUTING -d extserver1ip -j DNAT --to-destination intserver1ip

etc...

you may also want an SNAT equivalent for data being initiated by the server rather than just incoming connections.

astbis 12-27-2007 08:21 PM

Thanks for the hint. It got me a lot further. I have a follow up question and i posted it as a new thread.

http://www.linuxquestions.org/questi...ternal-609518/


All times are GMT -5. The time now is 03:10 PM.