Forrest logo
back to the brctl tool

brctl:tldr:596a5

brctl: Add an interface to an existing bridge.
$ sudo brctl addif ${bridge_name} ${interface_name}
try on your machine

This command is used to add a network interface to a specified bridge in a Linux operating system. Here's a breakdown of each component:

  • sudo: The sudo command stands for "superuser do" and allows the user to execute the following command with administrative privileges. It is often used when a command requires root user permissions.

  • brctl: brctl is a command-line utility in Linux used for configuring Ethernet bridge connections. It allows the user to create, manage, and delete bridge interfaces.

  • addif: addif is an option or sub-command in brctl that is used to add a network interface to a bridge.

  • ${bridge_name}: This is a placeholder for the name of the bridge to which the network interface will be added. Replace ${bridge_name} with the actual name of the bridge.

  • ${interface_name}: This is also a placeholder, representing the name of the network interface that you want to add to the bridge. Replace ${interface_name} with the actual name of the interface.

Overall, the command is used to add a network interface (${interface_name}) to a bridge (${bridge_name}) by using the brctl command with the addif option.

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 brctl tool