Networking (not newbie)
Posted: 6. Feb 2009, 04:27
Hi everyone,
Any help on this topic would be GREATLY appreciated. Here is my case.
I am creating a small network for a school project. I can NOT hook up any routers to my Uni's ethernet connections because if they discover it, with or without DHCP, they will disable my port. Obviously, this is counter productive... So I figured I would try to just keep it strictly within VirtualBox.
I am trying to network all guests of VirtualBox together. I have tried many many things. Here is a brief overview:
NAT:
For whatever reason, I do not know if this is the case or not BUT it seems as if VirtualBox sets up a new NAT network environment for every VirtualBox guest. For instance:
Server1:
- Network Configuration: NAT
- IP Assigned via "DHCP": 10.0.2.15
- Can ping out to google.com from Server1
- All gateways, DNS, and DHCP set correctly
Server2:
- Network Configuration: NAT
- IP assigned via "DHCP": 10.0.2.15
- Can ping out to google.com from Server2
- All gateways, DNS, and DHCP set correctly
Now, what I do not get is that every Guest keeps getting the same IP even though it says its assigned via "DHCP". I tried to set Server2's default gateway, IP, and DNS but I still can not connect the Virtual Machines together through the NAT setting. No response pinging either server.
Host Interfacing (bridge connections):
I can use host interfacing BUT I run into a lot of problems with my Uni's connection for what I am trying to do (setup DNS servers, etc).
I have also tried this: http://www.virtualbox.org/wiki/Advanced ... king_Linux
But it yields the same results as above with setting the network to NAT. I setup all the guests, set the routes, set all the host tap devices but...when I try to ping another guest, no response is received and its deemed unreachable.
My main question, how can I connect all the guests together WITHOUT using host interfacing. I want my own local network of guests that I can connect together. Essentially I want to access guests from within other guests. So I can setup 4 servers and enable SSH/remote administration and access any guest from any guest.
Any help on this topic would be GREATLY appreciated. Here is my case.
I am creating a small network for a school project. I can NOT hook up any routers to my Uni's ethernet connections because if they discover it, with or without DHCP, they will disable my port. Obviously, this is counter productive... So I figured I would try to just keep it strictly within VirtualBox.
I am trying to network all guests of VirtualBox together. I have tried many many things. Here is a brief overview:
NAT:
For whatever reason, I do not know if this is the case or not BUT it seems as if VirtualBox sets up a new NAT network environment for every VirtualBox guest. For instance:
Server1:
- Network Configuration: NAT
- IP Assigned via "DHCP": 10.0.2.15
- Can ping out to google.com from Server1
- All gateways, DNS, and DHCP set correctly
Server2:
- Network Configuration: NAT
- IP assigned via "DHCP": 10.0.2.15
- Can ping out to google.com from Server2
- All gateways, DNS, and DHCP set correctly
Now, what I do not get is that every Guest keeps getting the same IP even though it says its assigned via "DHCP". I tried to set Server2's default gateway, IP, and DNS but I still can not connect the Virtual Machines together through the NAT setting. No response pinging either server.
Host Interfacing (bridge connections):
I can use host interfacing BUT I run into a lot of problems with my Uni's connection for what I am trying to do (setup DNS servers, etc).
I have also tried this: http://www.virtualbox.org/wiki/Advanced ... king_Linux
But it yields the same results as above with setting the network to NAT. I setup all the guests, set the routes, set all the host tap devices but...when I try to ping another guest, no response is received and its deemed unreachable.
My main question, how can I connect all the guests together WITHOUT using host interfacing. I want my own local network of guests that I can connect together. Essentially I want to access guests from within other guests. So I can setup 4 servers and enable SSH/remote administration and access any guest from any guest.