Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 03 Jul 2020, 09:20
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Command to reconnect to Ethernet?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
Subito Piano


Joined: 27 May 2007
Posts: 736
Location: UPSTATE New York

PostPosted: Tue 22 Mar 2016, 23:45    Post subject:  Command to reconnect to Ethernet?  

Hi all...i am writing a script and need to know the command to restart the (wired) network. I've searched, and though i'm in TahrPup, the usual Debian commands don't seem to work. I found networkdisconnect in a subfolder of /etc, so i can use that to disconnect, but found no "networkreconnect" (or whatever it would be called) to reconnect.

Thanks in advance.
Back to top
View user's profile Send private message Visit poster's website 
jplt3


Joined: 08 Apr 2019
Posts: 114
Location: Planet Earth

PostPosted: Sun 19 Jan 2020, 06:11    Post subject:  

Hello , this post is quiet old ! but it can help someone :

To activated your connection via ethernet(eth0,...) or wifi(wlan0,...)
Code:
List of all interfaces : ifconfig -a


Code:
Activate the ethernet connection : ifconfig eth0 up



Code:
Desactivate the ethernet connection : ifconfig eth0 down


All same for wifi change eth0 by the interface wlan0,wlan1,....

_________________
JpLt
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 736
Location: UPSTATE New York

PostPosted: Sun 19 Jan 2020, 15:02    Post subject:  

Thanks, jplt3! I will make a note of that for the future, plus as you mentioned, now the answer is here for anyone else who may need it. Very Happy
_________________
"God is love" - I John 4:12
🐧 🐧 🐧 Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! Very Happy
(A/V Linux for live digital synth needs)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0589s ][ Queries: 12 (0.0231s) ][ GZIP on ]