-   Linux - Networking (
-   -   Need Vmware machine in different subnet (

abhinav4 12-13-2012 06:56 AM

Need Vmware machine in different subnet
Hello Everyone!
I have a local computer (windows) with internet connection. I have installed vmware and installed fedore on it.
Now I want my fedora system in another subnet. how to do that while staying connected with internet?
What changes need to be done in vmware settings and in linux system and how?


My host computer (windows) is on
Fedora machine which is on vmware on the host computer has ip

What I want to do is change the Fedora ip to and stay connected with internet. How to do that
I have a rough idea that i have to create route or something, or maybe i need to create an interface too
please guide if someone knows this.

I am in bridged networking in Vmware

smallpond 12-13-2012 12:05 PM

In Fedora just set the ethernet parameters you want in /etc/sysconfig/network-scripts/ifcfg-eth0. If you're using network manager, you can do this with the GUI. There's no routing on Linux because it just has one port.

Then set up bridged networking in vmware to assign the new address to your guest using VM Control Panel. This should set up the Windows NIC to accept packets for either IP on its port. The vmware bridge will route the Windows IP packets to Windows and the Linux IP packets to its virtual network port.

Test by pinging from each internal interface and an external machine on each subnet. Note that an external machine on the LAN will only be able to ping one of the two unless it has the extra routing information for the other subnet.

abhinav4 12-13-2012 10:51 PM

smallpond thank you for the reply, but i am unable to understand that.
I tried making a diagram of what I want to achieve. Please have a look and suggest.

abhinav4 12-14-2012 05:59 AM


smallpond 12-14-2012 08:12 AM

Your bridge will have 5 ports on it. The Windows machine and the 4 guests.

The firewall will need to accept packets from both subnets, so maybe just make its port /16.

What part is not clear?

jefro 12-14-2012 10:17 AM

I would have just used nat connection. VM's have a virtual router to fix this sort of deal.

smallpond 12-14-2012 01:59 PM

I'm assuming it is NAT. 172.16/12 are non-routable.

jefro 12-17-2012 02:31 PM

I may not fully understand the issue. :)

All times are GMT -5. The time now is 07:11 PM.