Interface as a default gateway

Amer amer7777 at hotmail.com
Sat Mar 14 14:01:54 UTC 2015


Dear Dowdell

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

Best regards,
Amer
‏Dick Dowdell ‏<dick.dowdell at gmail.com>:‬

> Engineer Amer,
> 
> Would you explain your objective in more detail, I don't understand what you're trying to accomplish.
> 
>> On Saturday, March 14, 2015, Amer <amer7777 at hotmail.com> wrote:
>> Hello,
>> 
>> I need to make the Ethernet interface as a default gateway not the IP of the router. How?
>> 
>> Best regards,
>> Amer 
>> 
>>>>>> Engineer Amer,
>>>> 
>>>> Glad to help!  Good luck.
>>>> 
>>>> Regards,
>>>> Dick Dowdell
>>>> Phone: 508-528-4018  Mobile: 508-498-7919
>>>> 
>>>>> On Fri, Mar 13, 2015 at 3:00 PM, Amer <amer7777 at hotmail.com> wrote:
>>>>> Thank you
>>>>> It is OK now
>>>>> I connected the VMs to net0 and I gave all of them the same subnet IP. Then, every thing is OK.
>>>>> 
>>>>> Best regards,
>>>>> Amer
>>>>> 
>>>>> ‏‫‏Amer ‏<amer7777 at hotmail.com>:‬
>>>>> 
>>>>>> Hello,
>>>>>> 
>>>>>> Dear all
>>>>>> 
>>>>>> I tried with host-only and the two VMS in the same subnet 192.168.56.x
>>>>>> However, VM1 can ping the two vboxnet0 and 1, and VM2 can not,
>>>>>> When I changed the IPs and restart the two VMs, reverse happen, VM2 can ping but VM1 can't.
>>>>>> Although, in both scenarios no ping between the two VMs.
>>>>>> 
>>>>>> Best regards,
>>>>>> Amer
>>>>>> .com>:‬
>>>>>> 
>>>>>>> Engineer Amer,
>>>>>>>   
>>>>>>> If I understood your requirement, you need to set up two virtual machines within VirtualBox running on a Ubuntu host.  These two VMs must be visible to each other (and probably visible to the host machine). If that is correct, the VirtualBox solution is very simple:
>>>>>>> Use the Network settings to enable, on each of the VMs, two network adapters, a NAT adapter and a Host-only adapter...
>>>>>>> Log on to each VM and use the ifconfig command to view the network interface assignments.  Typically, the Host-only assignment will be eth1 and have an IP address of 192.168.56.nnn.  Each VM will be visible at that address from the host and the other VM.
>>>>>>> This has always worked for me.
>>>>>>> 
>>>>>>> If you need to reach either of the VMs from outside the host, you can use the VirtualBox Network Manager to set up port forwarding to the appropriate VM and port.  I hope this helps.  I attached images of the Network dialog boxes to an earlier posting, but they're being held for monitor approval.
>>>>>>> 
>>>>>>> Regards,
>>>>>>> Dick Dowdell
>>>>>>> Phone: 508-528-4018  Mobile: 508-498-7919
>>>>>>> -- 
>>>>>>> ubuntu-users mailing list
>>>>>>> ubuntu-users at lists.ubuntu.com
>>>>>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>>>>> -- 
>>>>>> ubuntu-users mailing list
>>>>>> ubuntu-users at lists.ubuntu.com
>>>>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>>>> 
>>>>> --
>>>>> ubuntu-users mailing list
>>>>> ubuntu-users at lists.ubuntu.com
>>>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>>> 
>>>> -- 
>>>> ubuntu-users mailing list
>>>> ubuntu-users at lists.ubuntu.com
>>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>> -- 
>>> ubuntu-users mailing list
>>> ubuntu-users at lists.ubuntu.com
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> 
> 
> -- 
> Regards,
> Dick Dowdell
> Phone: 508-528-4018  Mobile: 508-498-7919
> 
> -- 
> 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/30c0724a/attachment.html>


More information about the ubuntu-users mailing list