...
To delete TAP and bridge interfaces, you can use the command ip link delete <interface-name>
.
Div | ||
---|---|---|
| ||
Basic Bridge Configuration Using nmcli
The following table shows a simple example of how to create a virtual bridge on Linux and how to add TAP interfaces to it using nmcli commands (NetworkManager command-line interface):
Step | Description |
---|---|
Gather information about the existing network configuration. | List all existing interfaces, their status and their MAC addresses: List all configured IP addresses and netmasks: List the routing table entries: |
If needed, create a new connection for the physical interface to be used with the bridge. |
|
If needed, create a bridge and set a static IP address for it. | # nmcli con add type bridge autoconnect yes \ mybr0 ifname mybr0 \ipv4.method manual ip4 <ipaddr/mask> stp off |
If needed, activate bridge. | # nmcli con up bridge-mybr0 |
If needed, add physical interface to bridge. | # nmcli conn modify <physical-int-conn> master mybr0 \ |
Activate changes to interface. | # nmcli conn up <physical-int-conn> |
...