LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Not able to use MTR Command from Virtual Box, is this a routing issue? (https://www.linuxquestions.org/questions/linux-networking-3/not-able-to-use-mtr-command-from-virtual-box-is-this-a-routing-issue-4175461841/)

JockVSJock 05-13-2013 07:57 PM

Not able to use MTR Command from Virtual Box, is this a routing issue?
 
Greetings.

Have discovered the MTR command from this website.

http://www.commandlinefu.com/command...te-combination

This is a combination of ping and traceroute.

I've fired up Ubuntu 12.04 LTS and tried the following command

Code:

cmmiller1973@ubuntu64vm:~$ mtr --report google.com
HOST: ubuntu64vm                  Loss%  Snt  Last  Avg  Best  Wrst StDev
  1.|-- 10.0.2.2                  0.0%    10    0.8  0.8  0.7  0.9  0.1
  2.|-- ???                      100.0    10    0.0  0.0  0.0  0.0  0.0
cmmiller1973@ubuntu64vm:~$ ^C

For some reason, it doesn't seem to be getting past the address of 10.0.2.2.

I check the network settings and realize that this is a default route.

I confirm this with the following command

Code:


cmmiller1973@ubuntu64vm:~$ route -v
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
default        10.0.2.2        0.0.0.0        UG    0      0        0 eth0
10.0.2.0        *              255.255.255.0  U    1      0        0 eth0
link-local      *              255.255.0.0    U    1000  0        0 eth0


I'm not sure what move to make next here to get the MTR Command to work. Do I need to add another route?

Keep in mind I'm running this from Virtual Box and I'm not up to speed yet on the virtualization part of the house.

thanks

Kustom42 05-13-2013 08:49 PM

What kind of network did you setup your virutal network as? You probably want a bridged or NAT connection but not sure what your needs are.

Start here: http://www.virtualbox.org/manual/ch0...etworkingmodes

JockVSJock 05-13-2013 09:20 PM

I have NAT enabled and I'm physically connected, using CAT 5 to a cable modem, from the host machine.

So, I don't know if this is a networking question or a Virtual Box question.

EDIT: Wanted to add, that I can surf the Internet ok from the virtual machine and get updates via apt-get.

nyshtyak 05-14-2013 07:30 AM

Virtualbox (unlike e.g. KVM) uses own networking stack realization so some features work not very well. See this page from their documentation: http://www.virtualbox.org/manual/ch0...at-limitations

MTR uses icmp or udp broadcasts.

JockVSJock 05-14-2013 08:03 AM

Quote:

Originally Posted by nyshtyak (Post 4950835)
Virtualbox (unlike e.g. KVM) uses own networking stack realization so some features work not very well. See this page from their documentation: http://www.virtualbox.org/manual/ch0...at-limitations

MTR uses icmp or udp broadcasts.

So this isn't a routing issues, just that Virtual Box networking needed to be changed from NAT to Bridged. Once doing that it fixed the issue.

Code:

cmmiller1973@ubuntu64vm:~$ traceroute 4.2.2.2
traceroute to 4.2.2.2 (4.2.2.2), 30 hops max, 60 byte packets
 1  10.113.176.1 (10.113.176.1)  7.334 ms  7.121 ms  7.681 ms
 2  192.168.250.1 (192.168.250.1)  11.641 ms  12.285 ms  12.128 ms
 3  wsip-70-167-61-77.ks.ks.cox.net (70.167.61.77)  11.970 ms  11.831 ms  11.689 ms
 4  70.183.69.81 (70.183.69.81)  28.886 ms  30.897 ms  31.537 ms
 5  70.183.66.246 (70.183.66.246)  19.293 ms  19.999 ms 70.183.71.62 (70.183.71.62)  15.639 ms
 6  70.183.71.66 (70.183.71.66)  19.686 ms 70.183.71.60 (70.183.71.60)  39.879 ms 70.183.71.66 (70.183.71.66)  43.535 ms
 7  68.1.2.121 (68.1.2.121)  31.143 ms  30.964 ms  29.979 ms
 8  xe-10-1-0.edge4.Dallas3.Level3.net (4.59.32.85)  30.648 ms xe-11-1-2.edge4.Dallas3.Level3.net (4.59.32.97)  25.369 ms xe-7-1-0.edge4.Dallas3.Level3.net (4.59.32.93)  26.072 ms
 9  ae-3-80.edge3.Dallas1.Level3.net (4.69.145.136)  25.930 ms ae-1-60.edge3.Dallas1.Level3.net (4.69.145.8)  25.751 ms ae-3-80.edge3.Dallas1.Level3.net (4.69.145.136)  25.602 ms
10  b.resolvers.Level3.net (4.2.2.2)  29.758 ms  29.616 ms  29.400 ms
cmmiller1973@ubuntu64vm:~$


Code:

cmmiller1973@ubuntu64vm:~$ mtr --report google.com
HOST: ubuntu64vm                  Loss%  Snt  Last  Avg  Best  Wrst StDev
  1.|-- 10.113.176.1              0.0%    10  10.1  10.3  7.3  19.3  3.5
  2.|-- 192.168.250.1              0.0%    10    8.7  10.7  7.5  21.1  4.3
  3.|-- wsip-70-167-61-77.ks.ks.c  0.0%    10    7.1  10.0  7.1  13.0  1.9
  4.|-- 70.183.69.81              0.0%    10  32.8  17.2  12.4  32.8  6.8
  5.|-- 70.183.71.62              0.0%    10  12.5  17.2  12.5  37.6  7.6
  6.|-- 70.183.71.60              0.0%    10  17.1  15.4  11.6  20.5  3.2
  7.|-- 68.1.2.121                0.0%    10  31.5  37.1  27.7  79.6  16.1
  8.|-- 72.14.212.237              0.0%    10  29.5  29.2  27.4  35.0  2.3
  9.|-- 72.14.233.85              0.0%    10  28.5  30.1  27.0  40.4  3.9
 10.|-- 209.85.240.79              0.0%    10  30.7  30.0  27.8  35.8  2.6
 11.|-- dfw06s27-in-f8.1e100.net  0.0%    10  26.4  29.3  24.7  41.5  5.1

Not sure if we want to move this to VM part of the forums.

thanks


All times are GMT -5. The time now is 09:21 PM.