Managing Network Datalinks in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Setting Link Properties for a Bridge

You can set the following link properties for bridges:

default_tag

The default VLAN ID for untagged packets that are sent to a link and received from a link. The valid values are 0 to 4094. The default value is 1.

forward

Enables and disables traffic forwarding through the bridge. This property exists on all links except VNIC links. The valid values are 1 (true) and 0 (false). The default value is 1.

stp

Enables and disables STP and RSTP. Valid values are 1 (true) and 0 (false). The default value is 1, which enables STP and RSTP.

stp_cost

Represents the STP and RSTP cost values for using the link. Valid values are from 1 to 65535. The default value is 0, which is used to signal that cost is automatically computed by link type.

stp_edge

Specifies whether the port is connected to other bridges. Valid values are 1 (true) and 0 (false). The default value is 1.

stp_p2p

Specifies the connection mode type. Valid values are true, false, and auto. The default value is auto.

stp_priority

Sets the STP and RSTP port priority value. Valid values are from 0 to 255. The default value is 128.

For more information, see the dladm (1M) man page.

To modify the link properties of a bridge, use the following command:

dladm set-linkprop -p prop=value link
Example 4-3  Setting Link Properties for a Bridge

The following example shows how to disable traffic forwarding and set the connection mode type. To set the properties for the bridge, you must set the properties on the links that connect the bridge.

# dladm create-bridge -P stp -d 12 -l net0 -l net1 brooklyn
# dladm set-linkprop -p forward=0 net0
# dladm set-linkprop -p stp_p2p=true net1

The following example shows how to reset multiple properties of a bridge.

# dladm reset-linkprop -p default_tag,stp_priority brooklyn