昨天用蜂窩數據下載了很多App,導致沒流量了,無奈用Mac分享下網絡給iPhone用,結果一直出現這個錯誤,很是惱火。
Google了半天,在Apple官網找到了解決辦法,原文如下:
Internet connection does not work with an IP address space of 169.254.xxx.xxx from ISP, router, or manual configuration
Products Affected
AirPort, Apple TV (1st generation), Apple TV (2nd generation), Bonjour, Internet, Mac OS X 10.4, Mac OS X 10.5, Mac OS X 10.6, iPad, iPhone, iPod touch
Symptoms
Your Mac, iOS device, or Apple TV cannot access the Internet with an IP address of 169.254.xxx.xxx (where xxx represents a number from 0 to 255).The symptoms of this issue include:
- Safari, iChat, and other Internet-dependent applications in Mac OS X may display the message "You are not connected to the Internet."
- Mail may put all of your email accounts into an "Offline" status.
- iOS devices cannot use other Internet features, such as the App Store.
- Apple TV may be able to use Home Sharing with computers on your local network, but not any features that require Internet access, such as movie trailers or rentals.
- In Mac OS X, an AirPort menu bar icon with an exclamation point may appear, and the AirPort menu may state "Alert: No Internet Connection…".
Use this article if:
- Your Mac, iOS device, or Apple TV is connected to a network that should provide access to the Internet, and which has a functioning DHCP server (such as an AirPort base station in default configuration).
- Your Mac, iOS device, or Apple TV is assigned an IP address of 169.254.xxx.xxx by your DHCP server, or you have manually assigned it an IP address of 169.256.xxx.xxx.
- Your Internet-facing router is being assigned an IP address of 169.254.xxx.xxx by your ISP.
Resolution
- Make sure your Your Mac, iOS device, or Apple TV is properly connected to your home Wi-Fi network (or via Ethernet if your Mac or Apple TV uses an Ethernet cable).
- Make sure your router (such as an AirPort base station in default configuration) is working properly and is assigning IP addresses to your devices via DHCP. See this article for details.
- If your ISP is assigning your Internet facing router, Mac, or iOS device an IP address of 169.254.xxx.xxx, contact the ISP support staff and ask for a proper IP address to access the Internet.
- If the DHCP server has been configured to issue an IP address of 169.254.xxx.xxx, contact the administrator of the DHCP server and ask that they issue a proper IP address to access the Internet, such as what is issued by an AirPort base station in default configuration (10.0.1.25 or similar). A DHCP server should not be issuing an IP address of 169.254.xxx.xxx.
- If you have manually configured your Mac or device with an IP address of 169.254.xxx.xxx, reconfigure your device to use a proper IP address to access the Internet.
Additional Information
The 169.254.xxx.xxx IP address space is reserved for self-assigning or link-local IP addresses. They are used when your device is not connected to any network at all or a network that has no DHCP server, so that devices can assign their own IP address. When these devices use Bonjour, they can create their own DNS name resolution on the network. This is useful when you are connected to a network that is completely isolated; you will be able to network to other devices and even see their share names and Bonjour advertised services.
RFC 3927 covers the details of this IP address space. Section 1.6 covers the "Alternate Use Prohibition" of this IP space.
Note: In certain situations, a computer or wireless device may create an ad-hoc Wi-Fi network for setup or file sharing purposes. These Wi-Fi networks do not typically provide Internet connectivity. Common network names for some ad-hoc networks may include "Free Public WiFi", "HP Setup", or "default".
比較啰嗦,簡單說下我是如何做的,首先我的網絡是PPPoE撥號的。
- 連接上網絡.
- 選擇 系統偏好設置 --> 網絡 --> 點擊WiFi(如果WiFi是關閉狀態先打開) --> 高級 --> 點擊 TCP/IP 選項卡,在“配置IPv4”選項里選擇“使用DHCP(手動設定地址)”
- 這時在第二行“IPv4地址” 填入“192.168.88.239”,當然,這個IP地址你自己設定,不一定要和我的相同。單擊“好”,單擊“應用”。
- 回到 系統偏好設置 --> 共享 --> 互聯網共享 --> 共享以下來源的連接, 選擇PPPoE(當然看你的網絡而定),然后下面的的“用以下端口共享給電腦”,勾選WiFi(你也可以使用其他端口,這里只是舉例)。當然,如果你想給WiFi加個密碼什么的,可以選擇Wi-Fi后點擊右下角的“Wi-Fi選項..”來設置。
- 然后,把左邊的“互聯網共享”勾選上就可以了。(回去 系統偏好設置 --> 網絡,看看WiFi是不是已經變為綠色了,狀態為“已連接”,原本的“Wi-Fi有自分配的....”已經變為““Wi-Fi”已連接至....”)
- 最后,拿你的設備搜索你的WiFi連接進來就可以了。