Skip to main content
Question

Network setiup

  • August 1, 2011
  • 4 replies
  • 16 views

Has anyone ever configured network settings with Casper or know of a script?
Jade

4 replies

  • August 1, 2011

You can script a lot of parameters with "networksetup". The resource kit has a couple of baked scripts for various network settings that may already meet your needs. What specifically are you looking to configure?

-Charlie

-------------------------------------
Charlie Smith
Desktop Engineer
Information Services Department (ISD)
MIT Lincoln Laboratory
244 Wood St. Lexington, MA 02420
Phone: 781.981.0854
-------------------------------------


bentoms
Forum|alt.badge.img+35
  • Hall of Fame
  • August 1, 2011

For example.. I create images with just Ethernet 1 created. I've a script that finds the rest & enables.

Only recently posted: http://macmule.com/2011/07/28/how-to-enable-all-disabled-network-services/

Regards,

Ben.


Forum|alt.badge.img+7
  • Employee
  • August 1, 2011

Forum|alt.badge.img+31
  • Honored Contributor
  • August 2, 2011

Here is a snip from my post image script that sets a few things

# # Now set some network preferences #

# require admin rights for ad_hoc creation

/usr/libexec/airportd en1 -ibss_admin 1

/bin/echo "adhoc networks require admin set"

# ensure that airport and ethernet are set to DHCP & set IPv6 off

/usr/sbin/networksetup -setv6off Ethernet

/usr/sbin/networksetup -setv6off Airport

/usr/sbin/networksetup -setdhcp Ethernet

/usr/sbin/networksetup -setdhcp Airport

# enable remote log in, ssh

/usr/sbin/systemsetup -setremotelogin on

# enforce clear text passwords in AFP

/usr/bin/defaults write com.apple.AppleShareClient "afp_cleartext_allow" 1

/bin/echo "network configuration complete"