sudo nano /etc/network/interfaces
find line:
iface default inet dhcp
put a # character in front of the line to temporarily disable requesting an IP address from a DHCP server.
Then add below:
iface default inet static
address 192.168.10.1
netmask 255.255.255.0
pi@raspberrypi ~ $ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
in wpa_supplicant # out all lines of previous wifi
ap_scan=2
network={
ssid="MyHoc"
mode=1
frequency=2432
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=CCMP
psk="CaptainHoc!"
}
to connect on mac
Next click on the Advanced… button and go to the TCP/IP tab.
Select Manually from the Configure IPv4 drop-down menu.
Now fill in 192.168.10.2 for the IP Address and 255.255.255.0 for the Subnet Mask, then click the OK button.
No comments:
Post a Comment