Results 1 to 7 of 7
  1. #1
    Two network interfaces, how separate them?

    Member Since
    Sep 11, 2009
    Posts
    2
    Two network interfaces, how separate them?
    Hi,

    I have two network interfaces in one location, both has internet access.

    One is throuth airport and another is throuth iPhone tethering.

    With airport interface i connect in my work lan, but the internet access provide by my company is very slow and so many websites is blocked.

    Then i want to use the airport interface only to access only 10.* address (intranet) and the iPhone tethering to access internet.

    How can i do this?

    * If i change order in interface list, putting first iPhone interface and later airpot, i can connect in internet but i can't connect in database, email smtp ..., services the is in my local network.

    * If i change order in interface list, putting first airpot and later iPhone interface, i can connect in internet by the company interface access using proxy and access all intranet services, but i can't use iPhone internet access.

    * My company use authentication proxy to internet access

  2. #2
    Two network interfaces, how separate them?

    Member Since
    Sep 11, 2009
    Posts
    2
    Hi, can i help me?

    I still don't fix this.

  3. #3
    Two network interfaces, how separate them?

    Member Since
    Apr 07, 2008
    Posts
    187
    Hi,
    interesting question.

    I think there must be some routing configuration done. Si that all the 10.0.0.0/8 traffic goes through the en1 interface, the rest through the tethered iface.

    Wait, what is the network mask of your company's network ?

    You could try:
    Code:
    route add -net 10.0.0.0/8 -interface en1 
    route add default -interface name_tether_iface
    I haven't tried it though and I will have a closer look at this when I'm home.

    Tex

  4. #4
    Two network interfaces, how separate them?

    Member Since
    Apr 07, 2008
    Posts
    187
    Hi,
    again. So here is what I did so that my iPhone is the "default" interface and my airport is used only for the networks 192.168.100.0/24 and 10.0.1.0/24

    I had my airport configured by DHCP and internet working.
    The I plugged the iPhone and enabled tethering.
    Open a root Terminal and display the configured routes

    Code:
    ~ root# netstat -rn -f inet
    Routing tables
    
    Internet:
    Destination        Gateway            Flags        Refs      Use   Netif Expire
    default            10.0.1.1           UGSc            3        0     en1
    default            192.168.20.1       UGScI           1        0     en2
    Here we can see that we have two default routes which is not good.
    The en1 interface is the Airport
    The en2 is the iphone.
    Note the default gateway of the iphone which is here 192.168.20.1

    Now let's delete both routes (I'm not sure if the flush command is really necessary):

    Code:
    ~ root# route delete  default 192.168.20.1
    ~ root# route delete  default 10.0.1.1
    ~ root# route flush
    And add again the default route through the iPhone

    Code:
    ~ root# route add default 192.168.20.1
    Now you should have a working internet connection.

    Let's add the route to the 192.168.100.0/24 and 10.0.1.0/24 networks:


    Code:
    ~ root# route add -net 192.168.100.1/24 10.0.1.1
    ~ root# route add -net 10.0.1/24 -interface en1
    I think the last command is not necessary because the en1 interface has an IP in the 10.0.1/24 network so it should find the way there. Note that for the 192... network, I also specify the gateway 10.0.1.1, which is the router needed to reach that network through the en1 interface.

    Hope it helps.

    Tex

  5. #5
    Two network interfaces, how separate them?
    Collin Bl's Avatar
    Member Since
    Apr 07, 2009
    Location
    Napier NZ
    Posts
    3,291
    Specs:
    27 iMac i5, MBP 13 & iMac 20, 2TB dual TC, AppleTV, iPh4S
    Hi Tex, have been reading thru your post and is there a digit missing in one of the addresses above? In last para should it be 10.0.1.1/24?

  6. #6
    Two network interfaces, how separate them?

    Member Since
    Apr 07, 2008
    Posts
    187
    Quote Originally Posted by Collin Bl View Post
    Hi Tex, have been reading thru your post and is there a digit missing in one of the addresses above? In last para should it be 10.0.1.1/24?
    Hi,
    since there is a 24-bit net mask, the last "digit" (8 bits) does not matter when you write the network address. But you're right, is is more clear to write the entire address 10.0.1.0/24 but in this case I prefer to write a 0

    Tex

  7. #7
    Two network interfaces, how separate them?
    Collin Bl's Avatar
    Member Since
    Apr 07, 2009
    Location
    Napier NZ
    Posts
    3,291
    Specs:
    27 iMac i5, MBP 13 & iMac 20, 2TB dual TC, AppleTV, iPh4S
    Thanks Tex - not an area i know much about, but your reply helps.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 09-05-2012, 11:37 AM
  2. What are the best audio interfaces
    By monew23 in forum Music, Audio, and Podcasting
    Replies: 1
    Last Post: 02-05-2011, 12:03 PM
  3. Poll: which of these 4 interfaces would you choose?
    By JDW3 in forum Music, Audio, and Podcasting
    Replies: 5
    Last Post: 04-21-2010, 02:17 PM
  4. Audio Interfaces
    By pasmart in forum Music, Audio, and Podcasting
    Replies: 3
    Last Post: 01-14-2009, 01:20 PM
  5. 2 interfaces, but only 1 can see beyond gateway
    By kidkaos in forum Internet, Networking, and Wireless
    Replies: 0
    Last Post: 05-07-2008, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •