Interface as a default gateway

Dick Dowdell dick.dowdell at gmail.com
Sat Mar 14 22:11:44 UTC 2015


Amer,

I'm not sure I understand what you are trying to do or what your end
objective is.  It's hard to suggest solutions without understanding your
requirements.

You might try reading the VirtualBox User Manual
<https://www.virtualbox.org/manual/UserManual.html>.  Chapter 6
<https://www.virtualbox.org/manual/ch06.html> goes into great detail about
setting up virtual networks.

Regards,
Dick Dowdell
Phone: 508-528-4018  Mobile: 508-498-7919

On Sat, Mar 14, 2015 at 11:06 AM, Tom H <tomh0665 at gmail.com> wrote:

> On Sat, Mar 14, 2015 at 10:01 AM, Amer <amer7777 at hotmail.com> wrote:
> >
> > in interface configuration after the gateway statement I should put
> > the IP address of the gateway, I want to put the interface name,
> > like eth0, instead.
> >
> > Or I want to do it by ip route statement something like:
> > Ip route add 0.0.0.0 via eth0
>
> Please bottom-post.
>
> 1) It would have to be "ip r add 0.0.0.0/0 via ip_add_of_eth0 dev eth0".
>
> 2) IIRC you've used VB's bridged network mode. Again IIRC because I
> haven't used VB in a while, that means that if your host has, eg, a
> 192.168.1.x address, your VM'll have a 192.168.1.y address. So the gateway
> has to be the same as the host's and not the host's ip address.
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150314/e0efdf50/attachment.html>


More information about the ubuntu-users mailing list