Am I Using LAN or Wifi?

Discussion in 'Mac Basics and Help' started by kevhui, Dec 27, 2008.

  1. kevhui macrumors regular

    Joined:
    Apr 24, 2008
    #1
    Hi,

    My iMac is connected to a router, and also Airport Express thru the same router. Just wonder when a open a web browser, which interface am I using?


    Thanks.
     
  2. tyr2 macrumors 6502a

    tyr2

    Joined:
    May 6, 2006
    Location:
    Leeds, UK
    #2
    Go into 'Network' in System Preferences. You should see your 'Built-in-Ethernet' and 'AirPort' connections in the list on the left with green lights.

    Whichever is at the top is the default interface. To change it click the cog and select 'Set Service Order' then you can drag them around into the preferred order, then click 'Apply' to active the changes.

    You can check this in the terminal by looking at the default route for connections. Do this
    Code:
    $ netstat -rn | grep default
    default            192.168.0.1        UGSc       51     8574    en2
    
    In this example 192.168.0.1 is the router and the last field indicates the interface being used. In this case 'en2' is the wireless card on this machine.
     
  3. kevhui thread starter macrumors regular

    Joined:
    Apr 24, 2008

Share This Page