Managing Network Datalinks in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Creating a Bridge

In Oracle Solaris, use the dladm command and the SMF feature to administer bridges. You can use SMF commands to enable, disable, and monitor bridge instances by using the fault-managed resource identifier (FMRI) of the instance, svc:/network/bridge. You can use the dladm command to create or destroy bridges, and to assign links to bridges or to remove links from them. 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.

The dladm create-bridge command creates a bridge instance and optionally assigns one or more network links to the new bridge. Because no bridge instances are present on the system by default, Oracle Solaris does not create bridges between network links by default.

To create a bridge, use the following command:

# dladm create-bridge [–P protect] [–p priority] [–d forward-delay] [–l link...] bridge-name
–P protect

Specifies the protection method. It can be set to one of the following values.

  • stp – STP protection method (the default)

  • trill – TRILL protection method

–p priority

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.

–d forward-delay

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.

–l link

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 (1M) man page.

Example 4-1  Creating a Bridge

The 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

The following example shows how to create the westminister bridge by connecting the net0 and net1 links.

# dladm create-bridge -P trill -l net0 -l net1 westminister
# dladm show-bridge
BRIDGE       PROTECT ADDRESS           PRIORITY DESROOT
goldengate   stp     32768/8:0:20:bf:f 32768    8192/0:d0:0:76:14:38
westminister trill   32768/8:0:20:e5:8 32768    8192/0:d0:0:76:14:38