Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've looked around the net for two days, but no solution found, therefor I ask my question here:

I'd like to connect my WD MyBook NAS to my MacBook. I've reconfigure the NAS to use a static IP ( instead of DHCP. I use the IP range 10.146.45.x for all of my devices. The MacBook is connected via WLAN (, en1) to my home network, namely to the internet router ( I like to connect the MacBook and the NAS directly via ethernet cable due to performance reasons via the following steps:

1) I deactivate AirPort at the MacBook 2) I've manually add the direct route from the macbook, via ethernet cable device, to the NAS:

route -n add -host -interface en0

result) The NAS became available (ping, smb), fine I thought.

remark) at this time, the wlan router (and the whole internet) aren't available ... of course :-)

Then I activate the AirPort again, the router becomes available again (and the internet) but the NAS isn't available any more. There is a routing problem and I can't solve it. Here is my routing table (via netstat -rn)

default          UGSc          123        2     en1
default            link#4             UCSI            0        0     en0
10.146.45/24       link#5             UCS             4        0     en1
10.146.45/24       link#4             UCSI            0        0     en0        0:30:bf:1:cd:62    UHLWI         134      595     en1   1195          UHS             0      229     lo0       d4:9a:20:b8:4b:d8  UHLS            0        2     en0          UHS             0        0     lo0      ff:ff:ff:ff:ff:ff  UHLWbI          0       14     en1
127                UCS             0        0     lo0          UH              4     1004     lo0
169.254            link#5             UCS             0        0     en1

I flush the routes and reboot several times ... no success. I switch the order of the network services in the system configuration ... no success.

What's wrong with my configuration ?

Thanks in advance Dominik

share|improve this question
up vote 0 down vote accepted

I strongly suspect that the problem here is that you have

 10.146.45/24       link#5             UCS             4        0     en1
 10.146.45/24       link#4             UCSI            0        0     en0

Which is claiming that 10.146.45.* is reachable over BOTH en1 and en0, and I'm guessing that OSX is picking the first one because it's first in the list. Naturally if you get it to change the order so en0 has priority, the internet will stop working.

The Right Thing To Do is to make en0 a completely different network with completely different addresses (I vote 10.146.46.*) instead of trying to pretend that it's the same network.

Otherwise, change the netmask on en0 to (using the .62 address) This will make the en0 network be which will be more specific than the 10.146.45/24 network and should therefore be used for addresses from (don't allow the DHCP server to issue those addresses on the real network)

share|improve this answer

Ok so.. by the looks of things.. en1

default          UGSc          123        2     en1
is your default Gateway

Your route to your device is going down.. en0       d4:9a:20:b8:4b:d8  UHLS            0        2     en0

Remove the route from the table using

route -n delete -host

This might work.. i hope :D

share|improve this answer
possible check the same on your other devices.. Can other devices ping the NAS.. or is it only your Mac? – Arenstar Nov 10 '10 at 21:28
the default gateway mentioned above is the WLAN based route to the internet, so it's necessary to stay connected and can't be deleted. – Dominik Nov 10 '10 at 21:58
Only the Mac should ping the NAS – Dominik Nov 10 '10 at 21:59
Ok im confused to what you want :P – Arenstar Nov 10 '10 at 22:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.