Forrest logo
back to the ip tool

ip:tldr:da0b6

ip: Make an interface up/down.
$ ip link set ${interface} up/down
try on your machine

The command "ip link set ${interface} up/down" is used to bring a network interface up or down in a Linux system.

Here's a breakdown of the command:

  • "ip" is the command-line utility for configuring network interfaces and routing tables in Linux.
  • "link" refers to the network link layer, which deals with the physical and data link layers of the network stack.
  • "set" is used to modify or configure a specific attribute of a network interface.
  • "${interface}" is a placeholder for the name of the network interface you want to bring up or down. You should replace it with the actual interface name (e.g., eth0, wlan0, enp0s3, etc.). For example, "ip link set eth0 up" to bring up the interface named eth0.
  • "up/down" specifies whether you want to bring the interface up or down. "up" means to activate the interface, allowing it to send and receive network traffic. "down" means to deactivate the interface, disabling its network capabilities.

Overall, the command allows you to enable or disable a specific network interface on your Linux system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ip tool