All of the sudden for no reason my raspberry stop access to the internet. I have reinstalled the OS and no help. Connect to the WiFi lan but does not connect and returns an error when wire line to a local switch. It only access the internet from a wireless connection.
The wireless router is other that the one in the wire lan in the building. What confuses me is that I have 2 computers running from the same switch connected to the Pi. But the other desktop computers are resolving.
Here is a ipconfog with Wireless and with wire connection
pi@raspberrypi:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 136.145.61.82 netmask 255.255.255.0 broadcast 136.145.61.255
inet6 fe80::c11e:7b12:97a9:1b4f prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:14:06:02 txqueuelen 1000 (Ethernet)
RX packets 1422 bytes 143386 (140.0 KiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 94 bytes 13445 (13.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 568 bytes 48440 (47.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 568 bytes 48440 (47.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
pi@raspberrypi:~ $ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:14:06:02 txqueuelen 1000 (Ethernet)
RX packets 1683 bytes 169984 (166.0 KiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 101 bytes 14527 (14.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 644 bytes 54664 (53.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 644 bytes 54664 (53.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.31.2.238 netmask 255.255.0.0 broadcast 10.31.255.255
inet6 fe80::bc2e:4dd1:5b0f:b371 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:41:53:57 txqueuelen 1000 (Ethernet)
RX packets 10941 bytes 4435890 (4.2 MiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 1390 bytes 255159 (249.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
pi@raspberrypi:~ $
UPDATE:
Following comment request
GNU nano 2.7.4 File: /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
UPDATE 2
Ping with the Wirelesss connection
pi@raspberrypi:~ $ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=109 time=40.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=109 time=41.3 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=109 time=48.1 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=109 time=43.7 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=109 time=38.3 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=109 time=39.6 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=109 time=43.2 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=109 time=38.6 ms
With the Wire connection
pi@raspberrypi:~ $ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=107 time=36.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=107 time=36.8 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=107 time=36.4 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=107 time=36.4 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=107 time=36.4 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=107 time=36.5 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=107 time=36.4 ms
UPDATE 3
Here is a ping to google with wire
pi@raspberrypi:~ $ ping google.com
ping: google.com: Temporary failure in name resolution
Here is a ping to google with Wireless
PING google.com (172.217.8.142) 56(84) bytes of data.
64 bytes from mia07s49-in-f14.1e100.net (172.217.8.142): icmp_seq=1 ttl=40 time=43.3 ms
64 bytes from mia07s49-in-f14.1e100.net (172.217.8.142): icmp_seq=2 ttl=40 time=46.8 ms
64 bytes from mia07s49-in-f14.1e100.net (172.217.8.142): icmp_seq=3 ttl=40 time=36.9 ms