Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quick question on renewing DHCP programmatically and command line



It seems right except for the device name. It should be something like "Built-In Ethernet".
sudo networksetup -setdhcp device_name [client_id]
Where client_id is optional and specifying Empty will clear the dhcp client ids.
So for example:
sudo networksetup -setdhcp "Built-In Ethernet"
Do not use hardware name, it the network service name, essentially the same as the device names visible in preferences.


Hope this helps.

Best Regards,
Kenneth

Sent from my iPhone

On Apr 25, 2008, at 6:01 PM, Jaime Magiera <email@hidden> wrote:

Hello,

I'm assuming System Configuration Framework is the best way programmatically. What is the Apple preferred method for restarting DHCP on a client via the command line? There's ifconfig, but I'm thinking moving forward, Apple would suggest scutil or networksetup. I can't figure out scutil, but neworksetup seems it would be something like...

sudo networksetup -setdhcp interface id

thanks for any info,

Jaime Magiera

Sensory Research
http://www.sensoryresearch.net

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >quick question on renewing DHCP programmatically and command line (From: Jaime Magiera <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.