T
T
try4tune2012-10-06 20:43:30
macOS
try4tune, 2012-10-06 20:43:30

Internet and LAN over different network connections in Mac OS X. How?

A Mac OS X computer is connected to 2 networks at the same time: via cable and via Wi-Fi. The Internet is available from both networks (different providers), but it is necessary that the computer uses the Internet only from the network via Wi-Fi, and the network via cable would have normal access to network resources.
How to set it up?
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
T
try4tune, 2012-10-07
@try4tune

I'll tell you how I decided. It's simple, the system itself does everything. It was necessary to make Wi-Fi connections a higher priority in the list of connections. And when it is connected, the Internet works through it. Network resources are available on both connections.

D
dvs, 2012-10-07
@dvs

You can assign static routes to local resources. route -n add xxx xxx
And then, when you connect to WiFi, the Internet will work through WiFi, and local resources through LAN.

B
Batonchik, 2012-10-06
@Batonchik

do not set the default gateway in the network card settings

V
Veldor, 2019-11-24
@veldor

Faced the same problem, a poppy in a corporate network from Windows machines with cable access, plus Wi-Fi Internet access. Wi-Fi network priority. Access by computer names on the local network without problems, it connects via IP only if you switch the network priority or turn off Wi-Fi.
I registered a static route sudo route -n add 10.4.0.4/24 10.5.0.254 , where 10.4.0.4 is the address of the desired machine, 10.5.0.254 is the corporate network gateway. Access granted, problem solved :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question