The goal was to have the Pi share a wifi-equipped Mac's network connection.
Mac running Lion (OS X 10.7) is connected to Internet via wifi.
Pi connected via Ethernet cable to Mac.
Share the Mac's Internet connection: on the Mac, go to System Preferences - Sharing.
- Check the box Internet Sharing from the list of services.
- Confirm that that the sharing status is On.
- Confirm that Ethernet is checked on the list of ports to share to.
Macintosh:~ dan$ ping raspberrypi.local
PING raspberrypi.local (192.168.2.2): 56 data bytes
64 bytes from 192.168.2.2: icmp_seq=0 ttl=64 time=0.720 ms
64 bytes from 192.168.2.2: icmp_seq=1 ttl=64 time=0.982 ms
64 bytes from 192.168.2.2: icmp_seq=2 ttl=64 time=0.919 ms
^C
--- raspberrypi.local ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.720/0.874/0.982/0.112 ms
But, it wasn't working for us. The Pi wasn't registering its name, we couldn't reach it from the Mac. Pings just resulted in "ping: cannot resolve raspberrypi.local: Unknown host". We tried all the suggestions on the FAQ and troubleshooting wiki (cable swapping, reflashing the Pi's software, swapping power supplies) but they did not help.
There were two problems: the Pi's network configuration needed to be changed, and the Mac's Internet Sharing needed to be restarted.
Fixing the network configuration on the Pi, David Singleton's web page gave me a clue about needing to enable the Ethernet interface on the Pi to make it get configuration from DHCP.
This is the original network interface configuration on Occidentalis:
pi@raspberrypi:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "my-network-ssid"
wpa-psk "my-wifi-password"
Using nano, and opening the file as superuser because it is a restricted system file,
pi@raspberrypi:~$ sudo nano /etc/network/interfaces
we make the following additions (in bold):
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
#auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp
# wpa-ssid "my-network-ssid"
# wpa-psk "my-wifi-password"
We don't have a wireless adapter on our Pi, so we commented out the three lines of wireless interface configuration.
Then, we restart the network, forcing it to load the new interfaces file.
pi@raspberrypi:~$ sudo /etc/init.d/networking restart
That worked better. The Pi was now coming up and making a DHCP request. But it wasn't getting a response. That's not a Pi problem, that's a problem with the Mac's Internet Connection Sharing.
Off to Google again - this thread showed other people had problems with ICS in Lion. The easiest suggestion was to simply stop and restart the service, and this worked. One more restart of the Pi's networking, and as David says: "yay, network!"
Thanks for the help! Worked perfectly in getting my Pi going!
ReplyDeleteThank you very much for taking the time to post this. This fixed my problem and ended much frustration!
ReplyDeleteThank you very much, it helped to me!
ReplyDeleteWow i can say that this is another great article as expected of this blog.Bookmarked this site..
ReplyDeletecarding forum
DOCSIS 3.0 Cable architecture probably can provide you faster speed up to 300 Mbps - but depends on the infrastructure the ISPs have built.click here
ReplyDeleteI'm glad to see the great detail here!.
ReplyDeletespeedtest.charter.com
This is my first time i visit here. I found such a substantial number of interesting stuff in your blog especially its examination. Really its inconceivable article. Keep it up. Speed Test Etisalat
ReplyDeleteThank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our.
ReplyDelete먹튀검증
Thanks for picking out the time to discuss this, I feel great about it and love studying more on this topic. It is extremely helpful for me. Thanks for such a valuable help again. https://192-168-i-i.com
ReplyDelete
ReplyDeleteharry potter iphone wallpaper
I appreciated your work very thanks buy instagram likes monthly
ReplyDeleteThe technology empowers different sorts of work and work to be decoupled from each other. how to write a blog post that converts
ReplyDeleteOn the off chance that you have been in arrange showcasing for any period of time you have presumably had somebody in your upline disclose to you that there is no conceivable method to manufacture an effective system advertising business on the web and that they best way to do it is to make a rundown of everybody you know on planet earth, consider them and offer them the opportunity to band together with you in your business opportunity.webinar software
ReplyDeleteThank you for another informative website. Where else could I get that type of information written in such an ideal way? I have a project that I’m just now working on, and I have been on the look out for such information. مقوي سيرفس الكويت
ReplyDeleteThe internet can indeed, serve people with different lifestyles in a lot of ways. It can be a means of communication, a good source of information, a mode of entertainment, a way of making purchases, banking transactions and much more. KickassTorrents proxy
ReplyDeleteI don't contest these discoveries. I as well, need laborers I speak to recover their personal satisfaction, including their full working class potential, as fast as could be expected under the circumstances.Email Extractor Software
ReplyDeleteTV, portable and even types of customarily non-advanced media, for example, announcements and travel signs. Basically any advertising media that is conveyed electronically is viewed as computerized promoting. CBT Mass Email Sender
ReplyDeletePositive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. internet providers calgary
ReplyDeleteThis has offered ascend to SEO exchanging. Lead generation
ReplyDeleteJust saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates. internet speed test
ReplyDeleteThis is a brilliant blog! I'm very happy with the comments!.. sviluppo siti web Milano
ReplyDeleteThe hardest task to take care of ever is to stand up your customer or chief yet indeed doing this consistently can make your infuriating website measure a wonderful encounter for yourself and for your customers too. Webdesign
ReplyDeleteAt the point when you are maintaining a web design business, it is vital for you to comprehend that your customers are the an integral part of your business. Webdesigner
ReplyDeleteI appreciate the time you put into this post. In fact your writing has me wanting to kickoff my own webblog now. Thanks again for sharing this up. buy here
ReplyDeleteMua vé tại Aivivu, tham khảo
ReplyDeleteve may bay di my gia re
giá vé máy bay hà nội sài gòn pacific airlines
các chuyến bay cần thơ đi hà nội
vé máy bay cam ranh
vé máy bay đi đà lạt vietnam airline
bảng giá taxi sân bay
combo nghỉ dưỡng nha trang
instagram takipçi satın al
ReplyDeleteaşk kitapları
tiktok takipçi satın al
instagram beğeni satın al
youtube abone satın al
twitter takipçi satın al
tiktok beğeni satın al
tiktok izlenme satın al
twitter takipçi satın al
tiktok takipçi satın al
youtube abone satın al
tiktok beğeni satın al
instagram beğeni satın al
trend topic satın al
trend topic satın al
youtube abone satın al
instagram takipçi satın al
beğeni satın al
tiktok izlenme satın al
sms onay
youtube izlenme satın al
tiktok beğeni satın al
sms onay
sms onay
perde modelleri
instagram takipçi satın al
takipçi satın al
tiktok jeton hilesi
instagram takipçi satın al
pubg uc satın al
sultanbet
marsbahis
betboo
betboo
betboo
you’re actually a good webmaster. The website loading speed is amazing. It sort of feels that you’re doing any unique trick. Also, The contents are masterpiece. you’ve performed a excellent process on this subject! GoodCrypto
ReplyDeletebrand positioning agency
ReplyDeleteIt's not my very first time to visit this blog; I’m visiting this daily and acquire superb info from here day by day.
I’d have to examine with you here. Which is not one thing I usually do! I take pleasure in reading a post that may make folks think. Additionally, thanks for permitting me to comment! coinspot australia review
ReplyDeleteI’m impressed, I have to admit. Really rarely can i encounter a weblog that’s both educative and entertaining, and let me tell you, you could have hit the nail on the head. Your thought is outstanding; the thing is an element that not enough people are speaking intelligently about. My business is very happy which i found this in my find some thing concerning this. upcoming nft mints
ReplyDeleteHello there! I know this is kinda off topic but I was wondering which blog platform are you using for this site? I’m getting fed up of WordPress because I’ve had problems with hackers and I’m looking at alternatives for another platform. I would be awesome if you could point me in the direction of a good platform. reddit
ReplyDeleteperde modelleri
ReplyDeletesms onay
mobil ödeme bozdurma
nft nasil alinir
ankara evden eve nakliyat
trafik sigortası
dedektör
web sitesi kurma
ASK KİTAPLARİ
Smm panel
ReplyDeletesmm panel
İs ilanlari blog
İnstagram takipçi satın al
Hırdavatçı Burada
www.beyazesyateknikservisi.com.tr
servis
Tiktok Jeton Hile
ümraniye bosch klima servisi
ReplyDeletependik beko klima servisi
ataşehir beko klima servisi
kadıköy lg klima servisi
tuzla bosch klima servisi
çekmeköy mitsubishi klima servisi
ataşehir mitsubishi klima servisi
maltepe vestel klima servisi
kadıköy vestel klima servisi
Good content. You write beautiful things.
ReplyDeletesportsbet
hacklink
mrbahis
korsan taksi
taksi
vbet
sportsbet
hacklink
mrbahis
This post is on your page i will follow your new content.
ReplyDeletesportsbet
sportsbetgiris.net
mrbahis giriş
mrbahis.co
sportsbet
casino siteleri
betgaranti.online
mrbahis
casino siteleri
yurtdışı kargo
ReplyDeleteresimli magnet
instagram takipçi satın al
yurtdışı kargo
sms onay
dijital kartvizit
dijital kartvizit
https://nobetci-eczane.org/
HGL6PD
salt likit
ReplyDeletesalt likit
ZHHHSG
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
8AJRKB