Skip to content

Instantly share code, notes, and snippets.

@dwilkins
Last active January 1, 2016 23:19
Show Gist options
  • Save dwilkins/8215431 to your computer and use it in GitHub Desktop.
Save dwilkins/8215431 to your computer and use it in GitHub Desktop.
Route output of Ar.Drone with Pantech
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.32.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 ath0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
224.0.0.0 * 240.0.0.0 U 0 0 0 ath0
----------- With default route ---------------
# route add default eth0
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.32.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 ath0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
224.0.0.0 * 240.0.0.0 U 0 0 0 ath0
default * 0.0.0.0 U 0 0 0 eth0
# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
# ping -I 192.168.32.50 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.32.50: 56 data bytes
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
#
#
---------- with gw option -------------
# route add default gw 192.168.32.2 eth0
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.32.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 ath0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
224.0.0.0 * 240.0.0.0 U 0 0 0 ath0
default 192.168.32.2 0.0.0.0 UG 0 0 0 eth0
# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
^C
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
#
################## Now can ping the Internet (slowly) ######################
# ifconfig
ath0 Link encap:Ethernet HWaddr 90:03:B7:C8:68:9C
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15639 errors:0 dropped:0 overruns:0 frame:0
TX packets:104862 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3329640 (3.1 MiB) TX bytes:9282647 (8.8 MiB)
eth0 Link encap:Ethernet HWaddr D0:57:85:7B:7F:DE
inet addr:192.168.32.50 Bcast:192.168.32.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15828 (15.4 KiB) TX bytes:3014 (2.9 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:15650 errors:0 dropped:0 overruns:0 frame:0
TX packets:15650 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1451033 (1.3 MiB) TX bytes:1451033 (1.3 MiB)
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.32.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 ath0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
224.0.0.0 * 240.0.0.0 U 0 0 0 ath0
default 192.168.32.2 0.0.0.0 UG 0 0 0 eth0
# ping -I 192.168.32.50 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.32.50: 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=44 time=329.406 ms
64 bytes from 8.8.8.8: seq=1 ttl=44 time=156.799 ms
64 bytes from 8.8.8.8: seq=2 ttl=44 time=195.923 ms
64 bytes from 8.8.8.8: seq=3 ttl=44 time=286.133 ms
64 bytes from 8.8.8.8: seq=4 ttl=44 time=105.957 ms
64 bytes from 8.8.8.8: seq=5 ttl=44 time=208.466 ms
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 105.957/213.780/329.406 ms
#
###########################################################
Ping Timings
###########################################################
# ping -c 100 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=44 time=242.157 ms
64 bytes from 8.8.8.8: seq=1 ttl=44 time=201.569 ms
64 bytes from 8.8.8.8: seq=2 ttl=44 time=100.433 ms
64 bytes from 8.8.8.8: seq=3 ttl=44 time=121.491 ms
64 bytes from 8.8.8.8: seq=4 ttl=44 time=41.138 ms
64 bytes from 8.8.8.8: seq=5 ttl=44 time=299.622 ms
64 bytes from 8.8.8.8: seq=6 ttl=44 time=98.785 ms
64 bytes from 8.8.8.8: seq=7 ttl=44 time=279.114 ms
64 bytes from 8.8.8.8: seq=8 ttl=44 time=239.136 ms
64 bytes from 8.8.8.8: seq=9 ttl=44 time=197.021 ms
64 bytes from 8.8.8.8: seq=10 ttl=44 time=101.196 ms
64 bytes from 8.8.8.8: seq=11 ttl=44 time=96.679 ms
64 bytes from 8.8.8.8: seq=12 ttl=44 time=35.003 ms
64 bytes from 8.8.8.8: seq=13 ttl=44 time=107.422 ms
64 bytes from 8.8.8.8: seq=14 ttl=44 time=105.255 ms
64 bytes from 8.8.8.8: seq=15 ttl=44 time=273.438 ms
64 bytes from 8.8.8.8: seq=16 ttl=44 time=233.612 ms
64 bytes from 8.8.8.8: seq=17 ttl=44 time=103.516 ms
64 bytes from 8.8.8.8: seq=18 ttl=44 time=152.893 ms
64 bytes from 8.8.8.8: seq=19 ttl=44 time=102.448 ms
64 bytes from 8.8.8.8: seq=20 ttl=44 time=40.955 ms
64 bytes from 8.8.8.8: seq=21 ttl=44 time=101.135 ms
64 bytes from 8.8.8.8: seq=22 ttl=44 time=311.127 ms
64 bytes from 8.8.8.8: seq=23 ttl=44 time=271.179 ms
64 bytes from 8.8.8.8: seq=24 ttl=44 time=230.560 ms
64 bytes from 8.8.8.8: seq=25 ttl=44 time=191.864 ms
64 bytes from 8.8.8.8: seq=26 ttl=44 time=98.297 ms
64 bytes from 8.8.8.8: seq=27 ttl=44 time=98.602 ms
64 bytes from 8.8.8.8: seq=28 ttl=44 time=99.243 ms
64 bytes from 8.8.8.8: seq=29 ttl=44 time=347.199 ms
64 bytes from 8.8.8.8: seq=30 ttl=44 time=305.268 ms
64 bytes from 8.8.8.8: seq=31 ttl=44 time=266.266 ms
64 bytes from 8.8.8.8: seq=32 ttl=44 time=106.781 ms
64 bytes from 8.8.8.8: seq=33 ttl=44 time=185.578 ms
64 bytes from 8.8.8.8: seq=34 ttl=44 time=152.008 ms
64 bytes from 8.8.8.8: seq=35 ttl=44 time=104.981 ms
64 bytes from 8.8.8.8: seq=36 ttl=44 time=103.760 ms
64 bytes from 8.8.8.8: seq=37 ttl=44 time=344.238 ms
64 bytes from 8.8.8.8: seq=38 ttl=44 time=303.894 ms
64 bytes from 8.8.8.8: seq=39 ttl=44 time=101.685 ms
64 bytes from 8.8.8.8: seq=40 ttl=44 time=223.999 ms
64 bytes from 8.8.8.8: seq=41 ttl=44 time=181.946 ms
64 bytes from 8.8.8.8: seq=42 ttl=44 time=140.595 ms
64 bytes from 8.8.8.8: seq=43 ttl=44 time=100.647 ms
64 bytes from 8.8.8.8: seq=44 ttl=44 time=388.458 ms
64 bytes from 8.8.8.8: seq=45 ttl=44 time=339.111 ms
64 bytes from 8.8.8.8: seq=46 ttl=44 time=104.340 ms
64 bytes from 8.8.8.8: seq=47 ttl=44 time=108.368 ms
64 bytes from 8.8.8.8: seq=48 ttl=44 time=217.377 ms
64 bytes from 8.8.8.8: seq=49 ttl=44 time=106.323 ms
64 bytes from 8.8.8.8: seq=50 ttl=44 time=103.546 ms
64 bytes from 8.8.8.8: seq=51 ttl=44 time=97.809 ms
64 bytes from 8.8.8.8: seq=52 ttl=44 time=106.079 ms
64 bytes from 8.8.8.8: seq=53 ttl=44 time=105.378 ms
64 bytes from 8.8.8.8: seq=54 ttl=44 time=104.858 ms
64 bytes from 8.8.8.8: seq=55 ttl=44 time=111.512 ms
64 bytes from 8.8.8.8: seq=56 ttl=44 time=104.492 ms
64 bytes from 8.8.8.8: seq=57 ttl=44 time=142.273 ms
64 bytes from 8.8.8.8: seq=58 ttl=44 time=101.440 ms
64 bytes from 8.8.8.8: seq=59 ttl=44 time=53.955 ms
64 bytes from 8.8.8.8: seq=60 ttl=44 time=171.936 ms
64 bytes from 8.8.8.8: seq=61 ttl=44 time=100.647 ms
64 bytes from 8.8.8.8: seq=62 ttl=44 time=101.044 ms
64 bytes from 8.8.8.8: seq=63 ttl=44 time=100.403 ms
64 bytes from 8.8.8.8: seq=64 ttl=44 time=199.920 ms
64 bytes from 8.8.8.8: seq=65 ttl=44 time=170.105 ms
64 bytes from 8.8.8.8: seq=66 ttl=44 time=99.731 ms
64 bytes from 8.8.8.8: seq=67 ttl=44 time=49.133 ms
64 bytes from 8.8.8.8: seq=68 ttl=44 time=238.648 ms
64 bytes from 8.8.8.8: seq=69 ttl=44 time=97.992 ms
64 bytes from 8.8.8.8: seq=70 ttl=44 time=246.460 ms
64 bytes from 8.8.8.8: seq=71 ttl=44 time=246.857 ms
64 bytes from 8.8.8.8: seq=72 ttl=44 time=97.107 ms
64 bytes from 8.8.8.8: seq=73 ttl=44 time=106.080 ms
64 bytes from 8.8.8.8: seq=74 ttl=44 time=125.732 ms
64 bytes from 8.8.8.8: seq=75 ttl=44 time=44.769 ms
64 bytes from 8.8.8.8: seq=76 ttl=44 time=103.089 ms
64 bytes from 8.8.8.8: seq=77 ttl=44 time=292.725 ms
64 bytes from 8.8.8.8: seq=78 ttl=44 time=281.006 ms
64 bytes from 8.8.8.8: seq=79 ttl=44 time=241.241 ms
64 bytes from 8.8.8.8: seq=80 ttl=44 time=101.258 ms
64 bytes from 8.8.8.8: seq=81 ttl=44 time=100.097 ms
64 bytes from 8.8.8.8: seq=82 ttl=44 time=120.666 ms
64 bytes from 8.8.8.8: seq=83 ttl=44 time=37.567 ms
64 bytes from 8.8.8.8: seq=84 ttl=44 time=99.762 ms
64 bytes from 8.8.8.8: seq=85 ttl=44 time=320.953 ms
64 bytes from 8.8.8.8: seq=86 ttl=44 time=276.337 ms
64 bytes from 8.8.8.8: seq=87 ttl=44 time=97.168 ms
64 bytes from 8.8.8.8: seq=88 ttl=44 time=97.504 ms
64 bytes from 8.8.8.8: seq=89 ttl=44 time=157.776 ms
64 bytes from 8.8.8.8: seq=90 ttl=44 time=97.351 ms
64 bytes from 8.8.8.8: seq=91 ttl=44 time=35.767 ms
64 bytes from 8.8.8.8: seq=92 ttl=44 time=105.804 ms
64 bytes from 8.8.8.8: seq=93 ttl=44 time=313.019 ms
64 bytes from 8.8.8.8: seq=94 ttl=44 time=274.749 ms
64 bytes from 8.8.8.8: seq=95 ttl=44 time=104.889 ms
64 bytes from 8.8.8.8: seq=96 ttl=44 time=194.336 ms
64 bytes from 8.8.8.8: seq=97 ttl=44 time=153.534 ms
64 bytes from 8.8.8.8: seq=98 ttl=44 time=101.013 ms
64 bytes from 8.8.8.8: seq=99 ttl=44 time=43.243 ms
--- 8.8.8.8 ping statistics ---
100 packets transmitted, 100 packets received, 0% packet loss
round-trip min/avg/max = 35.003/157.864/388.458 ms
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment