top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to add a new gateway to an existing network card to access virtual box?

0 votes
617 views

I have a ubuntu 16.04 running on a remote server, for which I have a fixed address assigned by the provider. On this machine I have a virtual box virtual server running with a static address of 192.168.0.104

How do I add a gateway to access this address. it needs to be accessible only on the remote server. not from the internet.

posted Mar 10, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

In general though you don't need to give it a gateway, you just need to be part of the same subnet.

In general in a running system you can simply do:

ip addr add 192.168.0.1/24 dev

In general you can also simply add addresses to your main internet device, whatever it is.

You don't actually need any "routing" the kernel will know to send packages for a certain IP out a certain device. It doesn't require any gateways; adding yourself to that subnet would automatically set up the required routes.

To make it persistent depends on what network solution you are using, I can't comment on that.

answer Mar 10, 2017 by Deepti Singh
0 votes
  1. NATing should be enabled for interface which is towards internet at server and other interface should acts as gateway 192.168.0.1 towards local machines or VMs.
  2. Remote client if want to access 192.168.0.x which is private network of server then it has to add route in client machine such as
    route add -net 192.168.0.1 default gateway netmask 255.255.0.0 dev

Then ping the 192.168.0.x from client.

answer Mar 16, 2017 by Harshita
Similar Questions
0 votes

I am looking for internals how a host windows machine provides communication to virtual machines created through Oracle VM box ?

+1 vote

I am trying to virtualise a DOS guest on a windows 7 host because the physical box is going to break in short (386, very old). Unfortunately there is a software running using a hardware dongle on parallel port. AFAIK there is no virtual parallel port in vbox, and anyways it probably would not work with a dongle.

So how can I configure vbox to exclusively use the hosts parallel port?

+2 votes

I have python-django installed on ubuntu installed on top of virtual Box. Also I have apache2 installed in the same way. When i visit the page hoisted by Apache2 from my Windows Host machine it worked.
But When i am doing the same for Django pages it's not opening up in Web browser from Host machine.
In the virtual box I am using bridged adapter and Eth0.

Please Help me to sort out this problem

–1 vote

I found a problem at this moment. I need to get full screen mode when run D.O.S. on a Windows XP Guest. I hit "Alt + Enter" and go to full screen but this screen no cover all the window. This happend on both
method conecctions, i say, over RDP or running directly from my Ubuntu Destkop Box.
This full screen looks like a 50% of the windows and centered.

Can i get a really full screen ?

0 votes

Oracle Virtual box is heavy option for me to launch virtual machines. I am looking for a lite weight hypervisor option or any other solutions which make my life easy.

...