ismith78
Posts: 4
Joined: Sun Oct 06, 2013 2:44 pm

Got an IP address from rpi as wireless ap but ping fails

Mon Jun 02, 2014 5:13 pm

Hi,

I have a very strange issue - I have my Raspberry Pi with a ralink 5370 wifi adapter with hostapd, isc-dhcp-server and apache2 configured. Devices can connect and correctly get an IP address in the range defined by the pool but none of the devices can ping the rpi or access the web server.,

So the network setup is

Raspberry Pi - has a static IP address of 192.168.43.1 netmask 255.255.255.0 and broadcast 192.168.43.255

The DHCP server is configured to have a pool from 192.168.43.10 to 192.168.43.20

The router option is set to 192.168.43.1.

I have two devices connected to the Raspberry Pi, one has an IP 192.168.43.10 and the other has an IP address of 192.168.43.11

Ping from Raspberry Pi to either client fails
Ping from client 1 to Raspberry Pi and client 2 fails
Ping from client 2 to Raspberry Pi and client 1 fails

In all cases pings to localhost work as expected.

I have tried various rules in case this was a firewall problem with both iptables and ufw without any change in behaviour.

I will upload the various config files later, but if the IP, netmask and broadcast are correct and I'm specifying the IP address correctly then what is failing. It should also be noted that doing route on the client devices shows a slight delay before listing - which would be normal for a DNS lookup failure, but I'm pinging by IP address.

The only network access on the Raspberry Pi is the wifi - the scenario I'm using this is is not for routing traffic from wifi to eth0, so there is no internet for a DNS to resolve.

ismith78
Posts: 4
Joined: Sun Oct 06, 2013 2:44 pm

Re: Got an IP address from rpi as wireless ap but ping fails

Mon Jun 02, 2014 10:43 pm

Found the problem - I had been cribing from some notes when I had the Raspberry Pi as a proper router with a bridge. So in the /etc/hostapd/hostapd.conf I had the following line

Code: Select all

bridge=br0
Once that was removed then pings and web access starting working.

Return to “Troubleshooting”