Brctl Command
Bridges
View
To view the current bridges, use the following command on a SSH/Telnet terminal:
|
|
The command will then output a bridge name (Often br0 or br1), bridge ID (Used to uniquely specify the bridge), and the current settings for STP (Spanning Tree Protocol). The output wil be formated similar to this:
|
|
Add
A bridge can be added using the following command, with being replaced with the name of the bridge being replaced.
|
|
Delete
Where name is the user specified name of the bridge. To delete a bridge, one would use
brctl delbr
Interfaces
Although the preceding commands simply create an instance of a bridge, in order to use them, one must add interfaces to a bridge. The bridge “br0” is standard bridge on DD-WRT.
Show
In order to show the current interfaces that are members of a bridge, we use a command similar to the “show” command:
|
|
This would generate output similar to the following:
|
|
Here we can see that the bridge contains two members, eth1 and vlan0.
Add
To add a interface to a bridge, the command syntax is
|
|
Where is the existing bridge name, and ifname is the interface you want to add.
Remove
To remove a interface from a bridge, the syntax is very similar
brctl delif