• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: quick question on renewing DHCP programmatically and command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quick question on renewing DHCP programmatically and command line


  • Subject: Re: quick question on renewing DHCP programmatically and command line
  • From: Kenneth P Hough <email@hidden>
  • Date: Fri, 25 Apr 2008 22:38:05 -0400

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:
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:
This email sent to email@hidden


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

  • Prev by Date: quick question on renewing DHCP programmatically and command line
  • Next by Date: Re: quick question on renewing DHCP programmatically and command line
  • Previous by thread: quick question on renewing DHCP programmatically and command line
  • Next by thread: Re: quick question on renewing DHCP programmatically and command line
  • Index(es):
    • Date
    • Thread