LinuxQuestions.org
Visit Jeremy's Blog.
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 10-27-2014, 11:20 AM   #1
TenaciousRock
LQ Newbie
 
Registered: Sep 2013
Posts: 10

Rep: Reputation: Disabled
Allowing VM network access via NAT rules


Hello all,

Looking for some assistance with getting a VM network access, primarily for hitting the box from my local machine. I didn't set up this little lab environment so my knowledge of it isn't quite up to par, but here is the scenario:

I have a VM guest running CentOS 6.5. It was a CLI install that I added GNOME too using startx. I have since edited /etc/inittab so that it boots to the GUI. I installed a VNCserver (I think it works), and got a VNC client to my local machine. Now the tricky part is that this VM has 1 NIC, and it was running on a private subnet, the usual 192.168... on a Vswitch. However, the larger network configuration has a few more vswitches and one of the connections is to a Firewall. The Firewall and other devices are on a 10. network (what we're calling the management network). Temporarily so I can ssh via Putty I changed the NIC on the guest to be on the management network to get this set up but the goal is to be able to put it back on the 192.168 network and still access it on my local machine which is on the 10. range.

I was told it is possible via adding NAT rules to the CentOS machine but I really have no idea what they would be.

PS interface is eth0 btw
 
Old 10-27-2014, 01:57 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
What VM software are you using? What OS is your host running?
 
  


Reply


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
[SOLVED] Iptables Not allowing access to Apache in my Internal Network KinnowGrower Linux - Networking 5 01-24-2010 11:09 AM
[SOLVED] PoPToP not allowing access to server-side network via VPN connection mike34341 Linux - Networking 2 10-11-2009 10:11 AM
Allowing IPsec through NAT ffkodd Linux - Security 2 10-29-2005 02:53 AM
Iptables rules for allowing rhn_register (up2date)? andy_sco123 Linux - Security 4 05-20-2002 05:30 PM

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

All times are GMT -5. The time now is 02:12 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