Skip to content

Instantly share code, notes, and snippets.

@andrewroth
Created September 7, 2010 23:56
Show Gist options
  • Save andrewroth/569357 to your computer and use it in GitHub Desktop.
Save andrewroth/569357 to your computer and use it in GitHub Desktop.
andrew2-openpandora:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
andrew2-openpandora:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=32.0 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=39.0 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=54.8 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=54.6 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=54.6 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=7.78 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=54.5 ms
^C
--- 192.168.1.1 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6071ms
rtt min/avg/max/mdev = 7.782/42.511/54.840/16.562 ms
andrew2-openpandora:~$ ping yahoo.ca
ping: unknown host yahoo.ca
andrew2-openpandora:~$ sudo rute add default gw 192.168.1.1
Password:
sudo: rute: command not found
andrew2-openpandora:~$ sudo route add default gw 192.168.1.1
andrew2-openpandora:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
andrew2-openpandora:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.55 icmp_seq=1 Destination Host Unreachable
From 192.168.1.55 icmp_seq=2 Destination Host Unreachable
From 192.168.1.55 icmp_seq=3 Destination Host Unreachable
From 192.168.1.55 icmp_seq=4 Destination Host Unreachable
From 192.168.1.55 icmp_seq=5 Destination Host Unreachable
From 192.168.1.55 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7070ms
, pipe 3
@andrewroth
Copy link
Author

this is directly after connecting, when I am able to ping the gateway.

andrew2-openpandora:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment