LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-13-2013, 07:57 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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
 
Old 05-13-2013, 08:49 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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
 
Old 05-13-2013, 09:20 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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.

Last edited by JockVSJock; 05-14-2013 at 05:40 AM.
 
Old 05-14-2013, 07:30 AM   #4
nyshtyak
Member
 
Registered: Nov 2008
Distribution: Arch
Posts: 38

Rep: Reputation: 2
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.
 
Old 05-14-2013, 08:03 AM   #5
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by nyshtyak View Post
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
 
  


Reply

Tags
mtr, route, virtual box



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue faced while installing Linux in virtual machine in Oracle virtual box ravisingh1 Linux - Virtualization and Cloud 5 04-07-2013 10:42 AM
[SOLVED] Arch linux Virtual Box Installation issue Nitesh Agarwal Linux - Virtualization and Cloud 1 03-19-2013 03:55 PM
[SOLVED] Redhat on virtual box issue pinga123 Linux - Newbie 4 01-10-2012 04:08 AM
Virtual Box issue ag81 Linux - Newbie 2 10-29-2009 10:02 AM
An Virtual Box issue Agloval Linux - Software 4 07-17-2009 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration