In Oracle Solaris, use the dladm command and the SMF feature to administer bridges. The SMF commands enable, disable, and monitor bridge instances by using the fault-managed resource identifier (FMRI) of the instance, svc:/network/bridge. The dladm command creates or destroys bridges, and assigns links to bridges or removes those links. The links that are assigned to the bridge must be an Ethernet type, which includes 802.3 and 802.11 media.
To create a bridge between links, you must create at least one bridge instance. Each bridge instance is separate. Bridges do not include a forwarding connection between them, and a link is a member of a maximum of one bridge.
To create a bridge, use the following command:
$ dladm create-bridge [-P protect] [-p priority] \ [-d forward-delay] [-l link...] \ bridge-name
Specifies the protection method. It can be set to one of the following values.
stp – STP protection method (the default)
trill – TRILL protection method
Specifies an IEEE STP priority value for a bridge to determine the root bridge node in the network. The default value is 32768. Valid values are from 0 (highest priority) to 61440 (lowest priority), in increments of 4096.
Specifies the STP forward delay parameter for the bridge. When the bridge that is created is the root node, all the bridges in the network use this timer to sequence the link states when a port is enabled. The default value is 15 seconds. Valid values are from 4 to 30 seconds.
Adds a link to the bridge. If any of the specified links cannot be added, the command fails and the bridge is not created.
bridge-name is an arbitrary string that must be a legal SMF service instance name. This name is an FMRI component that has no escape sequences, which means that white space, ASCII control characters, and the following characters cannot be present:
; / ? : @ & = + $ , % < > # "
The name default and all names beginning with the SUNW string are reserved. Names that have trailing digits are reserved for the creation of observability devices, which are used for debugging. Because of the use of observability devices, the names of legal bridge instances are further constrained to be a legal dlpi name. The name must begin and end with an alphabetic character or an underscore character. The rest of the name can contain alphanumeric and underscore characters.
For more information about bridge creation options, see the description of the dladm create-bridge command in the dladm(8) man page.
Example 27 Creating a BridgeThe following example shows how to create the brooklyn bridge by connecting the net0 and net1 links.
$ dladm create-bridge -P stp -d 12 -l net0 -l net1 brooklyn $ dladm show-bridge BRIDGE PROTECT ADDRESS PRIORITY DESROOT goldengate stp 32768/8:0:20:bf:f 32768 8192/0:d0:0:76:14:38 brooklyn stp 32768/8:0:20:e5:8 32768 8192/0:d0:0:76:14:38