• 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: Activating/deactivating a network interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Activating/deactivating a network interface


  • Subject: Re: Activating/deactivating a network interface
  • From: Jérome Foucher <email@hidden>
  • Date: Fri, 6 Feb 2004 16:52:47 +0100

On 6 fivr. 04, at 16:40, Justin Walker wrote:

Since you can use 'ifconfig', it appears you are using shell scripts of some sort. You can also try 'scselect', which is a command-line tool that lets you switch 'locations'. Define a "disconnected" location that disables the ports you want turned off. Then you can use scselect to switch between your "active" location and "disconnected". Using 'scselect' will keep things working as you expect, since it is hooked into the same frameworks that MoreSCF would use.

A caveat: 'scselect' uses numerical keys to specify locations, so you have to be a bit careful in your script. 'scselect' with no arguments lists the choices, with numerical keys.

That's indeed a good solution.

Thanks
Jerome
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Activating/deactivating a network interface (From: Justin Walker <email@hidden>)

  • Prev by Date: Re: Activating/deactivating a network interface
  • Next by Date: Re: gethostname returns loginname on "Pather Server" version
  • Previous by thread: Re: Activating/deactivating a network interface
  • Next by thread: Re: Activating/deactivating a network interface
  • Index(es):
    • Date
    • Thread