Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!):
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.
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.)
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'....
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!
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
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.