Linux interacts with every network adapter through an operating system construct called "network interface." Network interfaces present a uniform set of primitives to applications that require network access, while hiding the details specific to the adapter's hardware and the configuration parameters for its driver. In particular, you can enable and disable an Ethernet card by running Linux commands that interact with the corresponding network interface.
Log into the Linux computer.
Launch a command shell. The specific way of performing this step depends on the Linux distribution and on how your machine has been configured. For example, for the default configuration of Ubuntu Linux, click on "Applications" on the taskbar at the top of the desktop, then select "Accesories," then select "Terminal."
Gain superuser privileges by typing "su" into the shell, then pressing "Enter." Enter the root password. If your Linux distribution does not have a "root" account enabled by default, type "sudo bash" and enter your own password when prompted.
Video of the Day
Type the following command into the shell:
Press "Enter." The command will list the network interfaces known to Linux. Find the one corresponding to the Ethernet card you need to enable or disable; its name will start with "eth."
Enable the Ethernet card by typing the following command into the shell:
ifconfig eth0 up
Replace "eth0" by the name of the network interface obtained in Step 4. Press "Enter."
Disable the Ethernet card by typing the following command into the shell:
ifconfig eth0 down
Replace "eth0" by the name of the network interface, obtained in Step 4. Press "Enter."