Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I don't think the version matters in this case, but 13.04 64-bit. Connecting wirelessly through a router. In fighting a losing battle to attempt to get remote printing working to a Windows XP (Windows only printer) XEROX DocuPrint P8 (which still isn't working, but that's not my concern here), I changed a number of files, including /etc/hosts, now I have come to discover that something I changed makes it impossible for me to reach any hosts (via ping),install any new software, and I am unable get automatic updates, or even ping askubuntu.com. Browsing through Chromium or FF works fine, but from shell level, things are broken. :( Done some searching through askubuntu.com, but unable to find an answer to this. Thank you in advance.

route | grep default

    default         AnotherNet      0.0.0.0         UG    0      0        0 wlan0

ifconfig -a

    eth0      Link encap:Ethernet  HWaddr 00:1e:68:52:87:9e  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:566 errors:0 dropped:0 overruns:0 frame:0
              TX packets:566 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:51199 (51.1 KB)  TX bytes:51199 (51.1 KB)

    wlan0     Link encap:Ethernet  HWaddr 00:21:5c:21:78:d1  
              inet addr:192.168.1.141  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::221:5cff:fe21:78d1/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:5314 errors:0 dropped:0 overruns:0 frame:0
              TX packets:5252 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:3838126 (3.8 MB)  TX bytes:957386 (957.3 KB)

ip addr

    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
        inet6 ::1/128 scope host 
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
        inet6 ::1/128 scope host 
           valid_lft forever preferred_lft forever
    2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
        link/ether 00:1e:68:52:87:9e brd ff:ff:ff:ff:ff:ff
    3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
        link/ether 00:21:5c:21:78:d1 brd ff:ff:ff:ff:ff:ff
        inet 192.168.1.141/24 brd 192.168.1.255 scope global wlan0
        inet6 fe80::221:5cff:fe21:78d1/64 scope link 
           valid_lft forever preferred_lft forever

iwconfig

    eth0      no wireless extensions.

    lo        no wireless extensions.

    wlan0     IEEE 802.11abgn  ESSID:"AnotherNet"  
              Mode:Managed  Frequency:2.462 GHz  Access Point: 20:AA:4B:8E:AE:5A   
              Bit Rate=72.2 Mb/s   Tx-Power=14 dBm   
              Retry  long limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off
              Link Quality=42/70  Signal level=-68 dBm  
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:1057  Invalid misc:118   Missed beacon:0

iptables -L

    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         

    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         

    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         

nm-tool

    NetworkManager Tool

    State: connected (global)

    - Device: eth0 -----------------------------------------------------------------
      Type:              Wired
      Driver:            r8169
      State:             unavailable
      Default:           no
      HW Address:        00:1E:68:52:87:9E

      Capabilities:
        Carrier Detect:  yes

      Wired Properties
        Carrier:         off


     State:             unavailable
      Default:           no
      HW Address:        00:1E:68:52:87:9E

      Capabilities:
        Carrier Detect:  yes

      Wired Properties
        Carrier:         off


    - Device: wlan0  [AnotherNet] --------------------------------------------------
      Type:              802.11 WiFi
      Driver:            iwl4965
      State:             connected
      Default:           yes
      HW Address:        00:21:5C:21:78:D1

      Capabilities:
        Speed:           72 Mb/s

      Wireless Properties
        WEP Encryption:  yes
        WPA Encryption:  yes
        WPA2 Encryption: yes

      Wireless Access Points (* = current AP)

$ cat /etc/hosts

    127.0.0.1       localhost loopback
    192.168.1.141   HPdv6700 linux JL
    192.168.1.115   REGGIEDESKTOP ReggieDesktop reggiedesktop printserver RD
    192.168.1.1     gateway GW router ea2700

    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
$ ping 192.168.1.140
PING 192.168.1.140 (192.168.1.140) 56(84) bytes of data.
From 192.168.1.141 icmp_seq=1 Destination Host Unreachable
From 192.168.1.141 icmp_seq=2 Destination Host Unreachable
From 192.168.1.141 icmp_seq=3 Destination Host Unreachable
From 192.168.1.141 icmp_seq=4 Destination Host Unreachable
From 192.168.1.141 icmp_seq=5 Destination Host Unreachable
From 192.168.1.141 icmp_seq=6 Destination Host Unreachable
From 192.168.1.141 icmp_seq=7 Destination Host Unreachable
From 192.168.1.141 icmp_seq=8 Destination Host Unreachable
From 192.168.1.141 icmp_seq=9 Destination Host Unreachable
^C
--- 192.168.1.140 ping statistics ---
11 packets transmitted, 0 received, +9 errors, 100% packet loss, time 10056ms
pipe 3

$ 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_req=1 ttl=64 time=7.82 ms
64 bytes from 192.168.1.1: icmp_req=2 ttl=64 time=9.02 ms
64 bytes from 192.168.1.1: icmp_req=3 ttl=64 time=1.39 ms
64 bytes from 192.168.1.1: icmp_req=4 ttl=64 time=6.47 ms
^C
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 1.394/6.178/9.022/2.905 ms

ping of askubuntu.com never returns, just sits there.
share|improve this question
    
Your ip address is 192.168.1.141. Can you ping 192.168.1.140? 192.168.1.140 should be your gateway unless you have other host in the network picking that IP. Please also show us the entries of your /etc/host –  Arnold Sep 18 '13 at 15:56
    
I would expect the gateway to be 192.168.1.1 –  belacqua Sep 18 '13 at 16:02
    
Browsing works fine, but at the shell you can't connect? Interesting. What is the output of the pings? Can you post it? Post outputs of pinging your gateway and pinging askubuntu.com. Also, post your /etc/hosts file. –  Alaa Sep 18 '13 at 16:15
    
@Arnold Updated original question adding /etc/hosts comment with contents –  C. Jack C Sep 18 '13 at 16:47
    
Hi C. Jack C! Can you please edit your question ad add the outputs of the ping commands? And please, when you post any kind of "output" or "code" in your question, highlight it and hit Ctrl+K, that makes it much prettier; just like how I edited your question now =). –  Alaa Sep 18 '13 at 16:51
show 16 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.