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 12-13-2012, 07:56 AM   #1
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Rep: Reputation: 0
Exclamation 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?



Quote:
My host computer (windows) is on 172.22.0.48
Fedora machine which is on vmware on the host computer has ip 172.22.0.45

What I want to do is change the Fedora ip to 172.22.20.45 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.
Quote:
I am in bridged networking in Vmware
 
Old 12-13-2012, 01:05 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,773

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
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.
 
Old 12-13-2012, 11:51 PM   #3
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Original Poster
Rep: Reputation: 0
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.
https://www.dropbox.com/s/wehjrje4wovytw4/Network.jpg
 
Old 12-14-2012, 06:59 AM   #4
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Original Poster
Rep: Reputation: 0
anyone
 
Old 12-14-2012, 09:12 AM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,773

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
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?

Last edited by smallpond; 12-14-2012 at 09:16 AM.
 
Old 12-14-2012, 11:17 AM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 12,087

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
I would have just used nat connection. VM's have a virtual router to fix this sort of deal.
 
Old 12-14-2012, 02:59 PM   #7
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,773

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
I'm assuming it is NAT. 172.16/12 are non-routable.
 
Old 12-17-2012, 03:31 PM   #8
jefro
Guru
 
Registered: Mar 2008
Posts: 12,087

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
I may not fully understand the issue.
 
  


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
change of subnet in vmware abhinav4 Linux - Newbie 2 12-13-2012 11:52 PM
Cannot ping to my machine from another subnet Basel Linux - Networking 5 04-26-2010 03:26 PM
vmware virtual machine slow in vmware client, faster viewer available? purplesocrates Linux - General 1 06-17-2008 11:40 AM
two nics on one subnet on one machine mauricem Linux - Networking 2 04-27-2007 07:28 AM
VMware private subnet connection and mysql access jamespic Linux - Networking 0 02-08-2006 08:13 AM


All times are GMT -5. The time now is 06:39 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration