ncutil 3

User's Guide

Table of Contents

Chapters:

  1. Option Flags
  2. The Directory Tree
  3. Locations and Services
  4. A PPPoE Network Service
  5. Configuring a Service
  6. Running as a Shell

Quick Guides:

  1. Static-IP over Ethernet
From the ncutil man page:
Apple provides a network setup control panel with Mac OS X, but the open-source Darwin project has no such utility. While it is possible to use standard UNIX flat files to configure the network settings under Darwin, that OS also uses the SystemConfiguration framework to maintain the networking parameters. The Apple network control panel for Mac OS X uses the SystemConfiguration APIs to modify those preferences; ncutil was designed to do the same from a command-line interface.

A network service is a complete set of parameters that configure a single network interface: an IP address, gateway address, DNS server addresses, proxy parameters, etc form a complete configuration of an ethernet card, for instance. Services exist for ethernet, modem, FireWire, and wireless ports. Services are grouped into locations. A location contains one or more services, ranked in order of precedence: as ports come up or go down, alternate services may be configured in an attempt to keep network service uninterrupted.

ncutil behaves much like Apple's NetInfo command line utility, niutil, and the preferences are presented in the form of a directory tree. Preference entities are specified by directory IDs (numerical values assigned to each directory by ncutil) or by paths. The program in pseudo-shell mode maintains a current directory, which may be indicated using the '.' character. The '!' character references the directory last accessed by any command. You may use '..' and '.' directory entities to reference parent and current directories, respectively. In the context of some commands, the target directory may be an optional parameter, in which case the current directory is assumed.

The user must have root privileges if the changes he/she makes are to be committed to the preference store and/or applied.
Copyright © 2005 | Jeffrey T. Frey