|
|
Network connection
|
|
|
|
Junior Member
Join Date: Nov 2002
Location: Sweden
Status:
Offline
|
|
Hi,
I was wondering if anybody could tell me how to bring up and down the ethernet connection from the terminal. I am receiving IP from my router, dhcp.
Thanx in advance
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Nov 2002
Location: Sweden
Status:
Offline
|
|
btw
$ sudo ifconfig en0 down - seems to work
$ sudo ifconfig en0 up - does not work
cheers
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally posted by callefoss:
btw
$ sudo ifconfig en0 down - seems to work
$ sudo ifconfig en0 up - does not work
cheers
I was going to suggest using ifconfig en0 down as well but, like you, I can never get "up" to bring the interface back up. So what DO you do to bring the interface back up?
|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
|
|
|
|
|
|
|
Junior Member
Join Date: Nov 2002
Location: Sweden
Status:
Offline
|
|
Found some stuff that I have not tried yet my self, but it should work.
"sudo ipconfig set en0 DHCP" - to bring it up
Or
restarting the network interface with:
"sudo SystemStarter restart Network"
I cannot try this my self until tomorrow, so let me know if it works.
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status:
Offline
|
|
I don't believe this is limited to OS X Server... check out the "networksetup" command.
This should be:
sudo networksetup -setnetworkserviceenabled "Built-in Ethernet" on
sudo networksetup -setnetworkserviceenabled "Built-in Ethernet" off
|
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
|
|
|
|
|
|
|
Junior Member
Join Date: Nov 2002
Location: Sweden
Status:
Offline
|
|
Thanxs, but the networksetup command does not seem to work with client OS, at least not for me.
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Nov 2002
Location: Sweden
Status:
Offline
|
|
Anyway, I use the command "sudo ipconfig set en0 NONE" to bring it down and "sudo ipconfig set en0 DHCP" to bring it back up again.
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status:
Offline
|
|
Originally posted by callefoss:
Thanxs, but the networksetup command does not seem to work with client OS, at least not for me.
BTW, on my machine, it's in /usr/sbin which is in root's $PATH, but not in other users' $PATH. I also seem to recall reading somewhere else that some of these utilities are installed on OS X Client with ARD Client 2.0 (which is a free download, apparently).
|
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally posted by Detrius:
BTW, on my machine, it's in /usr/sbin which is in root's $PATH, but not in other users' $PATH. I also seem to recall reading somewhere else that some of these utilities are installed on OS X Client with ARD Client 2.0 (which is a free download, apparently).
Uh, /usr/sbin is in everyone's $PATH by default, I think. And it certainly isn't included with OS X Client by default, and the OS X Server version requires OS X Server. I get the following message when trying to run it:
Code:
gonzales:/Volumes/server/usr/sbin finlay$ ./networksetup
This tool only runs on Mac OS X Server... exiting.
gonzales:/Volumes/server/usr/sbin finlay$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.3.7
BuildVersion: 7S215
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status:
Offline
|
|
Originally posted by Angus_D:
Uh, /usr/sbin is in everyone's $PATH by default, I think. And it certainly isn't included with OS X Client by default, and the OS X Server version requires OS X Server. I get the following message when trying to run it:
Code:
gonzales:/Volumes/server/usr/sbin finlay$ ./networksetup
This tool only runs on Mac OS X Server... exiting.
gonzales:/Volumes/server/usr/sbin finlay$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.3.7
BuildVersion: 7S215
Crap... here I go spreading bad information again. [bad]BTW, Apple's going to ditch the G5 for the Pentium 4.[/bad]
|
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
|
|
|
|
|
|
|
Mac Enthusiast
Join Date: Sep 2000
Location: France
Status:
Offline
|
|
According to macosxhints.com, this tool comes with the free Apple Remote Desktop Client.
edit : oops, that's already been said in this thread. at least now you have the link
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|