Interface as a default gateway
Tom H
tomh0665 at gmail.com
Sat Mar 14 15:06:35 UTC 2015
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150314/400f61ef/attachment.html>
More information about the ubuntu-users
mailing list