User`s guide
Network Setup Tool 45
Getting Network Configuration Information for Your Server
Use these parameters when you want to find out information about the network services set
up on a remote server:
networksetup -listnetworkserviceorder
Displays a list of network services in the order they are contacted for a connection, along
with the corresponding port and device for each. An asterisk (*) next to a service means the
service is inactive.
networksetup -listallnetworkservices
Displays a list of all network services. An asterisk (*) next to a service means the service
is inactive.
networksetup -listallhardwareports
Displays a list of hardware ports with corresponding device names and Ethernet addresses.
networksetup -detectnewhardware
Detects new network hardware and creates a default network service on the hardware.
networksetup -getinfo <network service>
Displays the IP address, subnet mask, router, and Ethernet address for a network service that
you specify.
Example command:
networksetup -getinfo "Built-in Ethernet"
Configuring TCP/IP Settings
You can use these Network Setup parameters to configure TCP/IP settings.
Set the TCP/IP Configuration to Manual
Use this command to specify a manual TCP/IP configuration for the network service.
-setmanual <network service> <ip address> <subnet mask> <router>
Example command:
networksetup -setmanual "Built-in Ethernet" 192.168.100.100
255.255.255.0 192.168.100.1
LL2133.book Page 45 Friday, May 24, 2002 11:17 AM