LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there a way to manually control an ethernet connection?? (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-a-way-to-manually-control-an-ethernet-connection-4175593740/)

cousinlucky 11-17-2016 01:12 PM

Is there a way to manually control an ethernet connection??
 
The os is PCLinuxOS 2014 and the ethernet automatically connects at boot. Is there some place or configuration to set it up manually?? Thanks!!

hazel 11-17-2016 01:25 PM

There are the ifup and ifdown commands for starting and stopping a connection. Most distros that use sysvinit have those scripts. The ifconfig and ip programs can be used beforehand to assign an address and a route to an interface. But why would you want to do that when it's so much more convenient to have it start automatically?

cousinlucky 11-17-2016 01:48 PM

It is nice that the ethernet starts automatically but I need a way to disconnect it besides just pulling the plug out of the back of my computer! As a computer illiterate I need some help with this please!

szboardstretcher 11-17-2016 01:56 PM

What is the output of:

Code:

ip a
Remove your IP address if needed. Just need to see the name of your active interface.

Emerson 11-17-2016 02:08 PM

Code:

ip link set <I/F> down
It should bring it down, replace down with up to bring it up.

szboardstretcher 11-17-2016 02:14 PM

There is also:

Code:

ifup <interface name>
ifdown <internface name>


cousinlucky 11-18-2016 01:06 AM

Thanks everyone!! As usual I had to re-install my os and then " configure the ethernet in the control panel" before starting the firewall! Thanks Again!!


All times are GMT -5. The time now is 06:40 AM.