MacBook won't pick up networking on ethernet

10

1

First a little network diagram;

We have an ADSL router (Standard home broadband Netgear. DHCP, DNS and firewall disabled), connected to a gigabit switch (unmanaged, it just sits there and works). From that switch we have (among other things) a wireless access point, an OS X server running DHCP, DNS, firewall and other network services, and two MacBook Pro's (OS X Lion).

+------------+             +---------------+
|  Internet  |-------------|  ADSL Router  |
+------------+             +---------------+
                                  |
                                  |
                                  |
                                  |
   +---------------+    +------------------+        +---------------+
   |  Wireless AP  |----|  Gigabit Switch  |--------|  OS X Server  |
   +---------------+    +------------------+        +---------------+
                             |        |
                             |        |
                             |        |
                             |        |
          +--------+         |        |
          |  MBP1  |---------+        |
          +--------+                  |
                                      |
                                      |
                                      |
                                      |
          +--------+                  |
          |  MBP2  |------------------+
          +--------+

(MBP = MacBook Pro)

MBP1 is quite happy, it has an Ethernet connection and has its wireless turned off. I've never had any problems with it. MBP2, however, will not work at all on the Ethernet network. If I disconnect the Ethernet and connect to the wireless AP, it picks up DHCP and will browse exactly as it should, but even though it's directly connected to the same switch as the AP, it just sits there saying

No IP

I've tried going to Advanced->Renew DHCP Lease, I've tried setting the settings manually, but it just won't pick up the network.

Connecting to other Ethernet networks works fine, and both MBP's were bought at exactly the same time, have exactly the same spec and have had exactly the same things done to them. I've swapped Ethernet cables, ports on the switch, tried plugging it into the ADSL router, tried plugging it into the Ethernet ports on the wireless AP, it just won't work on Ethernet.

I'm at a complete loss, how would I even start to go about debugging this? Connected to Ethernet, even with a manual address, it can't ping anything (except 127.0.0.1).

Update

As suggested, I have re-installed OSX, and taken it to Apple Store, but since it's working fine on every other network we've tested Apple don't think it's a hardware fault. I've tried swapping the switch to an older 100Mb switch, same issue. However if I plug it into the back of the ADSL router it picks up an IP/DNS settings from DHCP and works fine (I've confirmed in the network settings that the DHCP was picked up from the OS X server not the ADSL router/anywhere else, even though it has DHCP and DNS disabled I wanted to make sure). I can connect to all the other clients on the network (Picking up network drives and Time Machine from the OS/X server, connecting to management on the AP etc.).

It's clearly something to do with the network but I'm not sure what, having tried different switches and Ethernet cables. I have full access to the network and server so I'm willing to do/try pretty much anything.

I'm not ruling out personal insanity, given the situation

Smudge

Posted 2012-01-02T16:37:36.987

Reputation: 593

7well written, researched, and illustrated. +1 :) – studiohack – 2012-01-02T17:15:00.417

1Try increasing the log level for the DHCP service, and see what it shows when you connect the MBP. For a successful DHCP interaction, you should see a DISCOVER from the client, an OFFER from the server, a REQUEST from the server, and an ACK from the client. (Note that when renewing an existing lease the DISCOVER and OFFER steps are skipped, but that's not relevant here.) Knowing which steps happen may give a better idea where the problem is. – Gordon Davisson – 2012-01-02T20:04:01.480

@GordonDavisson Absolutely nothing in the DHCP log when I connect and disconnect the client. Though I assume this is caused by the same issue I'm encountering with a static address, complete inability to recognize a network connection past the end of the cable. – Smudge – 2012-01-03T08:56:35.657

When testing MBP2 in the Apple Store, have you used a Gigabit Switch? – harrymc – 2012-01-05T17:17:24.293

@harrymc Yes, tried with a gigabit switch and a 100mb switch, both working fine – Smudge – 2012-01-05T17:20:29.763

Does MBP2 work when it is alone on your network (thru the switch) ? If yes, then there is some conflict. – harrymc – 2012-01-05T20:12:35.043

@harrymc No. I've tried disconnecting everything except the Mac Server (For DHCP). I've also tried disconnecting everything and using a static IP. Still won't work unless it's in the back of the ADSL router or on Wifi. I've also replaced the ethernet cable between the switch and the router – Smudge – 2012-01-06T09:35:03.587

When using static IP, did you also disconnect the Mac Server? It might be a worthwhile test. I mean disconnect everything like unplugging all ethernet cables, not like turning computers off. – harrymc – 2012-01-06T12:19:05.087

@harrymc Yes, have tried with just the MBP2, switch and router. It just seems crazy that two identical Macs won't work in the same environment. – Smudge – 2012-01-06T13:23:39.210

@sam When you go to Preferences -> Network -> Ethernet -> Advanced -> Hardware, is Configure set to Automatically? If not, what are the other settings set to? – Marvin Pinto – 2012-01-07T01:13:38.640

@sam Also this is going to sound kind of silly but can you make sure no-other machine in your network is using the same MAC address as MBP2. Two machines with the same MAC address will never work on a network (second one will always get kicked off). Might be worth a shot. – Marvin Pinto – 2012-01-07T15:07:07.677

@sam you said that mbp2 works plugged directly into the router if that is the case how is it getting its IP if dhcp is off. Also is your router set to direct dhcp traffic to the osx server? in your settings can you force mbp2 to get its ip from the server via ip address. – nhutto – 2012-01-11T20:59:44.183

Just to confirm that 1.) Your DHCP service setup only on the router, 2.) that you have respective link lights when your MBP2 is plugged into the switch 3.) That even a static IP configuration doesn't work 4.) you have tried a know good ethernet cable. – David – 2014-04-18T20:41:54.807

Answers

2

As you have tested MBP2 in another network and it worked well, and as MBP1 works without issues, it might just be that your switch is a bit off and MBP2 too, so that together they simply do not get along but still work fine with other partners.

One possible test might is to try another switch, loaned from a friend or a shop, and see if this solves the problem. If it does, then the switch is the problem.

Another test is to use a USB network card on MBP2. If this solves the problem, you might be able to force Apple Store to replace your MBP2 card, or stay with the solution of the USB card.

harrymc

Posted 2012-01-02T16:37:36.987

Reputation: 306 093

I have tried replacing the switch with a different (100Mb/s) switch with the same issue. I'll grab a USB card and test that out. – Smudge – 2012-01-06T15:31:04.133

USB card worked, spoke to Apple and they're going to replace the network card. – Smudge – 2012-01-07T14:29:36.430

Another thing I was gonna suggest (just in case it didn't work) was to connect MBP2 to the same cable as MBP1 and see if it works there – Canadian Luke – 2012-01-11T21:59:25.430

@Luke: It says he did that. – harrymc – 2012-01-12T06:42:04.367

2

I've seen Ethernet interfaces begin having hardware failures by failing to establish link with some switches, especially at gigabit speed. When plugging my last MBP into the Cisco GigE switch at work (which it had worked with for years), it would keep cycling link up and down until I manually configured it for 100/Full. Leaving it set for full autonegotiation would work with other switches, especially 10/100 switches.

See if manually configuring your failing MBP's Ethernet speed/duplex settings for 100/Full fixes the problem connecting to the GigE switch.

If you can't get any connectivity over Ethernet and if a clean reinstall of Mac OS X doesn't fix it, then you have a hardware failure that needs repair.

Spiff

Posted 2012-01-02T16:37:36.987

Reputation: 84 656

Tried manual hardware settings, no difference. I took it into Apple store but because they tested on their Ethernet network and it worked fine they say there is no fault. I'll try a re-install now and get back to you – Smudge – 2012-01-02T19:08:56.260

Reinstall did nothing, same error =( – Smudge – 2012-01-03T08:50:23.887

@sam Get thee to the Genius Bar! – Spiff – 2012-01-03T09:02:21.247

0

From the information that you have provided I would suggest the problem lies with your router not with the MacBook.

Have you tried a complete factory reset of the router?.. If its a standard netgear configuration you will want to go to http://192.168.0.1

username: admin & password: password

locate the factory reset button somewhere within the administration panel. (alternatively Press and hold the Default Reset button until the power light blinks on (about 10 seconds))

You will then need to wait for the router to settle before re-entering your ISP login information to re-connect to the internet. (or running through the setup wizard)

edit: if other people have access to your configuration they may have blocked the mac address of your MBP that won't connect.. you will be able to find this in the netgear configuration too. you can also set a new admin password to prevent unauthorised access.

Wez

Posted 2012-01-02T16:37:36.987

Reputation: 186

1The router does nothing other than connect to the internet. I'm not resetting the entire network for one misbehaving client – Smudge – 2012-01-02T19:06:56.637

From your diagram it looks as though your router is providing IP Adresses to the rest of the network. is this correct? – Wez – 2012-01-02T19:16:14.007

No, as described in the question we have an OS X server running DHCP, DHCP on the router is disabled – Smudge – 2012-01-03T08:50:58.567

0

Manually configure MBP2 with an IP address in whatever subnet MBP2 and the server share (probably 192.168.x.x).

On MBP2, with no other network activity going on, open the Terminal and type "sudo tcpdump". This will show you all networking that can be seen (if any).

On MBP1, open Terminal and type "ping 192.168.x.x" where x.x is the address you set for MBP2. Does any activity at all show up on MBP2? If so, then ethernet has basic functionality and the problem is with routing. If nothing shows up on MBP2, then it is more likely a hardware or an MBP2 configuration issue.

Seth Noble

Posted 2012-01-02T16:37:36.987

Reputation: 956