Hi,
Moved house recently and on rebooting my Raspberry Pi2 could resolve domains. Fixed the DNS issue and I can ping/drill address' but can not reach hosts.
$this->bbcode_second_pass_code('', '
# ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.21 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fd42:d629:d966:0:6670:2ff:fe24:19a6 prefixlen 64 scopeid 0x0<global>
inet6 fe80::6670:2ff:fe24:19a6 prefixlen 64 scopeid 0x20<link>
ether 64:70:02:24:19:a6 txqueuelen 1000 (Ethernet)
RX packets 6507781 bytes 511338048 (487.6 MiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 5437392 bytes 4747200385 (4.4 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
alarmpi etc # drill archlinuxarm.org
ping archlinuxarm.org
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 16106
;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; archlinuxarm.org. IN A
;; ANSWER SECTION:
archlinuxarm.org. 79385 IN A 50.116.36.110
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
;; Query time: 2 msec
;; SERVER: 192.168.1.1
;; WHEN: Sun Sep 3 14:43:51 2017
;; MSG SIZE rcvd: 50
# ping mirror.archlinuxarm.org
PING mirror.archlinuxarm.org (50.116.36.110) 56(84) bytes of data.
From alarmpi (192.168.0.21) icmp_seq=1 Destination Host Unreachable
From alarmpi (192.168.0.21) icmp_seq=2 Destination Host Unreachable
From alarmpi (192.168.0.21) icmp_seq=3 Destination Host Unreachable
From alarmpi (192.168.0.21) icmp_seq=4 Destination Host Unreachable
From alarmpi (192.168.0.21) icmp_seq=5 Destination Host Unreachable
From alarmpi (192.168.0.21) icmp_seq=6 Destination Host Unreachable
From alarmpi (192.168.0.21) icmp_seq=8 Destination Host Unreachable
From alarmpi (192.168.0.21) icmp_seq=9 Destination Host Unreachable
')
It stands out to me that the address that is being used to ping from (192.168.0.21) is not that which the wlan0 interface has been assigned by the router and is shown by ifconfig (192.168.1.21) and I suspect this may be one problem but am unsure how to resolve.
I'm using netctl and dnsmasq with IP address picked up using DHCP (my router sets it 192.168.1.21 and this is reflected by ifconfig output listed above)...
$this->bbcode_second_pass_code('', '
# netctl status slack-vpn
● netctl@slack\x2dvpn.service - Automatically generated profile by wifi-menu
Loaded: loaded (/etc/systemd/system/netctl@slack\x2dvpn.service; enabled; vendor preset: disabled)
Active: active (exited) since Sun 2017-08-13 20:02:22 UTC; 2 weeks 6 days ago
Docs: man:netctl.profile(5)
Process: 298 ExecStart=/usr/lib/netctl/network start slack-vpn (code=exited, status=0/SUCCESS)
Main PID: 298 (code=exited, status=0/SUCCESS)
Status: "online"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/system-netctl.slice/netctl@slack\x2dvpn.service
└─326 wpa_supplicant -q -B -P /run/wpa_supplicant-wlan0.pid -i wlan0 -D nl80211,wext -c/run/netctl/wpa_supplicant-wlan0.conf
Aug 13 20:02:18 alarmpi systemd[1]: Starting Automatically generated profile by wifi-menu...
Aug 13 20:02:19 alarmpi network[298]: Starting network profile 'slack-vpn'...
Aug 13 20:02:22 alarmpi systemd[1]: Started Automatically generated profile by wifi-menu.
Aug 28 09:17:16 alarmpi network[298]: Started network profile 'slack-vpn'
# systemctl status dnsmasq.service
● dnsmasq.service - A lightweight DHCP and caching DNS server
Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2017-08-28 09:18:42 UTC; 6 days ago
Docs: man:dnsmasq(8)
Process: 525 ExecStartPre=/usr/bin/dnsmasq --test (code=exited, status=0/SUCCESS)
Main PID: 530 (dnsmasq)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/dnsmasq.service
└─530 /usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file
Aug 28 09:18:42 alarmpi systemd[1]: Starting A lightweight DHCP and caching DNS server...
Aug 28 09:18:42 alarmpi dnsmasq[525]: dnsmasq: syntax check OK.
Aug 28 09:18:42 alarmpi systemd[1]: Started A lightweight DHCP and caching DNS server.
')
Stumped as to what to try next and would like to update my install. Pointers, thoughts and advice gratefully received.
Thanks in advance,
slackline