Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Force Ethernet duplex settings on Startup' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Force Ethernet duplex settings on Startup
Authored by: iwiring on Mar 23, '06 03:16:55PM

You shouldn't be using ifconfig to change the NI options as this does not notify the system of the change. This is why it won't persist after a reboot. Additionally any network transition could also reset the NI options to what the system believes them to be.

On OS X NIs are managed by configd.

This is what networksetup, scutil and scselect is for, configuring changes and notifying configd. Use it instead of ifconfig to make NI changes. They will also make the proper changes to files like /System/Library/SystemConfiguration/NetworkInterfaces.plist and notify configd. Changes will persist after a reboot or network transition and eliminates the misguided need for a startup item.

It's one of those "OS X is not Linux" things.

# networksetup -setMedia <hardwareport or device name> <subtype> [option1] [option2] [...]

---
-dhan
---------------------
Dan Shoop
Systems & Networks Architect
iWiring / US Technical Services
shoop@iwiring.net



[ Reply to This | # ]
Force Ethernet duplex settings on Startup
Authored by: iwiring on Mar 23, '06 03:18:59PM

networksetup may be found at

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup



---
-dhan
---------------------
Dan Shoop
Systems & Networks Architect
iWiring / US Technical Services
shoop@iwiring.net



[ Reply to This | # ]