Command to reconnect to Ethernet?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

Command to reconnect to Ethernet?

#1 Post by Subito Piano »

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.

User avatar
jplt3
Posts: 118
Joined: Mon 08 Apr 2019, 20:40
Location: Planet Earth

#2 Post by jplt3 »

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

To activated your connection via ethernet(eth0,...) or wifi(wlan0,...)

Code: Select all

List of all interfaces : ifconfig -a 

Code: Select all

Activate the ethernet connection : ifconfig eth0 up 

Code: Select all

Desactivate the ethernet connection : ifconfig eth0 down 
All same for wifi change eth0 by the interface wlan0,wlan1,....
JpLt

User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#3 Post by Subito Piano »

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. :D
[color=green]"God is love" - [url=https://www.esv.org/1+John+4/]I John 4:12[/url][/color]
ðŸ￾§ ðŸ￾§ ðŸ￾§ Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! :D
(A/V Linux for live digital synth needs)

Post Reply