Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

macpokerstars

macrumors regular
Original poster
Sep 29, 2010
101
1
Hi,

I have two computers in this setup: a Macbook Pro which is connected to internet through Wifi, and and iMac 2009 connected to the Macbook Pro through ethernet.

I want to receive internet on my iMac through the ethernet cable.

The internet sharing feature on Mac seems to be very random: one time it works with certain settings and the next time it won't work with exactly the sea settings.

Here are the settings that I have on the Ethernet interface, but it doesn't always work:

Macbook Pro (acting as the router):
Configure IPv4: Manually
IP Address: 192.168.2.1
Subnet Mask: 255.255.255.0
Router: -
DNS server: 8.8.8.8

iMac (acting as the client)
Configure IPv4: Manually
IP Address: 192.168.2.2
Subnet Mask: 255.255.255.0
Router: 192.168.2.1
DNS server: 8.8.8.8

Could you please tell me what is wrong? What is unnecessary in what I did?
I'm not sure what I'm doing so let me know why it's unnecessary.

By the way, I put 8.8.8.8 as the DNS server on both because at some point it did solve the problem when Internet was working but DNS was not.

Also, when I try to renew the DHCP lease, it sometimes comes up with some weird IP address like 169.254.191.49 and Subnet Mask: 255.255.0.0.

Why does it choose an IP like that instead of 192.168.2.1?!
It seems to behave erratically for no reason…


Thanks in advance
 
192.168.2.1 is your MacBook Pro's assigned IP from your wireless router. 169.254.191.49 is the iMac's IP assigned by your MacBook Pro.

You've set your MacBook Pro's DNS to an address that doesn't exist, so nothing will work, and you've set your iMac's IP address (manually) to 192.168.2.2 which isn't a valid lease so your MacBook Pro will shrug at your iMac's attempt at communication. You should let your iMac configure DHCP automatically, as well as your MacBook Pro. The 169 address your iMac had was correct, you just need to stop tinkering with DNS and the subnet mask. Let it do it automatically.
 
192.168.2.1 is your MacBook Pro's assigned IP from your wireless router. 169.254.191.49 is the iMac's IP assigned by your MacBook Pro.

You've set your MacBook Pro's DNS to an address that doesn't exist, so nothing will work, and you've set your iMac's IP address (manually) to 192.168.2.2 which isn't a valid lease so your MacBook Pro will shrug at your iMac's attempt at communication. You should let your iMac configure DHCP automatically, as well as your MacBook Pro. The 169 address your iMac had was correct, you just need to stop tinkering with DNS and the subnet mask. Let it do it automatically.

Hi there, thank you for your explanation.
Please note that these are the settings on the Ethernet interface.

But on the AirPort interface, the IP address that the router assigned the Macbook Pro is 192.168.0.11.

Regards
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.