Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-20-2007, 06:37 PM   #1
LQ Newbie
Registered: Dec 2007
Posts: 11

Rep: Reputation: 0
Routing between host and vmware host-only network


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


Old 12-22-2007, 06:52 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
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


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

Last edited by acid_kewpie; 12-22-2007 at 06:58 AM.
Old 12-27-2007, 08:21 PM   #3
LQ Newbie
Registered: Dec 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the hint. It got me a lot further. I have a follow up question and i posted it as a new thread.

Last edited by astbis; 12-27-2007 at 08:21 PM. Reason: Typo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
network between the host and guest in VMWare gongcon Linux - Networking 1 03-08-2005 09:25 PM
Multihomed host routing problem.. srns Linux - Networking 3 10-15-2004 03:26 PM
Suse 9.1 as guest OS under vmware 4.5 (XP host): Network problems wmauss Linux - Networking 5 06-20-2004 08:54 AM
No network on Mandrake 9.2 installed has guest on vmware ( host is gentoo ) ikaro Linux - General 1 02-26-2004 06:18 AM
Red Hat 9.0 (Host)and Vmware 4.0 problems with network suro Linux - Software 1 08-14-2003 02:50 PM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration