LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 0
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
 
Old 12-22-2007, 06:52 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.

Last edited by acid_kewpie; 12-22-2007 at 06:58 AM.
 
Old 12-27-2007, 08:21 PM   #3
astbis
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.

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

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:29 PM.

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