• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Create USB Ethernet Port Configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create USB Ethernet Port Configuration


  • Subject: Re: Create USB Ethernet Port Configuration
  • From: Terry Simons <email@hidden>
  • Date: Mon, 10 Mar 2008 04:18:46 -0600

A few thoughts:

If Mac OS X allocates interfaces like Linux, then I doubt there's a predictable way to determine the interface name for inserted devices (though Linux distros with udev can lock the device name against the MAC address automatically at boot time, but I'm not sure if Mac OS X has anything like that).

It's not even safe to make assumptions about built-in interfaces across multiple products. For instance, my Mac Pro's built-in AirPort Extreme card enumerates as en2, rather than the expected en1 on most systems.

It sounds like you're trying to key off of a well-known interface name for a USB device... but do you really want/need to lock a given USB ethernet adapter to a specific "en" name? What if two USB ethernet ports are plugged in?

Could you base your configurations off of MAC address, or at least partially do so? If you see a MAC that you previously had configuration for, but the "en" name is different, you could adjust your configurations appropriately. The MAC address uniquely identifies a card, so it seems like the better way to identify an instance of a NIC than to try to force the system to name it the way you want it named.

What about keying off of the OUI on the front of the MAC address for an interface OUI that you've seen before? Similar to the MAC address idea, but a little bit more device-generic... Still seems problematic if you ever need to handle the more-than-one USB interface case. Still, if all you really care about is "An Apple USB interface is present" this might be more flexible than trying to match on the MAC address. The only problem I can see here would be if you end up with overlap between built-in card OUIs and USB OUIs... but you could probably do some fiddling with ioreg output to figure out if a USB adapter is present on the system... and it's likely that OS X enumerates those after the built-in interfaces.

- Terry

On Mar 10, 2008, at 3:49 AM, Mark Thomas wrote:

Was wondering if anybody had any thoughts
Thanks
Mark.

------ Forwarded Message
From: Mark Thomas <email@hidden>
Date: Fri, 07 Mar 2008 00:11:21 +0000
To: "email@hidden" <email@hidden>
Conversation: Create USB Ethernet Port Configuration
Subject: Create USB Ethernet Port Configuration

Hi,
I presently have a network configurator which successfully creates/ setups
port configuration depending on what a particular user initially chooses for
their connection type, and that solution has proven to work well in it's
roll out.


How-ever in today's portable world, where a user's moved his machine
between numerous network configurations. The older configuration design
doesn't work so well, so I'm considering setting all the various available
ports. This design works fine, with one exception which is the USB/ Ethernet
bridge, as that only creates once a user has connected a USB cable its
router (or Ethernet adapter).


Is there a way to create this ahead of time, so for a particular USB
vendor/product id, You can choose/guess/know which Ethernet identifier it
chooses (e.g. en3, it usually is next in sequence, but how can you reserve
one for a USB device). This is also especially the case with MacBook Air
customers only have a USB for wired connection.


Thanks
Mark.

------ End of Forwarded Message


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re(2): Create USB Ethernet Port Configuration
      • From: "Peter Lovell" <email@hidden>
References: 
 >RE: Create USB Ethernet Port Configuration (From: Mark Thomas <email@hidden>)

  • Prev by Date: RE: Create USB Ethernet Port Configuration
  • Next by Date: Re(2): Create USB Ethernet Port Configuration
  • Previous by thread: RE: Create USB Ethernet Port Configuration
  • Next by thread: Re(2): Create USB Ethernet Port Configuration
  • Index(es):
    • Date
    • Thread