LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-17-2006, 05:23 PM   #1
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Rep: Reputation: 15
VMware network setup


I'm having a little difficulty trying to describe what I think needs to be done. I am trying to set up a virtual server on my computer that emulates my production envrionment to test out different configurations without actually ruining anything. The guest needs to be able to access the internet and the host, the host needs to be able to access the guest. From what I have read, I need to set up the network as bridged. The problem is that I don't have a router. So it seems natural that I should be able to set up some kind of virtual dhcp server on the host system that takes care of that problem for me. This image should explain what I think needs to be done (I hope!):

http://www.catalystek.com/images/netsetup.jpg

Is this right, can this be done? What tools would I want to use?

Edit:

I should mention that the only reason that (I think) I can't use NAT is that I don't want to install x-windows, etc. on the guest machine because space is at a premium on my system. I want to be able to develop on the host and use the guest as my test system, then be able to point my browser to http://guestIP to view the work.

Last edited by jon23d; 10-17-2006 at 05:36 PM.
 
Old 10-17-2006, 06:21 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
you dont need a router for this or rather you dont need anything to do this. go ahead with the installation and you will see that the ips are assigned automatically no issues at all. (be sure to select birdged while adding the machine.)
 
Old 10-17-2006, 06:27 PM   #3
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
When I select bridged the guest machine does not get any IP at all. Sometime back when I installed the vmware-player it added two network devices to my system - vmnet0 and vmnet8 - I cannot seem to use these to assist either. I am trying to get it working on damn small linux before I install fc4. I have just rebooted after changing the network to bridged, ifconfig gives an output with only the only adapter being 'lo'....
 
Old 10-17-2006, 06:45 PM   #4
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
try manually adding it, I have mine detected and have it working without any problems.
 
Old 10-17-2006, 06:54 PM   #5
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
I'm not sure what you mean by manually adding, it; however, I have tried the following:

When I do an ifconfig on the host I get:

eth0 Link encap:Ethernet HWaddr 00:0F:EA:32:9B:C2
inet addr:##.##.###.### Bcast:255.255.255.255 Mask:255.255.248.0
inet6 addr: ###::###:####:####:9bc2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2365963 errors:0 dropped:0 overruns:0 frame:0
TX packets:686464 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1073700879 (1023.9 MiB) TX bytes:64057489 (61.0 MiB)
Interrupt:225

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:350 errors:0 dropped:0 overruns:0 frame:0
TX packets:350 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:37620 (36.7 KiB) TX bytes:37620 (36.7 KiB)

vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
inet addr:172.16.116.1 Bcast:172.16.116.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
inet addr:192.168.208.1 Bcast:192.168.208.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


So, I tried setting up the network manually in the guest using host-only, nat, and bridged modes. I tried setting the ip of the guest to the same IP as the two vmnets, I've also tried changing it to just be on the same subnet as one of the two vmnets. I've tried dhcp. I've done these all in combination, nothing seems to work EXCEPT for setting it to nat - then I am able to browse the web, but I cannot connect from the host to the guest. I'm sure I'm just missing some concept here, but this is rather frustrating!

Thanks for the help, yet again, w3bd3vil.
 
Old 10-17-2006, 08:11 PM   #6
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
use one of the vmnet ip as your gateway addr. one of them should work.
 
Old 10-17-2006, 11:59 PM   #7
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
Okay, so I set vmware to take a bridged IP. It automatically recieves:

eth0 Link encap:Ethernet HWaddr 00:0C:29:45:36:4F
inet addr:192.168.208.128 Bcast:192.168.208.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5099 errors:0 dropped:0 overruns:0 frame:0
TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txquelen:1000
RX byes:368830 (360.1 KiB) TX bytes:20514 (20.0 KiB)
Interrupt:10 Base address:0x1080

No luck here - I can get out of, but not in to the guest, so as per your instructions:

I change the gateway to: 192.168.208.1 && I also try 172.16.116.1 -- still no luck. When I do this I cannot get out or in - in any fashion whatsoever.. I know this is an exercise in patience, but thanks for trying
 
Old 10-18-2006, 06:47 AM   #8
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
so atleast your guest gets an ip with bridged auto.
now the only problem I can think of is that you havent any proper routing table to access your vm machine. although I am not sure, but you could try adding a route manually.
 
Old 10-18-2006, 11:00 AM   #9
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
I've discovered that setting my network to use custom device vmnet8 also allows me out, but not in. The relevant ouput of the host's route is:

192.168.208.0 * 255.255.255.0 U 0 0 0 vmnet8

I've tried adding an interace for 192.168.208.128 with:

route add 192.168.208.128 dev vmnet8

No luck there, so I removed it and tried adding it with all manners of gateways, etc. I'm pretty sure you've put me on the right track, but there still seems to be something I'm missing. When I uninstalled the vmware player way back when, it seems to have left these vmnets on my system. The new install of vmware workstation seems to be utilizing them. Do you think this could be my issue?
 
Old 10-18-2006, 12:36 PM   #10
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
not sure though. I just remembered this, are you running a firewall on the host. can you ping the guest machine?
 
Old 10-18-2006, 12:40 PM   #11
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
I've tried adding the guest to the firewall, no luck. Disabling the firewall does no good either. On the guest there is no firewall. I am unable to contact the guest machine in any way, including a ping. I think I'm just going to purchase a support contract with the vmware folks, for $40 they'll give me a year of phone support. I can't think of any other options at this point and that's probably worth the cost.
 
  


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
vmware setup... kurrupt Linux - Software 3 10-16-2004 07:46 PM
Linux 9 setup in VMWARE pjw23 Linux - Software 18 09-24-2004 02:58 AM
VMware setup problems... Scrag Linux - Software 4 05-15-2004 04:32 PM
How to setup vmware with no NIC? growlin_stan Linux - Networking 2 11-27-2002 07:17 PM
Dedicated firewall setup... in VMWare? Thymox Linux - Software 0 08-06-2002 06:24 PM

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

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