• 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: How to Renew DHCP Lease
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Renew DHCP Lease


  • Subject: Re: How to Renew DHCP Lease
  • From: Eric Geoffroy <email@hidden>
  • Date: Mon, 18 Apr 2005 13:11:29 -0700

A great improvement.

The fw0 is the firewire network interface. There was an article in MacAddict on how to configure it.
lo0 I'm guessing is a loopback address.


- Eric

On Apr 18, 2005, at 11:36 AM, Sander Tekelenburg wrote:

At 10:38 -0700 UTC, on 2005/04/18, Eric Geoffroy wrote:

Or from 'do shell script as administrator...

sudo ifconfig en1 down ; sudo ifconfig en1 up

Assuming en1 is the interface you wish to target, of course. The script below
let's you choose from the available interfaces (and remembers the last
choice).


property choice : ""
set interfaces to every word of (do shell script "ifconfig -l")
set choice to (choose from list interfaces with prompt "pick a network
interface" default items choice)
if choice is not false then
set choice to item 1 of choice as text
do shell script "ifconfig " & choice & " down ; ifconfig " & choice & "
up" with administrator privileges
end if



Now how about an easy way to recognise which interface is which? en0 seems to
refer to the Ethernetcard (in machines that have only one). But on my
PowerBook ifconfig -l gets me lo0, gif0, stf0, en0, en1 and fw0.


I assume Airport and BlueTooth are in that list somewhere, but which is
which, and what are the others?


-- Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden



_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: How to Renew DHCP Lease (From: Brian <email@hidden>)
 >Re: How to Renew DHCP Lease (From: Eric Geoffroy <email@hidden>)
 >Re: How to Renew DHCP Lease (From: Sander Tekelenburg <email@hidden>)

  • Prev by Date: Re: shell equivalent to text 1 thru -9?
  • Next by Date: Re: shell equivalent to text 1 thru -9?
  • Previous by thread: Re: How to Renew DHCP Lease
  • Next by thread: Re: How to Renew DHCP Lease
  • Index(es):
    • Date
    • Thread