Triviums
Posts: 6
Joined: Thu Jul 10, 2014 2:42 am

Problems with ssh and slow download speed

Thu Jul 10, 2014 2:59 am

Hi,
so I setup an access point/hotspot on raspbian using these instructions:
http://www.instructables.com/id/How-to- ... Raspberry/ and afterwords ssh wouldn't work.

install hostapd, hostap-utils, iw and bridge-utils:

Code: Select all

sudo aptitude install hostapd hostap-utils iw bridge-utils
Edit Hostapd:

Code: Select all

sudo nano /etc/init.d/hostapd
Change DAEMON_CONF= to:

Code: Select all

DAEMON_CONF=/etc/hostapd/hostapd.conf
Configure Hostapd:

Code: Select all

sudo nano /etc/hostapd/hostapd.conf

Code: Select all

ctrl_interface=/var/run/hostapd
###############################
# Basic Config
###############################
macaddr_acl=0 auth_algs=1
# Most modern wireless drivers in the kernel need driver=nl80211
driver=nl80211
##########################
# Local configuration...
##########################
interface=wlan0
bridge=br0
hw_mode=g
ieee80211n=1
wme_enabled=1
channel=1
ssid=RaspberryPI_AP
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=MY_PASSPHRASE
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Configure Bridge:

Code: Select all

sudo nano /etc/network/interfaces

Code: Select all

auto lo

iface lo inet loopback
auto br0
iface br0 inet static
address 192.168.1.11
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge-ports eth0 wlan0

iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Restart raspberry pi:

Code: Select all

sudo shutdown -r now
once the setup was complete, I couldn't connect to the raspberry pi via ssh. This is the message I would get:

Code: Select all

ssh pi@192.168.1.11
ssh: connect to host 192.168.1.11 port 22: Network is unreachable
Also, the access point has slower download speeds than my netgear modem/router. how do I fix it?

Netgear modem/router:
Image

Raspberry pi:
Image

Setup:
Raspberry pi Model B (Raspbian Installed)
Wi-Pi N wireless adapter by element14 (Ralink driver)



User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Problems with ssh and slow download speed

Thu Jul 17, 2014 8:12 am

what is your IP normally
does your machine know how to reach the A/P
how do you run the speedtest if you cannot reach the RPi?
and your RPi has doubled your upload rate
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Triviums
Posts: 6
Joined: Thu Jul 10, 2014 2:42 am

Re: Problems with ssh and slow download speed

Sat Jul 19, 2014 11:47 pm

RaTTuS wrote:what is your IP normally
does your machine know how to reach the A/P
how do you run the speedtest if you cannot reach the RPi?
and your RPi has doubled your upload rate
My internal IP is normally 192.168.0.X (X = number)
Yes my computer can reach the AP via wireless network if that is what you ment...
I can run speedtest because I can reach the RPI as a hotspot/wireless network but not as a ssh network.
My network upload speeds vary between 0.2 and 0.9mbps depending on the connection.

User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Problems with ssh and slow download speed

Mon Jul 21, 2014 7:49 am

well as your RPi has a network 192.168.1.x
and you have 192.168.0.x
then you need to know how to reach 192.168.1.x from your 192.168.0.x network so you probably need to add a static route on the computer you are using
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “Troubleshooting”