User`s guide

46 Chapter 5
Set the TCP/IP Configuration to DHCP
Use this command to set the TCP/IP configuration for the specified network service to use
DHCP. The client ID is optional.
-setdhcp <network service> [client id]
Example command:
networksetup -setdhcp "Built-in Ethernet"
Set the TCP/IP and DHCP Router to Manual
Use this command to specify a manual IP address to use for DHCP.
-setmanualwithdhcprouter <network service> <ip address>
Example command:
networksetup -setmanualwithdhcprouter "Built-in Ethernet"
192.167.100.100
Set BOOTP
Use this command to set the TCP/IP configuration for the specified network service to use
BOOTP.
-setbootp <network service>
Example command:
networksetup -setbootp "Built-in Ethernet"
Configuring DNS Servers and Search Domains
Use these parameters to specify how you want network services to use DNS.
Designate DNS Servers
Use this command to specify the IP addresses of servers you want the network service to use
to resolve domain names. You can list any number of servers (replace dns1, dns2, and so on
with the IP addresses of domain name servers).
-setdnsservers <network service> <dns1> [dns2] [...]
Example command:
networksetup -setdnsservers "Built-in Ethernet" 192.168.100.100
192.168.100.128
LL2133.book Page 46 Friday, May 24, 2002 11:17 AM