1

I have setup my wireless interface in via the config file /etc/network/interfaces, the interface is able to connect to the router but i cannot ping anything on my local network (not even the router itself to which the interface is connected) and I cannot access any external (WAN) resources either.

My configuration is as follows:

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback


# The wireless network interface
auto wlan1
iface wlan1 inet static
    address             192.168.1.12
    netmask             255.255.255.0
    gateway             192.168.1.1
    wireless-essid      xxxx
    wireless-key        s:xxxx 
    wireless-keymode    open

As you can see below, the interface is actually connected:

$ iwconfig

lo        no wireless extensions.

wlan1     IEEE 802.11abg  ESSID:"xxxx"  
          Mode:Managed  Frequency:2.452 GHz  Access Point: 58:98:35:4A:A4:F0   
          Bit Rate=54 Mb/s   Tx-Power=200 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:xxxx-xxxx-xx
          Power Management:off
          Link Quality=48/70  Signal level=-62 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

But I am unable to ping the gateway (192.168.1.1) or DNS (8.8.8.8):

$ ping 192.168.1.1

PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.12 icmp_seq=1 Destination Host Unreachable
From 192.168.1.12 icmp_seq=1 Destination Host Unreachable
From 192.168.1.12 icmp_seq=1 Destination Host Unreachable

Ifconfig returns:

$ ifconfig

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:31 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2158 (2.1 KiB)  TX bytes:2158 (2.1 KiB)

wlan1     Link encap:Ethernet  HWaddr 5c:93:a2:92:96:81  
          inet addr:192.168.1.12  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::5e93:a2ff:fe92:9681/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:143
          TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:14372 (14.0 KiB)
          Interrupt:18 

And Kernel routing is setup as follows:

$ route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan1
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan1

Any suggestions / troubleshooting tips would be very much appreciated thanks.

Regards, Mike.

  • The error "From 192.168.1.12 icmp_seq=1 Destination Host Unreachable" indicates that you are not getting a reply to your ARP request for the router's MAC address. This is interesting because the output of iwconfig shows a MAC address for the access point. Not sure where the problem is, but you're failing fairly low in the protocol stack. – Jeremy Dover Aug 8 '17 at 1:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.