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.
Command to reconnect to Ethernet?
- Subito Piano
- Posts: 731
- Joined: Mon 28 May 2007, 03:12
- Location: UPSTATE New York
- Contact:
Hello , this post is quiet old ! but it can help someone :
To activated your connection via ethernet(eth0,...) or wifi(wlan0,...)
All same for wifi change eth0 by the interface wlan0,wlan1,....
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
JpLt
- Subito Piano
- Posts: 731
- Joined: Mon 28 May 2007, 03:12
- Location: UPSTATE New York
- Contact:
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.
[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)
🧠🧠🧠Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! :D
(A/V Linux for live digital synth needs)