Which command to use to set to DHCP
Which command to use to set to DHCP
- Subject: Which command to use to set to DHCP
- From: email@hidden
- Date: Mon, 30 Sep 2002 17:08:01 EDT
In OS 9, I want to write a script that sets the user's networking
configuration to DHCP (for a DSL Router project I'm working on). It's
probably a one-line-command that I need, but I'm having trouble figuring out
what that "one line" is. The dictionary for TCP/IP & DHCP is immense. I
think I'm close, however. It appears that setting DHCP requires something
to do with the DHCP client string and configuration method. I got this
dictionary by dragging the Network Setup Scripting file into Script Editor.
Class TCPIP v4 configuration: A TCP/IP v4 configuration
Plural form:
TCPIP v4 configurations
Elements:
router address by numeric index, as a range of elements
name server address by numeric index, as a range of elements
search domain by numeric index, as a range of elements
Properties:
<Inheritance> configuration -- See the class bconfigurationb for
more properties
connecting via Ethernet/MacIP/PPP -- the port or connection method of
this configuration...
connecting via string -- ...or a port name (may be locked)
configuration method BootP/DHCP/MacIP manual/MacIP
server/manual/RARP/PPP server -- the configuration method of this
configuration (may be locked)
IP address string -- the IP address of this configuration (may be
locked)
subnet mask string -- the IP subnet mask of this configuration (may
be locked)
implicit search start string -- the implicit starting search domain
of this configuration (may be locked)
implicit search end string -- the implicit ending search domain of
this configuration (may be locked)
DHCP client ID string -- applies only if the configuration method is
DHCP (may be locked)
MacIP server zone string -- only applies if bconnecting viab is
MacIP (may be locked)
uses IEEE8023 boolean -- Does this configuration use the 802.3
protocol? (may be locked)
protocol TCPIP v4 [r/o] -- the protocol of this configuration (the
constant bTCPIP v4b)
administration password string -- the password of this configuration
(write only)
user mode basic/advanced/administration -- the user mode of this
configuration
Now I know I'm over my head here - - - I was hoping to find a command like
"set config to DHCP", but it appears that life is not quite that simple.
Anyone with networking experience know which commands I'd need to use here?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.